"How to Fix Xampp Error with Ioncube Loader" - xampp

I've installed Xampp on windows 10 laptop, my php files needs ioncube loader which i've installed
but there is a problem after copying ioncube_loader_win_5.6.dll into php/ext folder and made changes to php.ini file where i need to put a line "zend_extension = "C:\xampp\php\ext\ioncube_loader_win_5.6.dll"
after doing this my phpmyadmin page don't work gives the below error
Warning: require_once(/byte_safe_strings.php): failed to open stream: No such file or directory in on line 57
Fatal error: require_once(): Failed opening required '/byte_safe_strings.php' (include_path='C:\xampp\php\PEAR') in on line 57
if i remove the ioncube_loader_win_5.6.dll file, the phpmyadmin page works
can anyone help me sort this problem?

Related

How to fix " No such file or directory"error when I access to the home page

I downloaded a laravel project from a shared hosting and I want to edit him in my localhost but when I type out the home adress:
localhost:8000/
it shows me those two errors :
Warning: require_once(C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php): failed to open stream: No such file or directory in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
Fatal error: require_once(): Failed opening required 'C:\Users\Rafaa\Downloads\Compressed.idea/public/index.php' (include_path='C:\xampp\php\PEAR') in C:\Users\Rafaa\Downloads\Compressed.idea\server.php on line 21
When you clone or download a project from somewhere, there may be a case that many dependencies like codes or library files are missing. To solve this
Open the terminal
Go to the directory where the project folder is situated.
RUN composer install
If it still does not work,
RUN composer update
That should do the trick.

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.

Getting errors after shifting live site to local

Warning: include(Mage/Core/Model/App.php): failed to open stream: No such file or directory in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Warning: include(): Failed opening 'Mage/Core/Model/App.php' for inclusion (include_path='/var/www/html/sitename/app/code/local:/var/www/html/sitename/app/code/community:/var/www/html/sitename/app/code/core:/var/www/html/sitename/lib:.:/usr/share/php:/usr/share/pear') in /var/www/html/sitename/lib/Varien/Autoload.php on line 93
Fatal error: Class 'Mage_Core_Model_App' not found in /var/www/html/sitename/app/Mage.php on line 589
I have tried vhost also, but getting same errors.
Have you tried to update dependencies with composer?
cd /var/www/html/sitename/
composer update
Could also be useful to check db settings table for any absolute roots.

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.

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?

Resources