Laragon can not include php pear folder - laragon

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.

Related

Connection problems in Laravel 5.7

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0
Fatal error: Unknown: Failed opening required 'C:\xampp\htdocs\Laravel\Blog\server.php' (include_path='C:\xampp\php\PEAR') in Unknown on line 0
Someone knows, why did this happen?
In your project folder, the server.php file is missing so you got this error
The solution will to create another project then copy the newly created server.php this will solve it.
Another Solution is:
Open the link: https://github.com/laravel/laravel/blob/master/server.php
Copy all code
Open Notepad and paste your copy code
save Notepad file and set name server.php
Copy the server.php file and paste it inside your Laravel project
Run your project again in browser Now you will not get an error and the Laravel project will work properly.

magento CE1.7.0.2 gives error while installing live site backup on local workstation

i am facing below errors while installing live site backup on local workstation. I imported database backup too in mysql.
Renamed "local.xml.sample" to "local.xml".
renamed cache folder.
But yet it gives below error.
1. Warning: include_once(Mage/Core/functions.php): failed to open stream: No such file or directory in C:\wamp\www\app\Mage.php on line 50
2. Warning: include_once(): Failed opening 'Mage/Core/functions.php' for inclusion (include_path='C:\wamp\www\app\code\local;C:\wamp\www\app\code\community;C:\wamp\www\app\code\core;C:\wamp\www\lib;.;C:\php\pear') in C:\wamp\www\app\Mage.php on line 50
3. Warning: include(Mage\Core\Model\App.php): failed to open stream: No such file or directory in C:\wamp\www\lib\Varien\Autoload.php on line 93
4. Warning: include(): Failed opening 'Mage\Core\Model\App.php' for inclusion (include_path='C:\wamp\www\app\code\local;C:\wamp\www\app\code\community;C:\wamp\www\app\code\core;C:\wamp\www\lib;.;C:\php\pear') in C:\wamp\www\lib\Varien\Autoload.php on line 93
5. Fatal error: Class 'Mage_Core_Model_App' not found in C:\wamp\www\app\Mage.php on line 670
The most probable answer - you have incorrect hierarchy of your project files, ie you didn't copy whole project to your workstation. You need to check if app\code\core\Mage\Core folder is present and contains all the mentioned files.

Fatal error: Class 'Varien_Autoload' not found

During deployment of a Magento site I got the following warning and error:-
Warning: include_once(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include_once(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/Mage.php on line 50
Warning: include(Varien/Autoload.php): failed to open stream: No such file or directory in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Warning: include(): Failed opening 'Varien/Autoload.php' for inclusion (include_path='/home/xxx/subdomain/stage/app/code/local:/home/xxx/subdomain/stage/app/code/community:/home/xxx/subdomain/stage/app/code/core:/home/xxx/subdomain/stage/lib:.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/subdomain/stage/app/code/core/Mage/Core/functions.php on line 68
Fatal error: Class 'Varien_Autoload' not found in /home/xxx/subdomain/stage/app/Mage.php on line 53
I have already set permission to 777 and set the include_path correctly and there is lib folder inside includes too but its not working.
Please suggest how to solve this error. Thank you.

Magento Autoload.php cannot find other PHP scripts

I keep getting this kind of error since I moved Magento from my server to clients server:
exception 'Zend_Validate_Exception' with message 'Validate class not found from basename 'NotEmpty'' in /lib/Zend/Validate.php:244
Caused by:
Warning: include(NotEmpty.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 93
This one I get when I try to finish my order.
I got one similar yesterday when trying to create an attribute.
Warning: include(StringLength.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /lib/Varien/Autoload.php on line 93
I checked for permissions and all the files referred by the error have 777 and all the folders from root to those files have also 777.
Any thoughts?
EDIT:
I followed the hint from the comments and I managed to find the path of the file causing the error. The NotEmpty.php is called from the root of Magento though it should have been in /lib/Zend/Validate/.
Any idea how to get the right path?

Codeigniter upload issue

my site is working fine on my local server
but when i upload it on my host it shows this error
A PHP Error was encountered
Severity: Warning
Message: require_once(/home/content/49/7388549/html/awt/system/database/drivers/PDO/PDO_driver.php) [function.require-once]: failed to open stream: No such file or directory
Filename: database/DB.php
Line Number: 140
Fatal error: require_once() [function.require]: Failed opening required '/home/content/49/7388549/html/awt/system/database/drivers/PDO/PDO_driver.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/49/7388549/html/awt/system/database/DB.php on line 140
any help would be appreciated
Thanks in advance
Please kindly check system/database/drivers/PDO/PDO_driver.php file is present or not in your application. If not the copy this file to the location

Resources