Failed loading Zend extension

Avatar
  • updated
  • Answered

Hi everyone, I'm having the following error message show up in the error log of every one of my folders whenever I run a PHP file. So as a result, some of the error logs are getting quite large.

PHP Warning: Failed loading Zend extension '' (tried: /opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/ (/opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/: cannot read file data: Is a directory), /opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/.so (/opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718/.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I am running PHP 7.2.19

Here are a few lines from my php.ini file that may be of help:

; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir =

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/opt/imh/imh-php72/root/usr/lib/php/extensions/no-debug-non-zts-20170718"

;zend_extension = "/opt/php54/lib/php/extensions/no-debug-non-zts-20100525/ioncube_loader_lin_5.4.so"
zend_extension_ts=""
;extension=homeloader.so

At the very bottom of the php.ini file is this:

[Zend]

zend_extension =

Hopefully someone can help me sort this out. Thanks very much in advance.

Avatar
IMH Support Agent 3
  • Answered

Thank you for submitting a question about this PHP error. You can try commenting out the lines in the php.ini file that mention zend_extension or re-compiling PHP in your system. You could also try changing your PHP version. If none of that helps, you may want to contact live support so they can replicate and investigate the issue in your account.