ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Possible DB Corruption Problem

November 17, 2010 10:31am

Subscribe [2]
  • #1 / Nov 17, 2010 10:31am

    Michael C. (KKCJ)

    100 posts

    On an old site I built in my early EE days, I had the “About” weblog using the “Default Field Group”.... I know, I know! Anyway, I recently needed more functionality in the “About” weblog, so I created a new “About” custom field group and gave it an LG TinyMCE field and a Matrix field. Then I opened up tabs for editing all 4 entries in the “About” weblog, switched out the “Default Field Group” with the new “About” field group, opened up 4 more tabs editing those 4 entries again (this time with their new, blank custom fields), and copy-pasted from the “old” tabs to the “new” ones. For reference, the “old” body field was {body}, while the new one is {about-body}.

    Now, however, I can’t get any {about-body} content to display from that weblog for any of the entries, including a new one I created after the custom field group switch. For example, the following shows the titles only:

    {exp:weblog:entries weblog="about" dynamic="off"}
    <h2>{title}</h2>
    <p>{about-body}<br />
    {/exp:weblog:entries}

    While this shows the old contents of those original 4 entries (which, after having peeked into how things are stored in the DB, doesn’t completely surprise me), but not the contents of the new entry (also not surprising, since it wasn’t created during the {body} days, but during the {about-body} days):

    {exp:weblog:entries weblog="about" dynamic="off"}
    <h2>{title}</h2>
    <p>{body}<br />
    {/exp:weblog:entries}

    So I have a feeling that somehow the custom field group switch didn’t go over very well on the database end. Can someone have a look at it?

  • #2 / Nov 17, 2010 9:28pm

    Lisa Wess

    20502 posts

    Hi, Michael,

    I’m a bit confused.  Are you trying to pull data from a custom field group that is no longer assigned to that weblog?  That isn’t really expected to work.

    Otherwise - right now, can you take a screenshot of the groups assignment for your About weblog?  If there are only 4 entries, it may have just been better to create a new weblog and custom field group and move these items over.

  • #3 / Nov 18, 2010 7:59am

    Michael C. (KKCJ)

    100 posts

    Hi, Michael,

    I’m a bit confused.  Are you trying to pull data from a custom field group that is no longer assigned to that weblog?  That isn’t really expected to work.

    No, vice-versa… the About weblog had a custom field group (CFG) assigned, with data, which was switched out for a different CFG. Now nothing shows up in templates when I use the new CFG’s tags, but things do still show up when I use the old CFG tags.

  • #4 / Nov 18, 2010 4:11pm

    Ingmar

    29245 posts

    Have you changed the field group for all channels? That said, with only 4 entries if there are any problems wouldn’t simply redoing them be a viable solution?

  • #5 / Nov 24, 2010 1:51pm

    Michael C. (KKCJ)

    100 posts

    Oddly enough, the problem seems to have gone away after I logged-out and back in. I had already tried clearing all the caches, to no avail, so I don’t know what the story was. I guess we can file this under “Solved; don’t know why”. 😕

  • #6 / Nov 24, 2010 5:18pm

    Ingmar

    29245 posts

    Very good. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases