English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?

Safe Mode Create Slave set_time_limit
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Safe Mode Create Slave set_time_limit
#2714
Safe Mode Create Slave set_time_limit 15 Years ago Karma: 0
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);
      }

battisti
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2716
Re:Safe Mode Create Slave set_time_limit 15 Years ago Karma: 54
Thank you very much.
This will be included in next JMS 1.2.14.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2717
Re:Safe Mode Create Slave set_time_limit 15 Years ago Karma: 0
i update the source of my jms instalation because without this my slave sites arent create!

If you will put then in the next version its goot to me for no lose the chance to use the automatic update!

[]'s Battisti
battisti
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#2720
Re:Safe Mode Create Slave set_time_limit 15 Years ago Karma: 54
I don't understand why a WARNING does not allow you creating the slave site.
This is not a fatal error and processing continue.


The error could be due to your timeout processing that is very small and that can not be adapted by JMS to reduce the risk to have an expiration time during the DB replication.

Perhaps you could increase your PHP.ini timeout parameter (if you have the access to this configuration).

Anyway, I have already included your fix in next release.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
Last Edit: 2009/12/04 21:44 By edwin2win.
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla