I'm trying to move a Wordpress website from a server to my local machine.
After I've transferred the files and database, I'm getting this error:
Warning: require_once(/Applications/XAMPP/xamppfiles/htdocs/karryon/wp-config.php): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/karryon/wp-load.php on line 29
Fatal error: require_once(): Failed opening required '/Applications/XAMPP/xamppfiles/htdocs/karryon/wp-config.php' (include_path='.:/Applications/XAMPP/xamppfiles/lib/php') in /Applications/XAMPP/xamppfiles/htdocs/karryon/wp-load.php on line 29
I'm using XAMPP on a mac and I've tried changing the folder permissions with no luck.
Strange thing is I tried doing the same on a windows machine with Wampserver using the exact same steps and it worked fine.
If anyone knows a possible solution to this problem please let me know!
Thanks in advance,
Amy
Related
I have very basic knowledge of coding, I took a copy of our company's website to practice making changes to it.
But when I try to run it I get this error
Warning: require_once(/var/www/html/classes/database_class_pdo.php):
failed to open stream: No such file or directory in
D:\xampp\htdocs\HJ\top.php on line 10
Fatal error: require_once(): Failed opening required
'/var/www/html/classes/database_class_pdo.php'
(include_path='D:\xampp\php\PEAR') in D:\xampp\htdocs\HJ\top.php on
line 10
Please, can someone tell me the issue here?
Thank you.
It's because your php file is trying to open a file named /var/www/html/classes/database_class_pdo.php but cannot find it. Try to see if the path is correct or if the file exists.
I have a PHP project with the following structure:
Project structure
I'm getting this an error that says:
Warning: require(../app/view/home.php): failed to open stream: No such file or directory in /opt/app-root/src/index.php on line 22
Fatal error: require(): Failed opening required '../app/view/home.php' (include_path='.:/opt/app-root/src:/opt/rh/rh-php70/root/usr/share/pear') in /opt/app-root/src/index.php on line 22
Can anyone help me to resolve this issue?
Update:
Project structure on Openshift
Thanks in advance.
I see in you image of your folder structure you have folders for public and app containing the code, but the errors from your deployment look like the code is no longer in public public but in src.. are you sure the relative links are still correctly configured?
Has index.php maybe moved to the root and the link to ../abc/xyz.php should be updated to abc/xyz.php?
I start apache and mysql today as always do...but when I try to enter to phpmyadmin I'm getting this error:
Fatal error: require_once(): Failed opening required './libraries/php-gettext/gettext.inc' (include_path='C:\xampp\php\PEAR') in C:\xampp\phpMyAdmin\libraries\select_lang.lib.php on line 477
I don't understand what's happening =( ...I did nothing on the folders or config setup PLS HELP !!!
Simply go to C:\xampp\phpMyAdmin\libraries\ and cut that file select_lang.lib.php ,make sure you paste that item somewhere (if necessary), and phpadmin will run.
I am switching over a website that was built on Wordpress from one HostGator server to another HostGator server. I have successfully transferred over the files via FTP, and migrated the MySQL database over and have both connected successfully.
I am running into an issue when I view the site in the browser and I receive this following error message:
Warning: require(DIR/warp.php) [function.require]: failed to open stream: No such file or directory in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
Warning: require(DIR/warp.php) [function.require]: failed to open stream: No such file or directory in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
Fatal error: require() [function.require]: Failed opening required 'DIR/warp.php' (include_path='.:/opt/php52/lib/php') in /home/abcworld/public_html/new2/wp-content/themes/yoo_moustache_wp1/index.php on line 10
When I switch to the themes that comes with Wordpress, the site is displayed with the data that is in the MySQL database, so it seems that the Template is what's causing the error. I am using a Yootheme Template called 'Moustache' and have downloaded the latest version and uploaded it to Wordpress and the error message is still there.
The site I am working on is: http://abcworldwidestone.com/new2/
I am unsure what's causing this and would love some assistance - Any thoughts?
Your server must still be using PHP 5.2 , use 5.3.3 or higher at least.
As per the documentation;
5.3.0 Added DIR and NAMESPACE constants
You are more than likely running PHP version < 5.3.0.
I have applied the google map to my local server via Xampp. I have moved it to my web hosting server and I can not get it to connect to the databse. I was able to get other db connections to work but the issue here is I must be puting the file path in incorrectly. I am using the same file structure as on my local machine.
The Errors:
Warning: require(../includes/core/db/map_dbinfo.php) [function.require]: failed to open stream: No such file or directory in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2
Fatal error: require() [function.require]: Failed opening required '../includes/core/db/map_dbinfo.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxxxxx/public_html/includes/state_map/phpsqlajax_genxml2.php on line 2
Anyone know why it's throwing these errors now but not on local machine and how I can go about fixing it?
I really have no idea where to start or even how to word this question. Any help would be appreciated. Thanks
You are standing in .../includes/states_map/phpsqlajax_genxml2.php and trying to reach "../includes/core/db/map_dbinfo.php". If you go back one directory from states_map you get to includes, and then you try to find includes under the includes directory.
Change the include to ../../includes/core/db/map_dbinfo.php
Why this is happening? Probably because you on your local server has .../includes added in you r include_path in php, which then will try includes/../includes/...