/    Sign up×
Community /Pin to ProfileBookmark

Strange warnings since PHP 7 upgrade

My hosting company recently made PHP 7 available, and decided to switch everyone’s preferences over to it. Prior to that it was PHP 5.4. After the change I had no real problems, in that all my mail forms and such worked as before. But with every use of every PHP file, the error log would have a pair of these warnings added.

[16-Nov-2018 21:48:10 UTC] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20151012
These options need to match
in Unknown on line 0
[16-Nov-2018 21:48:10 UTC] PHP Warning: PHP Startup: magickwand: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20151012
These options need to match
in Unknown on line 0

Anyone have any clue what these mean? I called tech support but it was over a holiday weekend, and someone there just switch me back to 5.4, and they had no clue what “imagick” or “magickwand” was. Since 7 is available I’d like to use it. Should I just do so and ignore the warnings?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogNov 27.2018 — http://php.net/manual/en/intro.imagick.php (PHP image manipulation extension)

http://www.magickwand.org/ (appears to be an imagick extension of some sort)

If you're not using them, then probably no big deal -- other than it would be nice to not have them polluting your error logs like that. You're hosting service should either fix the dependency problem, or else not install them.
Copy linkTweet thisAlerts:
@PeterPan_321authorNov 27.2018 — OK, so its likely not something I did wrong, such as an obscure php.ini file setting. Well maybe I'll test with the PHP 7, and just go back to 5.6 or 5.4 if that is the only problem. But I'm reading about some nice improvements, especially in performance with the new version, and better database support. So hopefully I won't be the only one complaining. Thanks for the links!
Copy linkTweet thisAlerts:
@ginerjmNov 28.2018 — I would think that pretty soon down the road you will have to live with PHP 7 and not have earlier versions available. The time to upgrade your app is now.

As Nogdog says you need to get your host to check those settings and correct them. You are perhaps the only client using those features and they may not be aware of the situation.
×

Success!

Help @PeterPan_321 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...