PHPUnit: error when including Predis\ClientInterface.php - php

I am adding record via browser in redis cache with predis class it added and no error getting.
When executing from PHPUnit I get the next error:
PHPUnit_Framework_Exception: include_once(Predis\ClientInterface.php): failed to open stream: No such file or directory
However same application, same unit test,same configuration works fine in my colleague's machine.

Related

How do I resolve file permissions issue in laravel sail

Every time I go to http://localhost on my browser, after running ./vendor/bin/sail up,
I keep getting this error
ErrorException
file_put_contents(C:\wamp64\www\catholic_group_of_schools_entrance_platform\storage\framework/sessions/NMNV89ihi6pcYr140olVDp7iPx4ed2ML4Eh8ik7q): Failed to open stream: No such file or directory

Laravel - Failed to open stream: No such file or directory storage/framework/sessions

When i try to run a laravel application, I get this error :
file_put_contents(C:\xampp\htdocs\academy\storage\framework/sessions/yYtLcWMJlFDNXQf3lfs5Pfv0ImwmiwjvhW8Oxkyy):
failed to open stream: No such file or directory
I have installed composer, php every thing.
Database is created and when i give command in power shell it is showing server started but when i try to open it through crome it give me this error.

Codeception code coverage - file_get_contents exception (c3/report/clear)

I'm using Codeception with Laravel 4. In particular I'm trying to use remote code coverage so that I can include acceptance testing in the code coverage results.
XDebug with remote_enable are configured, and c3.php is installed and included in 'public/index.php'.
On Windows everything works as expected. But on Ubuntu 12.04 LTS (with PHP5.4) I get this exception:
[ErrorException] file_get_contents(http://localhost/c3/report/clear):
failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
What am I doing wrong?
This was easy to fix. There was an error in the path when including c3.php from index.php. The Apache error log made this clear.

Cache access issue while installing preproduction on symfony

I am currently trying to install a preproduction branch on my dedicated serveur.
I installed a Symfony version in the /web/preprod directoty of my symfony production project. I managed to link correctly the front controller and the routes, and now I am calling an action in the preprod branch.
I am getting this error message :
Warning:
require_once(/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod_new/jms_diextra/proxies/CityDom-APIBundle-Controller-GangController.php):
failed to open stream: No such file or directory in
/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod/jms_diextra/controller_injectors/CityDomAPIBundleControllerGangController.php
on line 13
Fatal error: require_once(): Failed opening required '/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod_new/jms_diextra/proxies/CityDom-APIBundle-Controller-GangController.php'
(include_path='.:/usr/share/pear:/usr/share/php') in
/var/www/vhosts/ns21206.ovh.net/citydom/web/preprod/app/cache/prod/jms_diextra/controller_injectors/CityDomAPIBundleControllerGangController.php
on line 13
The preprod cache folders are on permission 777.
Not all action aren't working, but this one doesn't.
See Setting up Permissions in this section. Go with the setfacl command.

PHP difference between terminal and browser

There is Neo4J installed on my Ubuntu and I'm running a test code. It's perfectly working when the code runs on terminal such as:
root#ekin-Inspiron-1090:/var/www# php neo.php
home: demolished
name: Arthur Dent
But when it comes to run on browser like localhost/neo.php, it gives fatal error and stops working.
Warning: require(phar://neo4jphp.phar): failed to open stream: operation failed in /var/www/neo.php on line 4 Fatal error: require(): Failed opening required 'phar://neo4jphp.phar' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/neo.php on line 4
I don't think it's really something with Neo4J or its PHP driver. What should be the reason?
edit: by the way, there are two php.ini files; i think one for apache and one for command line. I checked both of them and phar extension paths are the same. Also there are no include_path settings in both of them.
It's an authorization error. Apache runs under its own user, so you need to give apache user to access www folder.

Categories