Hi Stéphane,
Thanks for using Mission News!
I have a couple ideas to help narrow this down and find the source of the bug. First, could you let me know if you’ve set the blog to show excerpts or full posts? You can find this setting in the Excerpts section in the Customizer.
Next, I think you should be able to deactivate specific modules within Jetpack to narrow down which feature is conflicting with Mission News. It’s likely a feature that affects the post content in some way. Perhaps social share buttons being added to the posts?
If you could test this out for me that would be really helpful and I should be able to provide a solution.
Thank you!
Thread Starter
epslft
(@epslft)
Hi Ben,
Thanks for responding fast !
In the customizer, changing option for showing full post on the blog instead of no, content has come back every where with top bar administration. So you were right, this section is conflicting now with the theme (but wasn’t before).
But, trying to see if all was working well, I have just realized that, even with Jetpack deactivated, if I want to modificate a post or a page, edit window is displaying only title ! Everything else has disappeared !
And with JetPack acivated, something different happens : homepage is displaying well but on post an page it’s blank page.
Do you have any other ideas about the conflict ? Do I have to change the theme and reinstall it again ?
Thanks for your help
Stéphane
That’s very helpful, thank you!
Since this issue isn’t affecting any other sites, I’m still certain it is a bad interaction with a plugin on the site. Most likely Jetpack based on the testing you’ve done.
If the error disappears when the full post is shown, then I think I see the function in Mission News causing the conflict. I am just not sure why it’s causing an issue. Since there is no content at all output after the post byline, it is most likely a PHP error.
Can you access your PHP error log, and check for any recent error messages? You should be able to find the error log in your host cPanel or by installing this plugin.
Any related error messages you can share here will help me find out exactly what is going on.
Thread Starter
epslft
(@epslft)
Ok, I’ve installed Log Error Plugin and I have 2 type of error:
This one
Notice: Undefined index: ct_mission_news_status in /home/epslftcovl/www/wp-content/themes/mission-news/functions.php on line 434
or
Notice: Undefined index: ct_mission_news_status in /home/epslftcovl/www/wp-content/themes/mission-news/functions.php on line 428
And this fatal error
Fatal error: Uncaught Error: Call to undefined function excerpt_remove_blocks() in /home/epslftcovl/www/wp-includes/formatting.php:3311
Stack Trace
#7 /home/epslftcovl/www/wp-content/plugins/jetpack/functions.op in /home/epslftcovl/www/wp-includes/formatting.php on line 3311
1. wp_trim_excerpt(‘<a href=”http:/…’)/home/epslftcovl/www/wp-includes/class-wp-hook.php:288
3. apply_filters(‘get_the_excerpt’, ”, Object(WP_Post))/home/epslftcovl/www/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php:335
4. Jetpack_Media_Summary::get_excerpt(‘<a href=”http:/…’, ”, 16, 256, Object(WP_Post))/home/epslftcovl/www/wp-content/plugins/jetpack/_inc/lib/class.media-summary.php:61
5. Jetpack_Media_Summary::get(453)/home/epslftcovl/www/wp-content/plugins/jetpack/class.jetpack-twitter-cards.php:103
6. Jetpack_Twitter_Cards::twitter_cards_tags(Array)/home/epslftcovl/www/wp-includes/class-wp-hook.php:288
and this one
Fatal error: Uncaught Error: Call to undefined function has_blocks() in /home/epslftcovl/www/wp-includes/class-wp-editor.php:85
Stack Trace
thrown in /home/epslftcovl/www/wp-includes/class-wp-editor.php on line 85
1. _WP_Editors::parse_settings(‘content’, Array)/home/epslftcovl/www/wp-includes/class-wp-editor.php:151
2. _WP_Editors::editor(‘Une quinzaine d…’, ‘content’, Array)/home/epslftcovl/www/wp-includes/general-template.php:3116
3. wp_editor(‘Une quinzaine d…’, ‘content’, Array)/home/epslftcovl/www/wp-admin/edit-form-advanced.php:642
4. include(‘/home/epslftcov…’)/home/epslftcovl/www/wp-admin/post.php:180
5. {main}
Is that helpful to find the solution ?
Thanks !
Stéphane
That’s great, thanks!
It looks like Jetpack is calling a function that should be available in WordPress 5.0 – I see you’re on 5.0.3 which is the newest version. Can you make sure Jetpack is also running the newest version available?
In addition, it might be worthwhile to reinstall WordPress which only takes a moment using this button: http://pics.competethemes.com/9d0ad109978b
Are you using the classic editor still, or have you switched over to Gutenberg?
Thread Starter
epslft
(@epslft)
Hi Ben,
yes I checked, Jetpack is running up to 5.0.3 version. As you advised me, I reinstalled WP 5.0.3 and now it’s solved. Everything came back normaly.
Do you know exactly what was going wrong ? I think I was still using classic editor but now Gutenberg is running automatically. I reactivate Jetpack and it’s still going well so..
Thanks a lot for your time and your help !
—
Stéphane
That’s great to hear!
The error message pointed to a function within WordPress core which is unusual. I think there may have been an error during the update process when upgrading to WP 5.0.3 causing a corrupted file or something of that nature.
I wouldn’t expect this to come up again, but you can always post here if it does.
Thread Starter
epslft
(@epslft)
Thanks !!
You have been very helpful !