I`m trying to move my wordpress website from local computer to my new hosting. After compliting all guide steps I got an error:
Error
error: require(): Failed opening required '/home/casinost/websitename.online/www/wp-includes/home/casinost/websitename.online/www//load.php' (include_path='.:/usr/local/pear/php56') in /home/casinost/websitename.online/www/wp-settings.php on line 19
I understand that it might be some kind of path conflict of my old directory and new one, but how can I change this? Which file I need to modify to choose the correct directory?"
Wordpress always saves URLs as absolute file paths, including http:// or https://, the domain etc. This looks as if you have relatives filepaths in your wp-settings.php file which were not converted by whatever routine you used for the move to the other server. Compare those filepaths with all the other file paths/URLs which were converted correctly and change it accordingly.
Moving a wordpress site can be really hard, thats why there are some plugins for doing this with just a few clicks.
like: Duplicator
in the free version it should help you and do this task in a few minutes without headache.
Related
forgive me if is a basic question...
I am working on setting up a form on our new hosted Wordpress site - currently hosted inhouse on IIS/PHP/Wordpress server (I am not JR - but this stuff escapes me and would really like to figure it out!! I hate not knowing)
The OP that made the form / got it working is no longer around and I am sure there is a better way but this is what I have - a request form.
When I load the required files in the same path - copy the code from the WP page and paste it in the new Wordpress page - it loads without formating, the pick box doesnt look right and when I submit the form - I get these below PHP file errors. I can open the path in my browser and it exists - I see the class.GA_Parse.php file)
I checked execustion rights on the scripts - its set to execute - apart from that I dont know why it cant fine the files and that include_path I dont see via my hosting companys dir structure via FTP.
Any help would put me forever in your debt, I hope to be able to return the help, this site looks amazing!
Cheers,
Warning: require(/gaparser/class.GA_Parse.php): failed to open stream: No such file or directory in /home/comany/public_html/stage/forms/getfreetrial_v3.php on line 4
Warning: require(/gaparser/class.GA_Parse.php): failed to open stream: No such file or directory in /home/company/public_html/stage/forms/getfreetrial_v3.php on line 4
Fatal error: require(): Failed opening required '/gaparser/class.GA_Parse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/company/public_html/stage/forms/getfreetrial_v3.php on line 4
PHP will load pages based on the disk location, not the URL. This means it's starting in the server's root / directory, not in /home/company/public_html/stage/forms. When including a file, either you have to use a relative link:
require('./gaparser/class.GA_Parse.php'); // starts in the same directory as the file
Or use PHP's server variable to get the document root:
require($_SERVER['DOCUMENT_ROOT'].'/gaparser/class.GA_Parse.php');
The paths may need to be tweaked depending on where the file actually is.
First time asking a question here but I'm really stuck.
Basically I'm trying to install a Silverstripe 3.1 cms on a subdomain as a development site, on my main domain I already have a Silverstripe 2.4 site running.
The first thing that comes up is this error, "development" is the subdomain folder.
Warning: require_once(framework/dev/install/DatabaseConfigurationHelper.php): failed to open stream: No such file or directory in /home/usr/public_html/subdomain/framework/dev/install/install.php5 on line 39
I check if the file is there and it is, then I check if the filepath is wrong because the file that is calling require_once has a full path from home/ but that can't be it because I've been able to install Silverstripe on my localhost.
I google redirecting (I've had no experience with it before) and find stuff on htaccess related to Silverstripe but none were problems that I was having, i.e. there are .htaccess files in main directory and subdomain. Not too sure if they're conflicting but I have tried RewriteEngine Off on my subdomain. I mostly leave the default Silverstripe .htaccess files as they are.
Even declaring different suPHP_ConfigPath's i.e.
main website: home/usr/public_html/
subdomain: home/usr/public_html/subdomain
At this point I look back at the error and try hacking the require_once filepath, changing it to
$_SERVER["DOCUMENT_ROOT"] . '/framework/dev/install/DatabaseConfigurationHelper.php
It mostly works but the requirements check page is void of css and any fails to GET any images
I am able to check all the requirements though passing everything but the File Permissions check:
"Does the webserver know where files are stored?" failed. Showing me the filepath it tried being the absolute path of a file prepended with the path to the subdomain. Looking at the code my hack was never intended to work.
Did I miss something? I'm not very knowledgeable with servers but I've done everything I can think of, is there anything I can do?
Hey thanks for your suggestion but I think it was meant for addon domains? I only wanted a subdomain for testing purposes.
What I ended up doing was to avoid installing Silverstripe on the server and instead install it on my laptop and then upload that to the server. It worked fine after copying the appropriate database and fixing Silverstripe's BaseURL to '/'
I just installed Wordpress on my virtual hosting server and am able to access the admin interface. I can write posts and make new users, but can't seem to be able to upload images/media. I keep getting the same error: “'wrc4.jpg' has failed to upload due to an error"
I have googled this problem and searched through forums, but I can't find a case like mine.
The path that wordpress is attempting to write to is a combination of the absolute path and the virtual path?
E:\Sitename\blog/wp-content/uploads/2012/03
The absolute path that it should write to is:
E:\Sitename\blog\wp-content\uploads\2012\03
and the virtual path would be:
http://sitename.com/blog/wp-content/uploads/2012/03
How can I change the wordpress settings so I don't receive this error?
You may want to check your upload's folder permissions, especially the write permission.
Greetings ! I have a project that has php index.php file in /htdocs. Also include files like dboperaitons.php, config.php and css file also in /htdocs/themes. Now I set up New site in dreamweaver opened the index.php file, it is running fine , but when I click on properties and ry to add or modify css property from dreamweaver, it gives me error saying unable to open file http://localhost/themes/en.css file because it is not found in the hard disk.
1. Why is it searching for file as http://localhost instead of c:/xampp/themes.
2. It says en.css file is remote file and cannot be edited.
How can I resolve this. Please guide.
you can fix this problem by browsing the file manually from its location.
When you define a site in Dreamweaver you need to make sure you set up both the local and remote locations in order for it to know where files are. It sounds like you have not defined the local site folders properly and DW is confused about where things go.
Total newbie here, so take it as you will...
I'm doing a site upgrade right now, and everything works fine except...
I have a WordPress installation in a subdirectory, and now that I've brought the main site live, I'm getting
include(/settings.php) [function.include]: failed to open stream: No such file or directory
and
include() [function.include]: Failed opening '/settings.php' for inclusion (include_path='.:')
on includes from within the subdirectory. I've played with setting different include_path settings, I know for sure the files are there (they are being included with no problems from the root directory), and I'm changed no permissions or anything during the rollout of the site.
Please let me know if this question is improper, or misplaced, or too vague, or what have you - first post after months of googling and lurking.
thanks in advance!
You're likely using php in a chrooted environment, so the root path of the server doesnt match that of the script.
Regarding the variables scope issue, could you post some sample code?
"/settings.php" points to the root of your server. It should be "settings.php" if it is on the same path and it should be in quotes.
Cheers
I would recommend adding define('WP_DEBUG', true); to your wp-config.php file and report back with more information. Make sure to undo this any you grab the info for debugging as having this on a live site could be a security risk. I just search my whole WP directory for include( "/settings.php" ); and could not find anything, which makes me think that it make be an issue with a plugin, theme, or other custom code. You could troubleshoot this by disabling all of your plugins, seeing if the site works again, and then painstakingly enabling your plugins individually until you find the culprit.
Does the error message you get point to a specific file and line number? That can help debug the problem.