error while running mongodb php program - php

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212+lfs/mongo.so' - /usr/lib/php5/20121212+lfs/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error: Class 'MongoClient' not found in /var/www/exhange/b1_functions.php on line 8
This is the error popped up when running a monogdb php program in ubuntu. How can I fix that?

Related

unable to start php debugger in vscode after php upgrade to 8.0; cannot open browscap.ini

Following my update from php 7.3 to php 8.0, I am no longer able to debug in VS Code. I am using the PHP pack extension.
I attempted uninstalling/reinstalling extensions and restarting vscode.
I get the error:
PHP Warning: Cannot open "C:\XXX\browscap.ini" for reading in Unknown on line 0
PHP Fatal error: Unable to start standard module in Unknown on line 0
Warning: Cannot open "C:\xXXX\browscap.ini" for reading in Unknown on line 0
Fatal error: Unable to start standard module in Unknown on line 0

Xdebug failed to run in php 7 in debug mode

I have compiled xdebug it added it to php.ini but this happens.
/opt/php/sbin/php-fpm
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' - /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: cannot open shared object file: No such file or directory in Unknown on line 0 , my php is in debug mode.
What should I do?
Edit
If I place the file inside the directory this other error happens:
/opt/php/sbin/php-fpm
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' - /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0

Php phpchartdir530 dll not found

I have a problem about php on centos. When I want to run php script I have problem like that below,
# php removespikes.php -R=/var/www/html/cacti-0.8.8a/rra/gyt_traffic_in.rrd
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/phpchartdir530.dll' -
/usr/lib64/php/modules/phpchartdir530.dll: cannot open shared object
file: No such file or directory in Unknown on line 0
How can I fix this problem?

Error: Unable to load dynamic library 'C:\PHP\ext\php_sqlsrv.dll

I have tried all the options I could so far find regarding to .dll error but it has not been able to resolve my issue.
Please does any one have an idea of how I can get php to load these dynamic libraries. I am using php 5.3.18, IIS 7 and SQL ServerExpress database and each time i run the phh.info i get lots of error logs like these.
I also noticed that I do not have these .dll files listed in the 'ext' sub-folder that is in my php folder. Please let someone help so that i can move on. I would appreciate every contribution here
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_msql.dll' - The
specified module could not be found. in Unknown on line 0
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_pdo_sqlsrv.dll' - The
specified module could not be found. in Unknown on line 0
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_pdo.dll' - The
specified module could not be found. in Unknown on line 0
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_sqlsrv.dll' - The
specified module could not be found. in Unknown on line 0
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_dblib.dll' - The
specified module could not be found. in Unknown on line 0
[19-Nov-2012 08:44:14 America/Denver] PHP Warning: PHP Startup:
Unable to load dynamic library 'C:\PHP\ext\php_curl.dll' - The
specified procedure could not be found.
I am wondering if that could be the reason why my dropdown is not able to populate from the database
The interesting thing here is that my connection script works fine but the dropdown does not populate and i dont get any error
if you don't have those files in that folder you need to put them there. Search your drive to locate if they are at a different location.
I was receiving this same error. I downloaded a Dependency Walker program from www.dependencywalker.com and found that the php_pdo_sqlsrv.dll couldn't find php5.dll because I didn't have my php files in my system path. I added the php install to my path and the warnings went away.

Trying to run a test, but get a fatal error

I configured the external tool correctly. As soon as I start to run a test case I get this error:
Failed loading C:\PHP\5.2.13\ext\php_xdebug.dll
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/5.2.13/ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0
PHP Warning: require_once(../../../application/cl/Dict.inc): failed to open stream: No such file or directory in C:\xxx\abc\abbb\application\cl\DictTest.php on line 5
PHP Fatal error: require_once(): Failed opening required '../../../application/cl/Dict.inc' (include_path='.;C:\PHP\5.2.13\pear\') in C:\xxx\abc\abbb\application\cl\DictTest.php on line 5
What could it be?
I can assure this is due to installation path problems.
Did you install phpUnit through pear or separately? if you have installed by PEAR, did you set up the PEAR path in php.ini file?

Categories