VBGAMER45 / prettyurls

Automatically exported from code.google.com/p/prettyurls
Other
0 stars 1 forks source link

ERROR Allowed memory size of x bytes exhaust on PrettyUrls-Filters.php #166

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Please provide URLs which show this problem (If you do not we cannot help
you):
http://www.pentaxeros.com/forum/index.php?action=pm;f=outbox

Please describe this problem in detail:
When I access the output tray, load blank page.
In the server log this error is logged:
PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to 
allocate 4866333 bytes) in 
/home/_______/public_html/forum/Sources/PrettyUrls-Filters.php on line 110

What version of the mod, and what version of SMF are you using?
pretty 1.0
smf 1.1.20

What other mods do you have installed?

Please provide any additional information below.
Pretty URL is active only in TOPIC
THE CODE:
107 //  Put the URLs back into the buffer
108 $context['pretty']['replace_patterns'][] = 
'~(<a[^>]+href=|<link[^>]+href=|<form[^>]+?action=)(\"[^\"]+\"|\'[^\']+\')~';
109 foreach ($context['pretty']['replace_patterns'] as $pattern)
110 $buffer = preg_replace_callback($pattern, 'pretty_buffer_callback', 
$buffer);

Original issue reported on code.google.com by pentaxe...@gmail.com on 19 Feb 2015 at 10:57