• On a WordPress site with “Grid” installed, which used to run perfectly fine, we have some new and rather serious issues.

    Situation:
    All existing pages with grid display well.

    When you try to edit a WordPress page with an existing grid, after saving the page will be empty in the frontend. In the backend however, it seems like the changes haven’t been saved.

    If you create a new page and then try to edit the grid, the edit form doesn’t show – instead there’s the following error message:

    Cannot add or update a child row: a foreign key constraint fails (db16836_74.wp_grid_container, CONSTRAINTwp_fk_container_typeFOREIGN KEY (type) REFERENCESwp_grid_container_type(id) ON DELETE CASCADE ON UPDATE CASCADE): insert into wp_grid_container (id,grid_id,grid_revision,type) values (0,48,0,2)

    So at the moment we’re completely stuck with the website – we can’t edit the existing pages, and we can’t re-create them from scratch either.

    Any help would be greatly appreciated!

    • This topic was modified 7 years, 1 month ago by sternhagel.
    • This topic was modified 7 years, 1 month ago by sternhagel.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author EdwardBock

    (@edwardbock)

    Hi sternhagel,

    I will look into this.

    Plugin Author EdwardBock

    (@edwardbock)

    @sternhagel

    The error message implies that grid is trying to use an container type with type id “2” that does not exist in wp_container_type table. That’s a bit strange because we fetch the type id a few lines before by the container type slug.

    We need more information to reproduce your error. Could you please contact me at [email protected] ? We would need a database dump of the grid tables.

    I will log all results and bugfix here again.

    • This reply was modified 7 years, 1 month ago by EdwardBock.
    Thread Starter sternhagel

    (@sternhagel)

    Hi EdwardBock,
    thanks a lot for your quick reply.

    I’m afraid however we can’t give database dumps away because it’s a customer’s website.

    We’ll try to fix the issue ourselves, and I’ll post any news in this thread.

    Plugin Author EdwardBock

    (@edwardbock)

    Hi @sternhagel ,

    we would only need the grid structure tables. There should be no customer related contents in there. But I understand your concerns.

    If I/we can help any other way with your problem don’t hesitate to ask.

    Good luck fixing the problem. I’m courious about it! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Editing grid not possible anymore’ is closed to new replies.