![]() |
prob with vbull
try to download this hack and check out the error u get
u can view pages 2 and 3 but not page 1 http://www.vbulletin.org/hacks/index...ack&hackid=197 |
|
maybe cause you are admin Erwin
Let some others try it - it dont work Fatal error: Maximum execution time of 15 seconds exceeded in /www/vbulletin.org/htdocs/forum/admin/functions.php on line 2856 |
Quote:
|
Actually, this seems to happen on several hack threads - not too sure on why, though.
|
Mmm... it's to do with the PHP code boxes, and a hack that's not working properly... it's a known bug. I will let Stefan know.
|
yeah, it has to do with the show function names as links.
you should disable that option in your usercp if you get those errors.. |
Or completely remove the hack? It's not really necessary is it :)?
- miSt |
I can see page 1 just fine.
|
Dean, Erwin and me are discussing that already, but if it's needed is the question for user not for us, as we don't need it, but there might be users which needs it ;)
|
I had that turned off in my usercp. Now that I turn it on, it get the same error. Does that only happen when it is the first post in the thread? I have never had that happen on my site.
|
nope, the problem is on how much codeboxes are there.....
the algorithm seems to be very intense... |
Is there any way to fix it? I don't want to run into this same thing on down the road.
|
nope, no way, at least i didn't found one till now.
i already optimized it as strong as possible, but now the str_replace with a large array of replacement vars gives it the rest... ;) |
So, you found a fix or you haven't? I just tried it again and I still get the error.
|
nope i didn't find a fix.
the bug occures more often in the past, i heve fixed it in a way that it doesn't occure as much as it was at first, but i can't fix it totally |
Can you tell me what you did to make it better than it was?
|
do you use the hack yourself?
i thought it wasn't released??? well i have rewritet it a bit, to use a cache, so it would not create the functions names array with each post as it did before |
Quote:
|
i don't know the original coding anymore but this is the function we use now:
PHP Code:
|
Here's the original code I have:
[PHP] /* Highlight function names in [php] */ $allfuncs = get_defined_functions(); $searches = array(); $replaces = array(); foreach ($allfuncs['internal'] as $name) { $searches[] = "/([^a-z])$name(<\/font><font color=\"" . ini_get('highlight.keyword') . "\">){0,1}( {0,1})\(<\/font>/i"; $replaces[] = "\\1<a href=\"http://www.php.net/$name\" target=\"_blank\">$name</a>\\2\\3(</font>"; } $buffer = preg_replace($searches, $replaces, $buffer); /* end Highlight function names in PHP Code:
PHP Code:
|
replace the whole first php code with
PHP Code:
|
I did what you said above and got this error at the top of the page:
Warning: Invalid argument supplied for foreach() in /home/bear/public_html/forum/admin/functions.php on line 1266 and the links were not there. |
ah i see, you have a differnte structure than we have here ;)
put PHP Code:
|
Well, that got rid of the error, but still no links in the php code. ;)
|
then i can't help ya more, that's how it works here.
|
Quote:
|
it's in the user options :)
|
All times are GMT. The time now is 03:18 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|