Notice: preg_replace(): Matched, but too many substrings #882

Open
opened 2026-10-05 00:22:37 +02:00 by adam · 0 comments
Owner

Running Piwigo piwigo-2.9.5 on PHP 7.2.16 and 7.2.18. I keep getting this fatal error arising from an overflow of preg_replace() and preg_match() until it exhausts the server resources

Update: I suspect it is a str2url with preg_replace()

Is this the output on the page:

Notice: preg_replace(): Matched, but too many substrings in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185

Notice: preg_match(): Matched, but too many substrings in /public_html/photos/include/functions_url.inc.php on line 649

Notice: preg_replace(): Matched, but too many substrings in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185

.
.
.


Fatal error: Out of memory (allocated 2097152) (tried to allocate 18446744073709519128 bytes) in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185
Running Piwigo piwigo-2.9.5 on PHP 7.2.16 and 7.2.18. I keep getting this fatal error arising from an overflow of preg_replace() and preg_match() until it exhausts the server resources Update: I suspect it is a str2url with preg_replace() Is this the output on the page: ``` Notice: preg_replace(): Matched, but too many substrings in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185 Notice: preg_match(): Matched, but too many substrings in /public_html/photos/include/functions_url.inc.php on line 649 Notice: preg_replace(): Matched, but too many substrings in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185 . . . Fatal error: Out of memory (allocated 2097152) (tried to allocate 18446744073709519128 bytes) in /public_html/photos/include/smarty/libs/Smarty.class.php on line 1185 ``` <!-- github-sync-id:440155138 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#882