Wordpress fails to upload my content - php

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.

Related

Error moving wordpress site

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.

Internal pages not found (404) after moving to new host - CodeIgniter

I have recently moved one website to new server. I have transferred everything properly including mysql database. But now the internal pages are not opening (sending 404 error). Homepage looks fine.
One thing to consider here is that, the website was on shared cpanel with another domain and residing in a folder. Now after moving, it is placed directly in public_html. I hope, this doesn't create any issue.
The website is: http://nepaltrekking.co.kr/
regards,
When hosting changes, we need to take care of the following steps for codeigniter:
Check required php and apache modules are installed and enabled.
If installation is not in root directory, you must change htaccess.
If domain is changed, you need to edit config file for new base_url.
Clear application cache if enabled. Give required write permision in cache directory.
If nothing works, then see error log and correct error accordingly.
Actually I resolved it. The issue was with .htaccess. I changed the permission to 666 and it started working. I think there was problem writing in the .htaccess file.

How do I check after uploading files to the host

A very rookie question but I was not able to find any good answers.
I uploaded 3 php files to my host using FileZilla. One of my php files (name is dbtest.php) is connecting to a database and it should display "Success" if the connection is successful ("error" if not)
My host is 188.166..
My question is how do I view the php file output in the browser?
When I was uploading to my localhost, I can access the file as such: 127.0.0.1/{foldername}/dbtest.php but when I try 188.166../{foldername}/dbtest.php I get an error saying "The requested URL /vod_api/dbtest.php was not found on this server."
But I can access the file using:
ftp://188.166../{foldername}/dbtest.php
Although it doesn't show the output ("success"/"error") It just shows the php code
UPDATE
The url is 188.166.{number1}.{number2}. The asterix I used have got cut off
ok, you need to put it in public_html folder. not all the folders are accessible on web, some of these folders hold server settings and some are for your php application use only.
Edit: the public_html folder can have different names depending upon server. like www. best if you check with your hosting provider for details if you can't find the www or public_html folder.
For more help you can see here.

CodeIgniter: Your system folder path does not appear to be set correctly...using HTTPS

I'm working with a website that I didn't build, that uses CodeIgniter as its framework. I had a relatively simple task: secure the site with an SSL certificate. No problem.
Except, the site will not load with HTTPS, although it still loads correctly using HTTP. It gives the following error with HTTPS:
Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php
Now, the error message seems self explanatory...change the system path in the index.php file, but this is what the system path is set to in that file:
$system_path = '/codeigniter/2_1_3';
Fine, but this folder doesn't exist in the directory structure, and neither does a folder named 'system.'
So, I really don't have a clue how to fix this problem. It isn't even clear to me how the website functions at all since I can't find the folder it is supposed to be using as its system folder.
Any help would be appreciated. Please ask if there is any additional information you need to help.

Error when running WordPress on new server

I've just upload a WordPress project into a web server. Everything went fine with the exception of the User-Photo plugin. The problem I'm having is that its doesn't seems to find the basedir path. This is the error:
Upload error: Unable to place the user photo at: /var/www/clients/client2/web4/web/arsoblog/wp-content/uploads/userphoto/1.jpg
First of all, I don't know where this path is. Even on the local server, where the site is working good, is using the exact same path, which I can't find.
Maybe someone of you knows what could have changed from one server to the other. By the way, the blog is inside another site in the web server, which is developed using CakePHP.
EDIT --- I'm having the same problem with all the uploads!
The problem is in your upload directory. When we develop the WordPress site in localhost, the default upload directory will be point to your localhost only. When you move to online server, this directory path will not change.
To override this do the following steps:
Login to your cPanel/control Panel
Go to phpMyadmin
Select your database.
Go to wp_options table
On the second page (around 58th row) Edit 'upload_path'(For the first time this row may be blank).
Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
Change "username" and "folder-name". Username is usually the username you use to login to cPanel, or your domain’s control panel. Folder-name is used for the sites hosted in subfolders. If you hosted the site in root folder, remove it.
Here is a detailed tutorial How to move wordpress to a new server or host.
If you already used WordPress uploader in localhost, you need to do a search in wp_posts table and replace your localhost reference to your live site's reference. There are some plugin available to do these search and replace in database. Check this one
Hope this will solve your problem.
777 permissions are dangerous and not the correct fix for the issue. You will get hacked with 777 permissions. See Hardening WordPress « WordPress Codex
For solving this problem you have follow some step,
*Login to your cPanel/control Panel
*Go to phpMyadmin
*Select your database.
*Go to wp_options table
*On the second page (around 58th row) Edit 'upload_path'
*Give your correct directory.Eg: /home/username/public_html/folder-name/wp-content/uploads
then you shift your server See tutorial
for more
http://www.techyv.com/questions/error-when-running-wordpress-new-server

Categories