• Resolved paulth

    (@paulth)


    After changing my hosts server from PHP 5.6 to PHP 7.0 my wordpress-site displays only post headers and other stuff (time, author etc.), but no post content (text and images) or comments. I use WordPress 4.9.5, theme Ribosome (recently updated), SQL 5.7.20. I tried other themes, but that didn’t help. The dashboard is OK.

    Setting PHP back to 5.6 made the content visible again. But it makes uploading images impossible; after upgrading to WordPress 4.9.5 media uploading works only with PHP 7.

    Any idea what to do? Please help me!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Do you see any PHP errors?
    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host.

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there. https://codex.www.ads-software.com/Debugging_in_WordPress

    You can also try this: Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you cannot access wp-admin, there are other ways to deactivate plugins.

    Thread Starter paulth

    (@paulth)

    After I changed again to PHP 7, and added the debug statements in wp_config, a small miracle happened: the site now looks fine! Don’t know what happened, but I count my blessings. Thanks for your quick response, Steve.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What errors do you see in wp-content/debug.log?

    Thread Starter paulth

    (@paulth)

    None. (There isn’t even a log…)
    But I suddenly realized that yesterday I cleansed my pluginlist, and de-activated and now even removed CoolPlayer. That must have been the culprit!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Cool. <BIG GRIN>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No post content after upgrading to PHP7’ is closed to new replies.