Jump to:

22999 Posts in 11854 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Inconsistent database issue

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1110 Views
  • Marlie511
    Avatar
    Community Member
    36 Posts

    Inconsistent database issue Link to this post

    When I go to files and images tab, I get this error:
    [Warning] Inconsistent database issue: SELECT ID FROM `File` WHERE Name = '' AND ParentID = 0 should have returned data

    This happened after I was reorganizing the files folder in the files/images tab.
    Any idea on what I can do to fix this?

    Thanks!

  • Marlie511
    Avatar
    Community Member
    36 Posts

    Re: Inconsistent database issue Link to this post

    Ok, I went into Mysql Query browser and deleted everything in the file table.
    Opened Firefox and ran a db/build
    Then logged into the web site and selected the Files/Images Tab and everything it rebuilt the table list.
    All is working now, except my File list pages. They don't show anything in there.

  • carlos
    Avatar
    Community Member
    41 Posts

    Re: Inconsistent database issue Link to this post

    Hi,

    Which version of SilverStripe are you using? db/build has been deprecated, you should use dev/build now (I thing since 2.3).

    regards Files, what are you trying to do?

    cheers
    Carlos

  • ttyl
    Avatar
    Community Member
    114 Posts

    Re: Inconsistent database issue Link to this post

    there is also

    /dev/tasks/FilesystemSyncTask

    and

    /dev/tasks/FlushGeneratedImagesTask

    1110 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.