When I install php mongodb extension on my windows, a warning is generated, however it works in CLI though. Would andyone give me any advice? Thanks!
PHP Warning: PHP Startup: Unable to load dynamic library
'd:/AppServ\\php5\\ext\\php_mongodb.dll' -
\xef\xbf\xbd\xd2\xb2\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd
\xd6\xb8\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd\xef\xbf\xbd
\xc4\xa3\xef\xbf\xbd\xe9\xa1\xa3\r\n in Unknown on line 0
Related
I am using php 7.1.12 on a windows PC, i have tried to install php_protobuf_ts.dll and php_curve25519_ts.dll extensions to php i keep getting this error
Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_protobuf_ts.dll' - The specified module could not be found.
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\xampp2\php\ext\php_curve25519_ts.dll' - The specified module could not be found.
in Unknown on line 0
I am getting this error despite confirming that the above extensions exist on the specified directory. Please help, i have tried everything
I've been wrestling with the MongoDB PHP Driver install for most of this afternoon.
I'm using PHP version 5.5, and I've installed the MongoDB PHP Driver using brew install php55-mongo (although I tried other methods before). The problem is, whenever I try to use MongoClient() I get the error:
Class 'MongoClient' not found
The module "mongo" is listed when I run php -m, but I also get the following warnings:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so' - dlopen(/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so' - dlopen(/usr/local/Cellar/php55/5.5.34/lib/php/extensions/no-debug-non-zts-20121212/mongo.so, 9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php55-mongodb/mongodb.so' - dlopen(/usr/local/opt/php55-mongodb/mongodb.so, 9): image not found in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php55-mongodb/mongodb.so' - dlopen(/usr/local/opt/php55-mongodb/mongodb.so, 9): image not found in Unknown on line 0
The module isn't listed when I use phpinfo() or get_loaded_extensions().
Any ideas?
Check which php mongo driver you have installed. It seems like you have installed new php mongo driver and for that you need to add mongodb.so extension instead of mongo.so also you
As reffered in PHP manual
The MongoClient class
(PECL mongo >=1.3.0)
Warning
This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include:
MongoDB\Driver\Manager
I'm trying to build an app written in PHP (Laravel) from other devs, using Composer (I'm new to both).
I've installed mcrypt for PHP v5.5 with Homebrew (OSX 10.11) but every time I update my dependencies with "./composer.phar update" it returns me this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php55/5.5.33/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so' - dlopen(/usr/local/Cellar/php55/5.5.33/lib/php/extensions/no-debug-non-zts-20121212/mcrypt.so, 9): image not found in Unknown on line 0
I found these issues after updating php5-sqlite (previously it was working fine) :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/pdo_sqlite.so' - /usr/lib/php5/20131226/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/sqlite3.so' - /usr/lib/php5/20131226/sqlite3.so: undefined symbol: sqlite3_enable_load_extension in Unknown on line 0
p.s : so files exist
Details :
OS : Ubuntu 14.04 LTS
PHP : PHP 5.6.15
I have tried uninstalling (purge) and reinstalling PHP but the issues still remain.
I have tried commenting out extension=pdo-sqlite.so in /etc/php5/cli/conf.d/pdo_sqlite.ini, but it says "Driver not found".
Please help...
If you have built SQLite from source? Then, you forgot to enable Column metadata. Recompile SQLite with
CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure
make
sudo make install
Have fun using the cutting edge SQLite.
Reference - https://www.sqlite.org/compile.html#enable_column_metadata
When I want to see my php version, use the command php -v, there show some warnings. How to solve it?
PHP Warning: PHP Startup: Unable to load dynamic library
'/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so'
- dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so,
9): image not found in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library
'/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so'
- dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so,
9): image not found in Unknown on line 0
You have a php configuration file that try to loads the pdo_pgsql.so library, but the library isn't installed correctly.
You can either disable the library loading by removing the configuration directive loading it (you should have something like this:extension=pdo_pgsql.so) or install the pdo for php correctly.