We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21700
    • 42 Posts
    Hi,

    I didn’t know where to post this, but wanted to share the info anyway, might save someone some time.

    I just switched (migrated) from a HTTP server to HTTPS server (security reasons), and got an error:

    Fatal error: Call to undefined function str2lower() in /var/www/assets/modules/yams/class/yams.class.inc.php on line 3348


    The str2lower function doesn’t exist in the standard PHP functions. I thought the developers might want to use strtolower, which does exist. I corrected this and YAMS works like a charm again!

    For your reference: line 3348 now reads:
    && strtolower( $_SERVER['HTTPS'] ) != 'off'
    This is part of the IsHTTPS() function.

    Cheers,
    noes

    PS:
    version of Modx: Evo1.0
    version YAMS: Version: 1.0.5 beta
    version PHP: PHP Version 5.2.6-1
    version Apache: Apache2 something.
      • 22851
      • 805 Posts
      Thanks for the bug report noes! Will be fixed for next release.
        YAMS: Yet Another Multilingual Solution for MODx
        YAMS Forums | Latest: YAMS 1.1.9 | YAMS Documentation
        Please consider donating if you appreciate the time and effort spent developing and supporting YAMS.