I am using Laravel valet for a while, but now I started getting errors:
Warning: Module "mongodb" is already loaded in Unknown on line 0
Could not open input file:
Warning: Module "mongodb" is already loaded in Unknown on line 0/cli/valet.php
and it can't load local web applications anymore (with .test at the end).
I tried updating valet and run again valet install but get this:
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
PHP Warning: Module "mongodb" is already loaded in Unknown on line 0
Warning: Module "mongodb" is already loaded in Unknown on line 0
Could not open input file:
Warning: Module "mongodb" is already loaded in Unknown on line 0/cli/valet.php`
I have macos and valet.
Have someone ideas about what I can try out?
Related
I am trying to install Imagick extension on windows 10 with PHP version 8.0.3 but getting below error
PHP Warning: PHP Startup: Unable to load dynamic library
'php_imagick.dll' (tried: D:\xampp\php\ext\php_imagick.dll (The
specified module could not be found),
D:\xampp\php\ext\php_php_imagick.dll.dll (The specified module could
not be found)) in Unknown on line 0
Windows : 10 X64
PHP version : 8.0.3
Steps to reproduce:
I have added imagick.dll file in xampp\php\ext directory
Added CORE_RL_.dll and IM_MOD_RL_.dll in xampp\php folder.
Added extension=php_imagick.dll in xampp\php\php.ini file
Restarted xammp
Getting below error on webpage
enter image description here
In the PHP error log below error is logged.
PHP Warning: PHP Startup: Unable to load dynamic library 'php_imagick.dll'
First download this: https://windows.php.net/downloads/pecl/releases/imagick/3.7.0/php_imagick-3.7.0-8.0-ts-vs16-x64.zip
Extract from php_imagick-….zip the php_imagick.dll file, and save it to the ext directory of your PHP installation
Extract from php_imagick-….zip all the other DLL files and save them to the PHP root directory (where you have php.exe)
Add this line to your php.ini file:
extension=php_imagick.dll
Restart the Apache/NGINX Windows service (if applicable)
Iam unable to install composer in my windows system with Xampp installed with PHP version 7.3.9
Please find the error message.
"A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist."
Program Output:
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.), C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
Please See the Inline comments for errors and Warnings
1A setting in your php.ini could be causing the problem: Either the 'extension_dir' value is incorrect or the dll does not exist.
Answer: Checked the extension_dir(extension_dir="C:\xampp\php\ext"). Path was correct So I checked for the below warnings.
Program Output: PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo.dll' (tried: C:\xampp\php\ext\php_pdo.dll (%1 is not a valid Win32 application.),
Answer: Commented ;extension=php_pdo.dll
C:\xampp\php\ext\php_php_pdo.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_73_ts_x86.dll' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_73_ts_x86.dll (%1 is not a valid Win32 application.),
Answer: Removed these extensions which I have used for connecting to the SQL server
C:\xampp\php\ext\php_php_pdo_sqlsrv_73_ts_x86.dll.dll (The specified module could not be found.)) in Unknown on line 0 PHP
Answer: Removed these extensions which I have used for connecting to the SQL server
Warning: Module 'openssl' already loaded in Unknown on line 0
Answer: Openssl was loaded twice, Comment one in php.ini file
Also please check that the composer is already installed in your program files
Thanks
Vysakh
I have been trying to install phpredis to my aws ec2 instance, but i keep on encountering same error when running 'sudo make test' in the phpredis folder.
PHP Warning: PHP Startup: Unable to load dynamic library '/tmp/phpredis-phpredis-59503a8/modules/redis.so' - /tmp/phpredis-phpredis-59503a8/modules/redis.so: undefined symbol: json_globals in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/tmp/phpredis-phpredis-59503a8/modules/redis.so' - /tmp/phpredis-phpredis-59503a8/modules/redis.so: undefined symbol: json_globals in Unknown on line 0
=====================================================================
PHP : /usr/bin/php
Warning: PHP Startup: Unable to load dynamic library '/tmp/phpredis-phpredis-59503a8/modules/redis.so' - /tmp/phpredis-phpredis-59503a8/modules/redis.so: undefined symbol: json_globals in Unknown on line 0
PHP_SAPI : cli
PHP_VERSION : 7.0.33
ZEND_VERSION: 3.0.0
PHP_OS : Linux - Linux ip-172-31-4-98 4.14.128-87.105.amzn1.x86_64 #1 SMP Thu Jun 20 00:43:44 UTC 2019 x86_64
INI actual : /tmp/phpredis-phpredis-59503a8/tmp-php.ini
More .INIs :
CWD : /tmp/phpredis-phpredis-59503a8
Extra dirs :
VALGRIND : Not used
TIME START 2019-07-10 16:20:09
With this error keep on occuring, there's no way for the Redis to be working at all if I copied redis.so to my php7.0 modules.
I'm currently using Amazon Linux with php7.0, redis5.0.5 and phpredis from https://github.com/nicolasff/phpredis/zipball/master.
I've successfully installed redis before with similar configuration, but i've no idea why i cant seem to solve this problem at all.
Redis will not show in phpinfo as well.
If I go to my localhost link it displays this error:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:/Users/GuylianWasHier/OneDrive - ROC Ter AA/1. School/1. Web Development/2. WebDev Projects/index.php' (include_path='.;C:/laragon/etc/php/pear') in Unknown on line 0
How do i fix this?
The Laragon's default document root is: C:\laragon\www
Please move "2. WebDev Projects/index.php" to that location.
Note: Don't use space in your folder name.
root#rushan-PC:~# curl -sS https://getcomposer.org/installer | php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/gd.so' - /usr/lib/php5/20090626/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mcrypt.so' - /usr/lib/php5/20090626/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysql.so' - /usr/lib/php5/20090626/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/mysqli.so' - /usr/lib/php5/20090626/mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/pdo_mysql.so' - /usr/lib/php5/20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The suhosin.executor.include.whitelist setting is incorrect.
Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):
suhosin.executor.include.whitelist = phar
The php.ini used by your command-line PHP is: /etc/php5/cli/php.ini
If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times.
Terminal gives me this error. Before that, I installed php packages, there was some error
"Unable to correct problems, you have delayed (held) broken packages." But I can install it with aptitude, instead of apt-get. Perhaps, this dynamic libraries errors because of Held packages? Or something...Please, I need some help there:(. Sorry, I'm just a beginner in Linux and programming. And sorry for my English, cuz I'm from Uzbekistan :(
According to information in your error, you should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line at the end
suhosin.executor.include.whitelist = phar
You should edit your php.ini file (/etc/php5/cli/php.ini) and add the following line before the END: keywords.
suhosin.executor.include.whitelist = phar