MongoDB CodeIgniter connection issues - mongodb

PHP-8, CodeIgniter V-3 , DLL install for php-8 that is php_mongodb.dll in extension folder and enabled in PHP.ini file as well as - given below screen shot of phpinfo still code show error
Fatal error: Uncaught Error: Class "MongoDB\Client" not found in D:\xampp\htdocs\miles\conntest.php:11 Stack trace: #0 {main} thrown in D:\xampp\htdocs\miles\conntest.php on line 11 can some plz help me out this problem

Finally i got the solutions for this using composers, and updated to php8 and mongodb 1.9 and by using supporting libraries i got the success.

Related

Fatal error: Uncaught Error: Class "DOMDocument"

Looking for some help with this error. I'm running Ubuntu 20.04 on an EC2. I have PHP 8.0 installed with DOM and XML modules installed and loaded. phpinfo() shows the modules loaded but I'm still getting Fatal error: Uncaught Error: Class "DOMDocument". I have restarted apache.
I just rebooted the EC2 instance and tested the page again and now it's working.

Error while installing AllegroGraph on Arch Linux

I get the following error when running install-agraph for agraph-6.6.0
An unhandled error occurred during initialization:
Loading sys:aclissl.so failed with error:
/home/<username>/agraph-6.6.0/aclissl.so: undefined symbol: CRYPTO_set_locking_callback.
[physical pathname is /home/<username>/agraph-6.6.0/aclissl.so]
Cannot find much with google-fu on this error - at least nothing useful. Any leads would be helpful.
This problem has been fixed in the upcoming 7.0 release of AllegroGraph. Your workaround, using a system with OpenSSL 1.0.x is the correct one, for the currently released version of AllegroGraph.

Prestashop PHP Fatal error: Uncaught Error: Class 'Tools'

Having this error on latest prestashop version:
PHP Fatal error: Uncaught Error: Class 'Tools' not found in /home/domain_name/config/config.inc.php:86
thrown in /home/domain_name/config/config.inc.php on line 86
Prestashop version is 1.7.1.2.
I tried to download this version again and replaced config/folder.
This didnt work.
Have no clue what to do
First, you have to install the Prestashop 1.7.1.2 by giving permission 0755 to folder. Then try to replace the config folder.
Note: Make sure that you are replaced the folder from Prestashop 1.7.x.x not from Prestashop 1.6 or 1.5.
Try to delete /var/cache (for 1.7)
And/or check please:
File owner and permissions,
Is there classes/Tools.php?
Replace all files with the same version.

Compser is updating with some warnings

This happens in my mac osx. This is regarding zend framework 3.
When I update the composer some warnings are occur.
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so' - dlopen(/usr/local/Cellar/php70/7.0.15_8/lib/php/extensions/no-debug-non-zts-20151012/mcrypt.so, 9): image not found in Unknown on line 0
after that when the page is refreshing this error occur.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
Error: Class 'MongoDB\Driver\Manager' not found in /Users/ishara/Documents/workspace/leapx-portal/vendor/mongodb/mongodb/src/Client.php on line 81
This has nothing to do with zendframework 3.
PHP Warning: PHP Startup: Unable to load dynamic library mcrypt.so
This is probably caused by not having the PHP mcrypt extension installed.
Fatal error: Uncaught Error: Class 'MongoDB\Driver\Manager' not found
According to the mongodb/mongodb package, you need to install the PHP mongodb extension.

Installing SimpleSAMLphp on Windows

I have PHP installed on my windows instance, have copied across the folder.
On running the script I get the following error.
PHP Fatal error: Uncaught exception 'Exception' with message 'Unable to load Composer autoloader' in C:\Users\Chris\Dropbox\WEBSITES\php_tests\lib\_autoload.php:18
Stack trace:
#0 C:\Users\Chris\Dropbox\WEBSITES\php_tests\login\_include.php(32): require_once()
#1 C:\Users\Chris\Dropbox\WEBSITES\php_tests\login\index.php(3): require_once('C:\\Users\\Chris\\...')
#2 {main}
thrown in C:\Users\Chris\Dropbox\WEBSITES\php_tests\lib\_autoload.php on line 18
I can't work out how to fix.
Go here to download the latest simplesamlphp as described here. This file will probably end in .tar.gz and comes with required dependencies like Composer autoloader.
Do not download the latest from the github. This file will probably end in .zip and it doesn't come with required dependencies like Composer autoloader. Using this file for install can lead to an error like mention in your question.