Change Wordpress’ ABSPATH
Recently, I had migrated one of my blogs to another host. Everything was going great until I kept getting errors that showed my old host’s absolute path which was weird because I would think Wordpress wouldn’t store something like this. However, it had to do with one of my plugins (Contact Form 7), and I could of disabled it but I didn’t want to because it was an essential part of my blog. I’m guessing the plugin had some sort of interaction with the wp-upload folder. Anyways, I did a search in my MySQL database using PhpMyAdmin for a part of my old host’s absolute path and I found the entry that needed to be updated. It was under wp_conhnp_options table with the value upload_path for option_name. So just go ahead and update it’s value and everything should run smoothly again.
Here are PhpMyAdmin instructions:
- Select the table wp_conhnp_options in your Wordpress database.
- Click the Search tab.
- Below, look for option_name and in the corresponding text field, type in: upload_path
and then click Go. - You should now see one record/row, click the little pencil on the left of the red x to edit.
- Now update your old absolute path with your new absolute path and be sure that it points to the uploads folder: /home/public_html/dougymak.com/wp-content/uploads
- Be sure to click Go before exiting and then check if everything’s running smoothly.
No comments
No comments yet. Be the first.
Leave a reply