fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.36k stars 343 forks source link

Internal Server Error: Fatal error: Module 'imagick' already loaded #1320

Closed desbest closed 1 year ago

desbest commented 2 years ago

This is what I see when a load the page.

Internal Server Error
Fatal error: Module 'imagick' already loaded

Then when I refresh the page it disappears with the page finally loading. But then the error appears again once I refresh the page again.

I'm using Selfoss 2.18

jtojnar commented 2 years ago

That sounds like issue with your server config. What operating system (Linux distribution) do you use? On most Linux distros extensions are enabled in separate ini files so you should not have extension=imagick.so in php.ini.

desbest commented 2 years ago

Sorry for the late reply. My laptop was faulty for 2 weeks. It's using Cloud Linux which is based on CentOS. It's using Image Magick 3.4.4 See the attached screenshot.

CF2D5D3E-A85D-4150-8F4C-7DA226BB39C6

jtojnar commented 2 years ago

Could you check the php.ini file contents?

desbest commented 2 years ago

The php.ini file does not exist anywhere on my website in the file-folder structure either in the home directory or any subfolders (eg. selfoss/) However the web host I'm using does virtually generate a php.ini file with some settings already filled in by default, for security, resource allocation management and performance reasons.

multi php ini editor cpanel for desbest portfolio

jtojnar commented 2 years ago

There must be a php.ini somewhere on the system (e.g. /etc/php.ini according to https://www.rootusers.com/where-is-the-php-ini-configuration-file-in-centos/). You can also try to look at the “editor mode” on the web page.

On Sun, Feb 27 2022 at 04:53:02 -0800, desbest @.***> wrote:

The php.ini file does not exist anywhere on my website in the file-folder structure either in the home directory or any subfolders (eg. selfoss/) However the web host I'm using does virtually generate a php.ini file with some settings filled in by default as a preset, for security reasons.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

desbest commented 2 years ago

I've looked at the editor mode and the text box is blank. By the way, that MultiPHP INI Editor feature in Cpanel, it automatically detects every php.ini file stored on my website.

I don't have root access to the server as I'm using a reseller account, not a vps. If you're looking for something specific in advance, can you let me know what that is?

Screenshot 2022-02-27 at 13-47-39 cPanel - MultiPHP INI Editor

jtojnar commented 2 years ago

The error sounds like you have extension=imagick.so line in both /etc/php.ini and /etc/php.d/imagick.ini. So without a root access, you might need to contact your host.

Alternately, you might want to try the nightly build of selfoss – it handles improperly configured web server more gracefully.

desbest commented 2 years ago

It looks like you've provided the wrong hyperlink on your readme. Why does the "download latest" link go to the nightly build of 3 months ago, while the "nightly list" link goes to the full listing with the latest being 3 days ago?

jtojnar commented 2 years ago

It looks like Cloudsmith is buggy again. I will have to contact support.

desbest commented 2 years ago

Look at this cloudsmith bug.

cloudsmith bug with selfoss nightly versions packages

desbest commented 2 years ago

I've just tried it in Selfoss 2.19 nightly and it works with no error.

jtojnar commented 2 years ago

Yeah, it contains a change that ignores the error but that does not mean the error is not still there. It is better to have your host fix the php.ini settings since it can potentially cause issues to other apps as well.