PHP Warnings always display, even with commands to set them to off - php

I'm currently having a lot of trouble in implementing some .php files. When I host them on my own server, it all comes out fine, but when I host them on the server where they will be hosted once they are completed, I get a bunch of PHP warnings that look like the below.
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysql.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysql.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysqli.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_mysqli.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_soap.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_soap.dll' - %1 is not a valid Win32 application. in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_xsl.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'c:\php5.6\ext\php_xsl.dll' - %1 is not a valid Win32 application. in Unknown on line 0
The tricky part is that nothing I'm doing seems to stop these warnings. They show up on any PHP file hosted on the space I have to use, and none of the tricks to hide errors or warnings I have seen are working. So far I have tried:
error_reporting(0);
ini_set('display_startup_errors',0);
ini_set('display_errors',0);
#[functionNames]
None of which did anything (implmented seperately or together). The warning messages even show in a php file that calls phpinfo() and exits. From my digging online, it seems like the warnings are about a faulty extension path, which can happen sometimes when PHP is updated but the old installation files still point to outdated extensions. I can't be sure that's it though, because I have no way right now of contacting anyone who could be a system administrator or would know anything about the php installation. The php installation seems to be on the C drive of whatever computer the server is on. If I was able to get to that PHP installation I could correct the bad paths, but I don't have access to do that right now.
I believe the reason my error_reporting commands aren't working is because the "Master Value" for each value is set to on. I'm fairly new to PHP though, and haven't used phpinfo() before, so I could very well be wrong. If the normal commands don't work, is there anything that I can do? In case it helps, here's a look at what phpinfo() shows for the errors section: phpinfo
The warning messages aren't changing the way that any of the code works, it's just really annoying to see them all at the bottom of every single page. PHP is version 5.3.0.

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?

PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll'

Good morning,
I'm struggerling to understand the below error. I believe it was caused when i migrated a cPanel account from one WHM to another.
I'm currently running Laravel but my log files are repeatedly growing with the same error.
[02-Jun-2020 10:46:47 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_fileinfo.dll' (tried: /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll: cannot open shared object file: No such file or directory), /opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so (/opt/cpanel/ea-php73/root/usr/lib64/php/modules/php_fileinfo.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Has anyone experienced this before? or no of how i can resolve it...
Regards
Ross
You may be missing a library. See this related question:
How to enable php_fileinfo extension in PHP?
If you have cpanel just go to
Select PHP Version
and search for the extension
fileinfo
check it and you're good to go.

Warning: PHP Startup: Unable to load dynamic library [ IIS and PHP ]

I'm currently doing a project for my school and I faced a few errors. I am currently using PHP 7.1.12 with IIS and I have these errors.
[Warning: PHP Startup: Unable to load dynamic library 'ext\php_interbase.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_oci8_12c.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_firebird.dll' - The specified module could not be found.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'ext\php_pdo_oci.dll' - The specified module could not be found.
in Unknown on line 0]1
I checked my php.ini and I added those dlls above into the extensions part. I also checked my php\ext file and I do have those dll files.
As you can see from the highlighted files.
My php.ini file
I tried googling for answers but most people use Apache instead of IIS. Anyone knows how to solve it ? Your help is greatly appreciated. :)
Those are database extensions. If you are not using those types of databases then you can go ahead and comment them out for the time being with a ';'.
Typically for school projects students use:
MySQL (listed in php.ini as: 'php_pdo_mysql.dll'),
or
Microsoft SQL Server (listed in php.ini as: 'php_pdo_odbc.dll')...
...database adapter files (aka pdo .dll's). Sorry I am late to the game in answering this question since no one else felt compelled to do so in almost two months. I hope you were able to figure this out from a teacher or another fellow student since it appears I am probably far too late to be of much help to you!

PHP Startup: Unable to load dynamic library './php_imap.dll

I built an application using codeigniter 3 and it worked fine on my local host
but when i uploaded it to my godaddy server i get the below error. Because of this error none of my javascript files are working. I did some research and found out that its some extension related to mail... But i dont use that all..
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library './php_imap.dll' - ./php_imap.dll: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
Can someone tell me how can i get rid of that error? I cant install that extension on godaddy so i need to find another way

PHP Startup: Unable to load dynamic library

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.

Categories