[Resolved] Page Builder not displaying

  • Author
    Posts
  • #9147

    j
    Participant

    after updating the theme the page builder from siteorigin is not displaying.

    checked in fiddler it’s throwing this error
    Fatal error: Call to undefined function mime_content_type() in /home/lochinvarridgeco/public_html/wp-content/plugins/siteorigin-panels/inc/admin-layouts.php on line 94
    0

    #9148

    j
    Participant

    The theme is Polestar free version

    #9149

    Andrew Misplon
    Keymaster

    Hi 🙂

    Is Page Builder up to date? Please, check that there isn’t an update for Page Builder waiting. If there is, please run it.

    If the above doesn’t help you can roll Polestar back.

    Will be online in a few hours to assist further.

    #9150

    j
    Participant

    Yes all are up to date, also tried disabling other plugins.

    My temporary fix is that i commented out the
    wp-content/plugins/siteorigin-panels/inc/admin-layouts.php
    // get file mime type
    $mime_type = mime_content_type( $file );
    // skip non text files.
    if ( strpos( $mime_type, ‘text/’ ) !== 0 ) {
    continue;
    }

    is that ok?

    #9151

    Andrew Misplon
    Keymaster

    That should be perfect, thanks.

    Page Builder introduced hardening for this error in the last version but it clearly wasn’t enough. Thanks for sharing the info. I’ll pass this on and hopefully we can prevent it happening in future. We haven’t been able to replicate it so far which has made things harder.

    I’ll update Polestar this afternoon to remove the layouts function till this is resolved.

    Thanks for the help, much appreciated.

    #9152

    j
    Participant

    Thank you.

    i don’t know if it has something to do in php version though

    #9153

    Andrew Misplon
    Keymaster

    Thanks. At a glance it looks like there is support in PHP 7. Some users can switch versions in thei hosting control panel, if you can, that might be an option.

    #9154

    j
    Participant

    ok noted. thanks

    #9155

    Andrew Misplon
    Keymaster

    Any chance you know which version of PHP your server uses? Just so I can add that to the issue report? Thanks.

    #9156

    j
    Participant

    Does not work in live site PHP Version 5.6.34

    but works in localhost PHP Version 5.6.24

    #9157

    Andrew Misplon
    Keymaster

    Super, thanks for the update. I’ll pass this all on shortly. If you can upgrade to PHP 7, I’m sure it’ll help with other challenges in the future. PHP 7.2 is recommended for WP.

    #9171

    TheDoubleDavis
    Participant

    Hello,

    I also wanted to chime in to mention it is happening to one of our sites too. Same error, and everything is up to date. Front end of the site looks good, just the admin area isn’t displaying. I know this was created yesterday but I also wanted to wait for an update as well.

    Thank you in advance!

    #9172

    Andrew Misplon
    Keymaster

    Hi, thanks for reaching out.

    The issue is in PHP 5, some servers have an extension installed that resolves this and others don’t. If you can upgrade to PHP 7, the issue will be resolved.

    Page Builder will rewrite this function in their next update to avoid this for servers unable to upgrade PHP.

    I’ll push an update for Polestar this evening to remove the layouts folder until the Page Builder update is out.

    Sorry for the hassle. Thanks.

    #9173

    TheDoubleDavis
    Participant

    Thank you for the speedy response! We are up to PHP 7.

    The error is gone, however the display in edit mode and add new is still not there (and only a button for visual and text).

    Just wanted to update with that as the information may help.

    We were also considering uninstalling page builder plugin and the widget bundle plugin that goes with it (both site origin), then reinstalling them both again. Though we are worried it will wipe the information on the pages.

    #9180

    Andrew Misplon
    Keymaster

    Super, thanks for upgrading PHP.

    Page Builder has most likely dropped below the editors. When the tab fails like this it’s often due a JS conflict. Please, try a plugin conflict test. Temporarily deactivate all non-SiteOrigin plugins in one go. Is the issue resolved? If so, there is a conflict. Reactivate plugins one by one, test after each activation. If the issue does not resolve with all non-SiteOrigin plugins deactivated, it isn’t a plugin conflict.

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.

Scroll to top