WordPress.org

Ready to get started?Download WordPress

Forums

Multiple content blocks
Multiple Content Blocks not showing on edit page form (8 posts)

  1. Barry
    Member
    Posted 1 year ago #

    I have a template file for a site's home page which is named front-page.php that has several content blocks in it. I am seeing an issue where sporadically the edit areas for the blocks do not appear on the edit page form for the page. The content areas always display when you view the page, they just are not available to edit.

    I have tried setting the template for the page to explicitly be the front page template, or setting the template to the default page. In either case the page displays properly, but sometimes it is editable and sometime it is not.

    I just updated to the latest version of MCB but that did not make a difference.

    Has anyone seen this happen, and have an idea what may be going on (a memory issue, interaction with other plugin, an MCB bug?)

    Thanks,

    Barry

    http://wordpress.org/extend/plugins/multiple-content-blocks/

  2. Trendwerk
    Member
    Plugin Author

    Posted 1 year ago #

    I think this has something to do with the HTTP requests made in the back-end. From the admin panel, it tries to initialize which content blocks are being used on a certain page or whatever.

    This happens through a HTTP request, visiting the page in the front-end. However, on some servers this seems to fail. I have not been able to re-create this problem so it's quite hard to fix.

    Can you try commenting line 101 & 102 in assets/inc/class.MCB.php? If you visit the page in the front-end manually, you should be able to see and edit the blocks. However, it will not try to reinitialize the blocks automatically anymore.

    Hope it works!

    Regards,
    Harold

  3. Barry
    Member
    Posted 1 year ago #

    I did not get around to trying your suggestion, but I did just update the plugin to the latest version, and it appears that editing the page displays the content blocks correctly, whether the editor is entered while visiting the page, or just from the dashboard. So I am marking this issue as resolved.

    Thanks,

    Barry

  4. Trendwerk
    Member
    Plugin Author

    Posted 1 year ago #

    Ok. Quite strange, I didn't change too much in the last version. But I'm glad it works! ;)

  5. Barry
    Member
    Posted 1 year ago #

    Ok, I guess I spoke too soon. Today we are seeing issues with content blocks not appearing on the edit form, or the blocks appearing on the form, but updates are not getting applied. Also some updates to other elements for a page are wiping out content for some of the blocks.

    I am seeing this both on my test server and one client's live server, both of which are Linux based.

    I can't apply the change you suggested above, since the version update that happened since then changed what code the line numbers referred to. Any suggestions at this point? I'd be happy to get you access to the test server if that would help you troubleshoot/isolate what is going on.

    Thanks,

    Barry

  6. Trendwerk
    Member
    Plugin Author

    Posted 1 year ago #

    I think this problem probably has to do with failing HTTP requests. Either on the edit page or when saving the page.

    It takes some time to properly fix and test this issue and unfortunately, we do not have alot of time to do this right now.

    The lines are still the same, so you can try commenting line 101 & 102 again (and visiting the page in the front-end manually) for a quickfix.

  7. AMGCAT
    Member
    Posted 1 year ago #

    I am having same problem.

    I have it in some pages and in others the edit box is not there.

    I have tryed commenting lines 101 and 102 in the mentioned file and still having same behaviour.Its very strange because after commenting the lines it worked perfectly and after of times uploading new content the edit box of MCB just dissapear.

    Can that be fixed or do we have to live with this bug.?

    Thank You

  8. Trendwerk
    Member
    Plugin Author

    Posted 1 year ago #

    That's strange. I'm not sure I fully understand what you mean though.

    Do you mean it works after commenting the lines and after a few edits it breaks again?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.