When i deploy a site this error apear!
Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /home/jms/public_html/jms/administrator/components/com_multisites/classes/multisitesdb.php on line 964
this error is cause in this source
Code: |
if ( count( $tables) > 0) {
// Try increase the time out limit in case where there are a very high number of tables
// Consider a maximum of 5 second per table.
set_time_limit( count( $tables) * 5);
}
|
i suggest to use someting like this
Code: |
if (( count( $tables) > 0) && (!ini_get('safe_mode'))){
// Try increase the time out limit in case where there are a very high number of tables
// Consider a maximum of 5 second per table.
set_time_limit( count( $tables) * 5);
}
|