Quote:
Originally Posted by slappy
Ok, I have found the source of the error by looking in the error log:
Code:
PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 75 bytes) in /xxx/xxx/xxx/languages/Language.php on line 1775
This is what made the crash semi-random. I changed the memory limit in the LocalSettings.php, and the problem went away.
What I still don't know is what is taking so much memory. The problem only occurred when having the vbWiki extension active, but this could of course either mean that this extension takes up a lot of memory itself, or that it was just the last drop, but the real culprit was some other extension.
|
vbWiki will need to load the vBulletin bridge to access vBulletin's users and DB. This requires extra memory. Now, 20MB seems a bit excessive. I have seen vBulletin use around 6-8 MB, but I don't know how much MediaWiki usually uses. Also, as you mention it would depend on MW extensions or vBulletin mods installed.
Quote:
Originally Posted by slappy
Oh, and one more tip, which I found when looking through the error logs. The following (non-critical) error in your code appears a lot in the error-log, so you might want to fix it:
Code:
PHP Notice: Undefined index: vbwiki_preferencestitle in /xxx/xxx/forum/vbWiki/vbWiki_Hooks.php on line 45
|
Thanks for the heads up.
You can edit that line vbWiki_Hooks.php and change it from:
PHP Code:
if (array_key_exists('preferences', $personal_urls))
to
PHP Code:
if (array_key_exists('preferences', $personal_urls) && isset($vbphrase['vbwiki_preferencestitle']) )
Thanks.