We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24496
    • 0 Posts
    I recently upgraded my MODx to Evo 1.0.5 and got the error message below after successful install:

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « PHP Parse Error »

    PHP error debug
    Error: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode
    Error type/ Nr.: Warning - 2
    File: /var/www/vhosts/domain.co.uk/httpdocs/assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php
    Line: 78
    Line 78 source: set_time_limit($asCfg->cfg[’timeLimit’]);

    I had no problem with previous version of MODX (0.9)and I presume the AjaxSearch is 1.9.2 as it comes with Evo 1.0.5. The domain is hosted on a shared server and the provider is not able to set the safe mode off.

    Is there a work around? Any advice/suggestion will be much appreciated.
      • 5811
      • 1,717 Posts
      This post could help you : http://modxcms.com/forums/index.php/topic,50246.msg292797.html#msg292797

      the better way is to comment the lines 78 of classes/ajaxSearch.class.inc.php
        • 24496
        • 0 Posts
        Thanks. It worked!

        I searched the Forum for "Cannot set time limit in safe mode" but did not search for the set_time_limit()function. How silly me! embarrassed