PHP Startup: Unable to load dynamic library - php

I have notice I started getting this error message in my error log:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php
/extensions/no-debug-non-zts-20060613/pdf.so' - /usr/local/lib/php/extensions
/no-debug-non-zts-20060613/pdf.so: cannot open shared object file: No such file
or directory in Unknown on line 0
The error goes into the log every time you open the main page but everything seems to be working. Does anyone have any ideas what might cause this error to occur, I have been change the code in the past few days but when read back though I can't find anything that could be the cause.
there's nothing on the page that I have changed for when it initially loads but i have changed things in areas where I have if (isset...etc.
Any possible suggestions are appreciated. what type of command might this error message be caused by?

It appears your PHP installation is configured to load http://www.php.net/manual/en/intro.pdf.php and cannot find it.
Remove its respective extension entry in php.ini or fix the path or ensure the file exists if you require it.

Related

Unable to load dynamic library 'php_sockets.dll'

Ok, so when I run my php file it gives me this error:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_sockets.dll'
In my php.ini file, I've added the line "extension=php_sockets.dll" but it still gives me this error. I've searched many ways of solving this problem but they didn't work.
I've noticed someting in the error. It said this:
C:\xampp\php\ext\php_php_sockets.dll.dll (The specified module could not be found.))
Why does it say php_php_socketsdll.dll? How can I fix this?

Joomla giving blank screen after http error 500

I had Joomla site giving an HTTP error 500 on both the frontend and backend.
I changed the permissions on index.php to 755 but no luck.
I noticed it was running PHP 5.6 so I upgraded to PHP 7 and now it's just giving me a blank screen. I checked the error log and I'm receiving the following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/php/54/usr/lib64/php/modules/uploadprogress.so' -
/usr/php/54/usr/lib64/php/modules/uploadprogress.so: undefined symbol:
zend_ini_string_ex in Unknown on line 0
I was also getting this error beforehand. Any ideas on what module I can / should disable to fix this?
The warning that you're seeing has likely nothing to do with the blank page. Assuming you already set the $error_reporting to maximum in your configuration.php file and you didn't see the error, then try disabling system plugins one by one (disable the last ones installed first) until the problem is fixed.
Now, if you still see the error, then it is possible that you didn't install the PHP MySQL module when you updated to PHP 7. This issue is common when you have WHM, essentially, you will need to install the module through EasyApache. See this post about this.

PHP Unable to load dynamic library "libMagickWand"

This is an error I've received from multiple projects on live servers, but not localhost.
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so' - libMagickWand.so.2: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
I have never used Imagick (libMagickWand) and none of the projects where I've received this error have I required functionality that Imagick offers, but for whatever reason I still get these errors. It's interfering with my scripts working properly. In this particular case, the error is appearing in a JSON formatted database select.
Some times the error appears, other times it doesn't, but when it does it causes my scripts that rely on that file containing JSON to not work. Refreshing is the only cure, but obviously that's not a permanent fix, not even a temporary one. I've googled it and all I can find is threads discussing how to install the library.
Any help in removing this error would be greatly appreciated, thank you.
Either:
one of the ini files that you your live servers are using contains extension=imagick.so
or
You've managed to compile PHP against Imagick but then deleted the ImageMagick library from the system.
Either way, you need to talk to whoever manages your server and find out why Imagick is trying to be loaded.

All php files showing as 500 Internal Server Error

Problem: Any php file we attempt to access on our website shows up as a 500 internal server error. I'm not sure if this is related but I have had a look in the error logs and the below error appears:
[08-Nov-2013 12:41:51 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so:
cannot open shared object file: No such file or directory in Unknown on line 0
Attempt: Some of the things I have tried to do is delete the over size error log and renamed the htaccess file to see if that was causing the problem.
Page: You can see the problem at this page: http://science.org.au/support-us/donate-now.html (Half way down in the iframe)
Question: Does anyone have any ideas on how to fix this? Things to try?
Did you try this?
edit the file /etc/php5/cli/php.ini:
and remove the lines:
[htscanner] Extension = “htscanner.so”
config_file = “.htaccess”
default_docroot = “/var/www”
You should pay more attention to what your error log says. According to it, you should either install htscanner.so PHP extension, or remove reference to it from your php.ini.

PHP error log problem 'Unable to load dynamic library'

My PHP error logs are filling up extremely rapidly with the following line:
[28-Apr-2011 13:03:00] PHP Warning:
PHP Startup: Unable to load dynamic
library
'/usr/local/lib/php/extensions/no-debug-non-zts-20060613/'
- /usr/local/lib/php/extensions/no-debug-non-zts-20060613/:
cannot read file data: Is a directory
in Unknown on line 0
I've googled the issue and found several results, but all involving something after the last / where this error appears to be something to do with the path itself.
The site(s) are running on cPanel/WHM on CentOS.
You will need to check your php.ini. One of the entries there does not specify a correct filename, but probably something like this:
extension = .
; or the raw pathname as shown in your error.log
extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
That's why the error says Is a directory.
The in Unknown on line 0 refers to your php.ini (it does not have a __FILE__ or __LINE__ number, so leads to that mysterious location hint.)

Categories