• ruokaonvalmis

    (@ruokaonvalmis)


    Hello,

    I have noticed today that when editing/creating posts and pages, I get a blank page.

    I used the health check feature, and disabled all plugins and themes without solving the issue. I downgraded to previous versions and restored various backups without resolving the issue.

    I installed Query Monitor and saw that when trying to edit a post, this is reported in red

    GET	//fonts.googleapis.com/css
    ?family=Habibi:regular%2C700	A valid URL was not provided.	
    get_block_editor_theme_styles()
    wp-includes/block-editor.php:668
    get_block_editor_settings()
    wp-includes/block-editor.php:440

    The error on the page is the following:

    TypeError: l(...).sortable is not a function
        at Object.init (https://www.ruokaonvalmis.com/wp-admin/js/postbox.min.js?ver=01f7f2dce1bdb90ec09adc1f012ade6a:2:3686)
        at Object.add_postbox_toggles (https://www.ruokaonvalmis.com/wp-admin/js/postbox.min.js?ver=01f7f2dce1bdb90ec09adc1f012ade6a:2:2725)
        at https://www.ruokaonvalmis.com/wp-includes/js/dist/edit-post.min.js?ver=2baffbeec6cbe5171dee:7:29524
        at https://www.ruokaonvalmis.com/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2:10550
        at https://www.ruokaonvalmis.com/wp-includes/js/dist/redux-routine.min.js?ver=c9ea6c0df793258797e6:9:790
        at https://www.ruokaonvalmis.com/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2:9384
        at Object.dispatch (https://www.ruokaonvalmis.com/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2:10493)
        at Object.initializeMetaBoxes (https://www.ruokaonvalmis.com/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2:14530)
        at https://www.ruokaonvalmis.com/wp-includes/js/dist/edit-post.min.js?ver=2baffbeec6cbe5171dee:7:94370
        at $r (https://www.ruokaonvalmis.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9:83333)

    I installed the “Disable Gutenberg” plugin and it worked, so I believe this is an issue with the core code. I don’t understand though why downgrading and restoring backups to previous versions did not work.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there,

    This is a guess based on what I’m seeing in the code here (another person might have a stronger answer), but in case this helps get you started sooner, I thought I’d try to answer. ??

    It looks like the code you’re showing is from a block theme. Are you switching from one block theme to another, perhaps?

    I’m wondering if some theme blocks got deleted in your templates. You can check this under your Appearance > Editor > Templates > Post or Page section, which might explain the blank theme. If you head to that section using a block theme, if you click your list view, do you see “Post Title” or “Post Content” blocks, like in this screenshot?

    Post Title and Post Content Block Example Image Here

    If those theme blocks are missing and you are using a block theme, that may be why content on posts and pages is not appearing. Try adding the “Post Title” content block and “Post Content” block in, and see if that doesn’t resolve the issue.

    A question: How are you making your backups? Are you using a plugin or an XML file or something else?

    Finally, I’m not able to see the issue when I click on individual posts or pages; it sounds like you fixed it a background way, but we may be able to better diagnose the problem if we can see it for ourselves. Do let me know if you choose to do this and I’ll take a look!

    Best of luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Blank page when editing/creating posts&pages’ is closed to new replies.