Error String: set_time_limit() expects exactly 1 parameter, 0 given



  • Hi,
    When attempting to restore the zen-newscoop-sample-site-3.5.x.tar.gz template, I am getting the following error: 

    Error ID: 2:Campsite:3.5.5:backup.php:52

    Error String: set_time_limit() expects exactly 1 parameter, 0 given
    Time: Fri, 13 Apr 2012 17:48:47 -0500
    Backtrace: camp_report_bug() called at [:]
    set_time_limit() called at [/home/localups/public_html/admin-files/backup.php:52]
    require_once() called at [/home/localups/public_html/admin.php:192]

    Has anyone run into this issue and if so how was it corrected?

    Thanks

     

    Post edited by Adam Thomas at 2012-09-28 08:06:22
  • 5 Comments sorted by
  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    It seems the function set_time_limit is disabled on your hosting. You can comment this line https://github.com/sourcefabric/Newscoop/blob/v3.5.5/newscoop/admin-files/backup.php#L52 and try again.


  • Andrey, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />



    Commenting out the function set_time_limit started the process and ran until I
    received the following:

      Error ID: 2:Campsite:3.5.5:cli_script_lib.php:391Error String:mysql_list_dbs() [function.mysql-list-dbs]: Unable to save MySQL query resultTime:Mon, 16 Apr 2012 14:42:25 -0500Backtrace:camp_report_bug() called at [:]mysql_list_dbs() called at [/home/localups/public_html/bin/cli_script_lib.php:391]camp_database_exists() called at [/home/localups/public_html/bin/newscoop-restore:490]include() called at [/home/localups/public_html/admin-files/backup.php:62]require_once() called at [/home/localups/public_html/admin.php:192 Thanks, -Ray

     



    Post edited by Ray Valle at 2012-04-16 16:02:49
  • Error ID: 2:Campsite:3.5.5:cli_script_lib.php:391

    Error String: mysql_list_dbs() [function.mysql-list-dbs]: Unable to save MySQL query result

    Time: Mon, 16 Apr 2012 14:42:25 -0500 Backtrace: camp_report_bug() called at [:]

    mysql_list_dbs() called at [/home/localups/public_html/bin/cli_script_lib.php:391]

    camp_database_exists() called at [/home/localups/public_html/bin/newscoop-restore:490]

    include() called at [/home/localups/public_html/admin-files/backup.php:62]

    require_once() called at [/home/localups/public_html/admin.php:192]
     

  • Vote Up0Vote Down Andrey PodshivalovAndrey Podshivalov
    Posts: 1,526Member, Administrator, Sourcefabric Team
    replace set_time_limit(0) by ini_set('max_execution_time', 0) and try again


  • Andrey...  That worked,  Thanks a million!

     

    Ray