eine Contenido-Installation (4.9.12, PHP 5.6.38) schreibt immer wieder Fehler wie die folgenden ins Error-Log:
Code: Alles auswählen
[01-Feb-2019 19:33:11 Europe/Berlin] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18725783 bytes) in /***/contenido/plugins/mod_rewrite/includes/functions.mod_rewrite.php on line 482
[01-Feb-2019 19:32:47 Europe/Berlin] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 25464569 bytes) in /***/contenido/plugins/mod_rewrite/includes/functions.mod_rewrite.php on line 510
Code: Alles auswählen
// remove fucking tinymce single quote entities:
$code = str_replace("'", "'", $code);
Code: Alles auswählen
// define some preparations to replace /front_content.php & ./front_content.php
// against front_content.php, because urls should start with front_content.php
$aPattern = array(
'/([\"|\'|=])\/front_content\.php(.?|.+?)([\"|\'|>])/i',
'/([\"|\'|=])\.\/front_content\.php(.?|.+?)([\"|\'|>])/i'
);
$aReplace = array(
'\1front_content.php\2\3',
'\1front_content.php\2\3'
);
// perform the pre replacements
$code = preg_replace($aPattern, $aReplace, $code);
Wobei der Fehler in Zeile 510 häufiger ist.
Über den verfügbaren Speicher schreibt Contenido:
Code: Alles auswählen
memory_limit 128M
Und wie sich der Fehler auswirkt? Bei der Benutzung der Seite ist mir noch kein Problem aufgefallen.
Vielen Dank!
Bodil