Installing SimpleSAMLphp on Windows - saml

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.

Related

MongoDB CodeIgniter connection issues

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.

I have clone using GIT a project and can't access my project in local?

I got following error in my browser
Fatal error Uncaught Error: Class 'Illuminate\Foundation\Application' not
found in C:\xampp\htdocs\app\bootstrap\app.php:14 Stack trace: #0
C:\xampp\htdocs\app\public\index.php(22): require() #1 {main} thrown in
C:\xampp\htdocs\app\bootstrap\app.php on line 14
You cloned the repository. But the repository doesn't have the required packages.
cd project
composer install (or composer update)
composer dump-autoload -o
Run the project, and it shouldn't show these errors.
Then you didn't actually clone it successfully or it isn't in the path you expect (C:\xampp\htdocs\app\bootstrap\app.php:14).
If you navigate to that path, what do you see?
Sometimes its happened when you do not push your composer.lock file.
composer dump-autoload
composer install --no-scripts
make sure everything works now as expected (no errors!)
composer update

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.

Transferring data from postgres to rabbitmq

I am quiet new to rabbitmq and currently trying to install Postgres listen exchange plugin at:
https://github.com/aweber/pgsql-listen-exchange
I tried following the instructions listed there but i am getting following errors:
/bin/sh: escript: command not found
make[1]: *** [deps.mk] Error 127
make: *** [../rabbitmq-server/dist/.done.0.0.0] Error 2
I am currently working on Mac, not sure if it is because of i missing some essential libraries.
If you want just install the plugin you have to:
Download the package here https://github.com/aweber/pgsql-listen-exchange/releases and exactly this https://github.com/aweber/pgsql-listen-exchange/releases/download/0.3.0-v3.5.x/pgsql-listen-exchange-0.3.0-v3.5.x.zip
Extract the zip and copy the files into the rabbitmq plug-in directory, usually this : rabbitmq_server-3.5.4/plugins
After that execute sudo ./rabbitmq-plugins enable pgsql_listen_exchange, and as result you should have:
The following plugins have been enabled:
epgsql
pgsql_listen_exchange
you are trying to rebuild the package, but if you want just use it, you don't need to rebuild it.
hope it helps

Mongodb Error on running phpunit test

I tried to run mongdodb's driver test using phpunit as stated at http://www.php.net/manual/en/mongo.testing.php but it seems to have a problem with a MongoInt32Test.php filew.
# phpunit tests/mongosuite.php
Warning: require_once(MongoInt32Test.php): failed to open stream: No such file or directory in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
Fatal error: require_once(): Failed opening required 'MongoInt32Test.php' (include_path='.;\programming_tools\xampp-portable\php\PEAR') in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
I am using a php_mongo-1.3.1-5.4-vc9.dll and running mongodb 2.0.8 in windows xp. Anybody knows how to fix this? I can't find MongoInt32Test.php anywhere.
The PHPUnit tests in the extension are legacy tests and are no longer supported. I created a ticket, PHP-695, to remind us to remove mention of them from the documentation. All extension tests are phpt files, and instructions for executing them are documented in the GitHub repository.