Trying to run a test, but get a fatal error - php

I configured the external tool correctly. As soon as I start to run a test case I get this error:
Failed loading C:\PHP\5.2.13\ext\php_xdebug.dll
PHP Warning: PHP Startup: Unable to load dynamic library 'C:/PHP/5.2.13/ext\php_oci8.dll' - The specified module could not be found. in Unknown on line 0
PHP Warning: require_once(../../../application/cl/Dict.inc): failed to open stream: No such file or directory in C:\xxx\abc\abbb\application\cl\DictTest.php on line 5
PHP Fatal error: require_once(): Failed opening required '../../../application/cl/Dict.inc' (include_path='.;C:\PHP\5.2.13\pear\') in C:\xxx\abc\abbb\application\cl\DictTest.php on line 5
What could it be?

I can assure this is due to installation path problems.
Did you install phpUnit through pear or separately? if you have installed by PEAR, did you set up the PEAR path in php.ini file?

Related

Errors occurred during magento installation

I'm trying to install magento 1.x on my centos machine. After dowloading and extracting magento i faced this errrors
Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 50
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxxx/app/Mage.php on line 51
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/username/php') in /home/xxxx/app/Mage.php on line 51
Fatal error: Class 'Varien_Autoload' not found in /xxxx/app/Mage.php on line 54
I tried to run php shell/compiler.php compile the the errors disappeared and the installation page appeared but without any next or back buttons.
How can i fix this issue?
Make sure on the new server , you have permissions to open and rewrite files. some mangento extensions require full permissions before installations.

phalcon php built-in server Failed opening required .htrouter

Trying to run phalcon 2.0.7 app using built-in http server in php 5.6 and included .htrouter to make URI rewrite working. Everything seems find until I use die() in controller. For the first time it works as expected but when refreshed it throws PHP fatal error:
Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required '.htrouter.php' (include_path='.:') in Unknown on line 0
Is there a way to fix that or should I start configuring other http server?
I had the .htrouter in my public dir so this helped a lot:
php -S localhost:8000 -t public public/.htrouter.php :)

error while running mongodb php program

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212+lfs/mongo.so' - /usr/lib/php5/20121212+lfs/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Fatal error: Class 'MongoClient' not found in /var/www/exhange/b1_functions.php on line 8
This is the error popped up when running a monogdb php program in ubuntu. How can I fix that?

PHPunit test not working

I'm trying to learn zend framework 2 with this phpunit added, but I cannot get it work. I've followed the steps in the official zf2 tutorial (http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html) and now I'm facing some kind of error message clueless
Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\php\zend_framework\library;\php\pear\PEAR') in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
PS C:\xampp\htdocs\new103\module\Application\test>
Needed to change the php.ini include_path to list of absolute paths, phpunit can be ran now.

Error in loading CodeIgniter site

My site was developed using CodeIgniter and was working fine before but now it's showing an error.
When I checked error log it's showing:
[07-Jul-2012 09:17:11] PHP Warning: PHP Startup: Suhosin Extension does not officially
support PHP 5.2 and below anymore, because it is discontinued. Use it at your own risk. in
Unknown on line 0
[07-Jul-2012 09:17:11] PHP Warning:
require(/home/maya3d/public_html/system/codeigniter/Common.php) [href='function.require'>function.require]: failed to open stream: No such file or directory in /home/maya3d/public_html/system/codeigniter/CodeIgniter.php on line 38 [07-Jul-2012 09:17:11] PHP Fatal error: require() [href='function.require'>function.require]: Failed opening required '/home/maya3d/public_html/system/codeigniter/Common.php' > (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/maya3d/public_html/system/codeigniter/CodeIgniter.php on line 38
Can anyone please help me to fix it?
Log into the server and run:
ls -l /home/maya3d/public_html/system/codeigniter/Common.php
If it says the file doesn't exist then there's your problem. It could be permissions related as well.

Categories