Images not showing after changing wp-content folder name

The safe way to change wp-content folder, is the following: First, define the new wp-content name in your wp-config.php file: define (‘WP_CONTENT_FOLDERNAME’, ‘hamza’); Then, define the new path for images, style, scripts, etc: define (‘WP_CONTENT_DIR’, ABSPATH . WP_CONTENT_FOLDERNAME) ; define(‘WP_CONTENT_URL’, WP_SITEURL . WP_CONTENT_FOLDERNAME); This will allow your plugins and other stuff to be notified about … Read more

Error Establishing a Database Connection, but credentials are OK

You appear to be missing the wp_termmeta table, which I’m guessing was omitted from the backup. Here’s a ‘create table’ syntax for this table (you may have to tweak this depending on your MySQL version) CREATE TABLE `wp_termmeta` ( `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `term_id` bigint(20) unsigned NOT NULL DEFAULT ‘0’, `meta_key` varchar(255) COLLATE … Read more

“Undefined index” in wp-includes/media.php

For anyone else who stumbles on this problem I’ve found a possible cause. When you’re running wp_get_attachment_image_src($imageid,’full’) in your code if the $imageid you’re checking doesn’t have a ‘full’ size available you will see this error. As suggested above this particular problem could be caused by a plugin not checking for the existance of an … Read more

Featured Images are not able to be set

You added your own answer in the comments section: There is only one total php warning/error: wp-admin/admin-header.php:9 – Cannot modify header information – headers already sent by (output started at /home/content/p3pnexwpnas13_data03/47/3056147/html/wp-includ‌​es/functions.php:413‌​8) include(‘wp-admin/edit-form-advanced.php’), require_once(‘wp-admin/admin-header.php’), header… The other half of the errors (it’s two different problems you are facing) can also be found in your comments 1) … Read more

Preserve old values on error in setting API

Unfortunately WordPress does not provide the old value as an additional argument to your sanitize_callback callable. This is supported in general by the option validator hook that WordPress calls when saving the updated setting… return apply_filters( “sanitize_option_{$option}”, $value, $option, $original_value ); …but in practice it is not actually registered with any additional arguments when the … Read more

403 error on admin login page

I managed to enter the admin page finally! So I added these two lines to wp_admin.php: define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); afterward deleted the .htaccess file, then deleted browsing history, cleared cache and cookies. After all of this I could enter the admin page. Then I went to options/general and options/permalinks and saved the setting, it generated a … Read more

Accidentally Broke Site (Please Help) [closed]

Via FTP, go into the /wp-content/plugins/ folder and delete the wp-date-remover/ folder. That will disable the plugin on the code level. If you need help with FTP, visit your web host control panel and navigate around, view their docs, andor talk to their support. (A very good reminder to always back up your website!)