New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • Hello,

    I just upgrade to modx1.0.4 and my host has disabled the set_time_limit() function.

    i get this error now :
    « 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() has been disabled for security reasons	 
      Error type/ Nr.: 	Warning - 2	 
      File: 	/.../assets/snippets/ajaxSearch/classes/ajaxSearch.class.inc.php	 
      Line: 	78	 
      Line 78 source: 	set_time_limit($asCfg->cfg['timeLimit']); 


    i have try &timeLimit=`0` in my call but the same error.

    any advice ? or should i roll back to 1.8.5 ?


    ps: I have crawled the demos on your site and WOW this version rocks ! So many possibilities in there ! Incredible snippet cocorio !
      CTRL+SHIFT+U - Clear Cache
      CTRL+SHIFT+H - Hiding Heft Panel
      CTRL+SHIFT+N - Fast Create Resource
      CTRL+ALT+P - Preview Recource (in edit resorce window)
      CTRL+ALT+S - Save
    • Hi.

      I was getting the same error message, and I simply removed that line.

      • Istzoli is right, if your provider doesn’t allow the use of this command, the better way is to comment the lines 78 of classes/ajaxSearch.class.inc.php

        //        set_time_limit($asCfg->cfg['timeLimit']);  //! set the maximum execution time of the script


        Thanks Manu for you support.


        • simple but effective cool ! Thank you !
            CTRL+SHIFT+U - Clear Cache
            CTRL+SHIFT+H - Hiding Heft Panel
            CTRL+SHIFT+N - Fast Create Resource
            CTRL+ALT+P - Preview Recource (in edit resorce window)
            CTRL+ALT+S - Save
          • omg, guys, i’ve just done it. all day long i was trying to find a solution and finally here it is!!
            thanx a lot!