PDA

View Full Version : Problem In My Forum


MAORBARI
09-07-2009, 06:55 PM
HI ALL
my forum show me error when i enter...
it begin the error when i edit plugin and add this line on plugin in "global_start":
while(preg_match_all('#\[([\w]+?)[^\]]*\](.*)(\[/\1\])#siU', $message, $regs))
when i press ok the forum does not work me any more.. it shoe me the error:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/upim/domains/upim.co.il/public_html/global.php(400) : eval()'d code on line 188


i try repair my db and i try to change the plugin in phpmyadmin and disabled all plugins but it still show me the error..
plz help!

Lynne
09-07-2009, 08:25 PM
That is a server error, not a vbulletin error - more specifically a php error. You need to increase the max_execution_time variable in php.ini. If you don't have access to change the variables, you will have to ask your host. However, even though it is a php error, and not a vbulletin error, that doesn't mean that you didn't do something wrong in vbulletin to cause this limit to be reached. So, you may want to reconsider whether you want to make that code change.

Medtech
09-07-2009, 09:11 PM
wrong link and post, sorry

Marco van Herwaarden
09-08-2009, 07:27 AM
I doubt you should place such a coding in the global_start hook location. What should this do?

Brother Malachi
09-08-2009, 07:53 AM
I doubt you should place such a coding in the global_start hook location. What should this do?

looks like a loop that in some cases might run for quite a while.
Bad, bad idea.