Post and Sites counted but not displayed
-
Since a couple of days, I have the following problem.
Everything works fine – front- and back, besides that. When going to “all posts” or “all pages” I only see the “count” – how many posts or pages are in each segment – but not post or page is listed. Also “screen options” and “help” isn’t opening.Any advice?
Thanks in advance
-
Make sure that your browser isn’t blocking javascript for your domain.
This can’t be the problem because I am running several sites. And only this site (on the same server) has this problem. Probably this is also the reason why I struggle.
Next, I’d try reinstalling WordPress via the updates page. This will replace all core files with fresh ones, in case any file is damaged.
Check if you’ve got any unexpected things in wp-config.php or .htaccess
Check if there is any .htaccess in the wp-admin folder.Have you tried temporarily deactivating all plugins and (also temporarily) changing to a standard theme, like “Twenty sixteen” or “Twenty seventeen”?
first thanks for all your advice.
I checked wp-config, but nothing unexpected there. Only I should mention that I have W3 Total Cache installed, which wrote to wp-config and .httaccess.
I should also mention that every plugin and template worked fine; no updates, etc and suddenly I got the error.When reinstalling WP via updates page. Will everything work again then or do I have to reinstall plugins like W3 Total Cache or similar ones?
I also temporarily changed the theme without any result. And, no there is no .htaccess in the wp-admin folder.
Again, thanks for your support and future support.
Reinstalling won’t change anything, except if some file is missing or damaged. But, as always, make sure you’ve got a fresh backup of uploads and database, just in case.
I’d suggest you try to temporarily turn off even “W3 Total Cache” (and, if needed, clear its entries in .htaccess. (For me a site broke due to some security settings in .htaccess, made by a reputable security plugin, when the site was migrated to PHP 7.)
Oh. One more thing you could try:
Enable debug (Temporarily!). It’s a parameter in wp-config.php, and then try to visit the admin pages again, to see if there’s any error or warning that hints you about the root problem.Just make sure to turn debugging off afterwards.
Could you please explain your last sentence again in more detail, please. As reading this I remembered that my hosting provider changed the php version to 7. So maybe this is my problem.
So, some plugin or theme that works perfectly well under PHP 5.x may have issues in PHP 7.0 or (even more so in) 7.1, since some details have changed.
Start with activating debug in wp-config.php to see if you get any hints.
Next: Clear out the cache stuff in .htaccess and carefully reconfigure W3 total… step by step, testing in between (and writing notes about what steps you’ve taken).At least your site is up, I had a WSOD ??
Good luck.
-
This reply was modified 7 years, 8 months ago by
tobifjellner (Tor-Bjorn “Tobi” Fjellner).
Hi Guys!
I encountered the same problem a week ago. It seems that it’s something with administrator rights (I can’t access a few areas), but all fixes I’ve found on-line didn’t worked so far. Even Installing a backup from April (on subdomain) brings the same issue. Really strange…So, right at the beginning. Nothing changed!
I have reinstalled WP, cleared out .htaccess and nothing changed – meaning the above error still exists.
I also turned on debug mode and these were the error messages:
____
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /html/wordpress/wp-includes/class-wp-hook.php on line 298
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /html/wordpress/wp-includes/class-wp-hook.php on line 298
Notice: Constant WP_MEMORY_LIMIT already defined in /html/wordpress/wp-config.php on line 106
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /html/wordpress/wp-includes/class-wp-hook.php on line 298
Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given in /html/wordpress/wp-includes/class-wp-hook.php on line 298
____At line 106 (wp-hook): is commentary * @param bool
At line 106 (wp-config): define(‘WP_MEMORY_LIMIT’, ‘128M’);
At line 298 (wp-hook): (before and after):
// Avoid the array_slice if possible.
if ( $the_[‘accepted_args’] == 0 ) {
$value = call_user_func_array( $the_[‘function’], array() );
} elseif ( $the_[‘accepted_args’] >= $num_args ) {
!!298!! $value = call_user_func_array( $the_[‘function’], $args );
} else {
$value = call_user_func_array( $the_[‘function’], array_slice( $args, 0, (int)$the_[‘accepted_args’] ) );
}I am no programmer and not familiar with that code. It seems to be an error from qtranslate-X plugin, but I have no idea how to fix it.
Any advice?Now I went down from PHP 7 to PHP 5.6 again and deleted W3 Total Cache, as well as other minifying tools. Mainly because my site went completely down.
Now everything works again, but not “Posts” and “Pages”, as described above. New is that I now have an error message when going to the page in admin area.The page tells me the following:
Fatal error: Uncaught exception ‘Exception’ with message ‘Serialization of ‘Closure’ is not allowed’ in /html/wordpress/wp-includes/class-wp-query.php:1045 Stack trace: #0 /html/wordpress/wp-includes/class-wp-query.php(1045): serialize(Array) #1 /html/wordpress/wp-includes/class-wp-query.php(1670): WP_Query->parse_query() #2 /html/wordpress/wp-content/plugins/wordpress-seo/admin/links/class-link-columns.php(182): WP_Query->get_posts() #3 /html/wordpress/wp-content/plugins/wordpress-seo/admin/links/class-link-columns.php(172): WPSEO_Link_Columns->set_count_objects() #4 [internal function]: WPSEO_Link_Columns->count_objects(‘top’) #5 /html/wordpress/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array) #6 /html/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #7 /html/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #8 /html/wordpress/wp-admin/includes/class-wp-posts-list-table.php(506): do_action(‘manage_posts_ex…’, ‘top’) #9 /html/wordpress/wp-admin/include in /html/wordpress/wp-includes/class-wp-query.php on line 1045Can anyone help me out of this problem? OR any advice?
Yoast SEO Plugin just tells me that everything is fine. -
This reply was modified 7 years, 8 months ago by
- The topic ‘Post and Sites counted but not displayed’ is closed to new replies.