I just updated to the latest 2.3.6 and now the content in my admin area is blank. I disabled the cache plugin via FTP just in case I still see no admin content. The only thing I see in the admin is the top and left nav, and the Themeco update congrats message at the top of the content area.
Update. When I deactivate the Pro child theme and active the Pro them I can see that the admin content is visible again.
Seems to be an issue with the child theme?
Hello @MarketFresh,
Thanks for writing in! I have a hunch that there is a fatal error going on when the child theme is active. This usually comes from a custom code added in the child theme. Could you please reactivate your child theme and enable the debug mode? You can do this by opening wp-config.php and adding
define('WP_DEBUG', true);
/* That's all, stop editing! Happy blogging. */
When you revisit the admin page, you should have some error output describing the issue in more detail.
Please let us know how it goes.
The problem is this:
Fatal error: Call to undefined function x_is_portfolio() in /home/onecityp/public_html/wp-content/themes/pro-child/functions.php on line 38
Here is the entire bit of code in the functions.php:
add_action( ‘pre_get_posts’, function ( $query ) {
if ( x_is_portfolio() ) {
$query->set( ‘order’, ‘ASC’ );
$query->set( ‘orderby’, ‘date’ );
}
});
Why wasn’t this a problem before but is now?
Hi Jonathan,
I was able to replicate this issue on my test sites.
I will forward this as a bug to tour web development team.
For the mean time, please change your code to this.
add_action( 'pre_get_posts', function ( $query ) {
if ( is_page_template( 'template-layout-portfolio.php' ) ) {
$query->set( 'order', 'ASC' );
$query->set( 'orderby', 'date' );
}
});
Hope that helps,
Thank you!
You’re welcome.
Hi there,
Just wanted to let you know this has been fixed and will be in the next update.