3.8 /post count via meta issues? – library not showing, single.php, blankscreens
-
Hi there,
I just updated to 3.8 earlier today, and have been having major issues. wp-admin will not open (not even for the login page) in chrome/ie. Instead it opens a completely blank page.
It opens/works ok in firefox, but there are some issues.
The library is showing when you click on it in the side menu, but when you are adding images within posts, there appear to be none in the library. If you upload one, then it does that ok, but when you click ‘insert into post’ it doesnt appear within the post at all.
Plus everytime you update anything, even a post, you end up on a completely blank page.
Is there issues with this update? Are these problems happening to others? I remember having a similar issue (going to blank pages after editing) some time back and having to perform a manual install. That was an issue that thousands of other webmasters had at the time. Im not sure what it was, I just remember that.
Prior to upgrading to 3.8, everything seemed fine. There were no blank screens as far as i remember. However, I did make one other change, yesterday, I added post view counts via meta, not a plugin…
First I added the following to functions.php in my theme…
<?php remove_action('wp_head', 'start_post_rel_link', 10, 0 ); remove_action('wp_head', 'adjacent_posts_rel_link', 10, 0); // function to count views. function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } }
then i added this to line 1 of my single.php
<?php setPostViews(get_the_ID()); ?>
and finally I added this to my single.php where i wanted post counts to appear
<?php echo getPostViews(get_the_ID()); ?>
That code is the final code, but I did make adjustments, because it initially caused conflictions, with the single.php failing to load within content for some people. I added a few blank spaces or empty lines, or moved the code to the very beginning or end of the files, and that seemed to fix it.
Any ideas on what might be going on with my wp-admin?
- The topic ‘3.8 /post count via meta issues? – library not showing, single.php, blankscreens’ is closed to new replies.