PHP Warning: PHP Startup: Unable to load dynamic library '…' failed to map segment from shared object: Cannot allocate memory in Unknown on line 0

谁说胖子不能爱 提交于 2019-12-06 01:26:48

Same issue here. This seems to be related to MediaWiki 1.21. I upgraded a Wiki from 1.20 to 1.21 without changing any installed packages, and get this error too.

Image thumbnails are not being generated neither with rsvg nor with ImageMagick anymore.

If I roll back to 1.20, things work again.

Update

So I have tried to fix the issue here, and the only thing which worked was to downgrade to MediaWiki 1.20.6, where conversions of images to other sizes or formats for SVG images works with all supported converters.

If you do not have a backup of your database before the upgrade, you can use Special:Export to dump all pages, and import that into an empty installation.

I believe you need to raise $wgMaxShellMemory in LocalSettings.php (eg. $wgMaxShellMemory = 512000;)

Please read: $wgMaxShellMemory

Miscellaneous settings: $wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under Linux, in KB.
Introduced in version: 1.7.0 (r14795)
Removed in version: still in use Allowed values: (integer)
Default value: 102400

Update: This solved my issue.

Hope this will solve your problem

look at php.ini

look for something like this

    ;extension=pdo_sqlite.so
    ;extension=sqlite.so 

Just comment it out:

   extension=pdo_sqlite.so
   extension=sqlite.so 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!