Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » removing ImageGallery module [SOLVED]

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2218 Views
  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    Would it be save to "drop" these? It scares me a little to make changes to my database outside the CMS

    As with any db operation best to make a backup (and make sure that you can restore that backup) before you start.

    I was worried about left over fields too - if I correct a spelling mistake in the db, dev build I have two very similarly named fields... but not any more thanks to http://github.com/smindel/silverstripe-dbplumber it has an "artefacts" function that creates sql (and runs it) that removes these obsolete fields and tables.

  • KoJans
    Avatar
    Community Member
    14 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    O.k.; I have db-plumber too. I made a backup; and then used dbplumber to remove all tables with 'ImageGallery' in their name. Then a ran /dev/build; that showed some changes but no errors. My site keeps working, except for the /admin/assets page: this still gives me the same error...
    Is there a way to see which table(s) in the database cause the error?

  • swaiba
    Avatar
    Forum Moderator
    1784 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    I'd assume you uploaded some images when using the module, for there might be assets records that are missing ClassName instead, so I'd widen the search for records in the database without a classname... I have to admit that this is the kinda time I get frustrated with silverstripe.

  • KoJans
    Avatar
    Community Member
    14 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    Hi!

    I now searched all tables in the database with:
    SELECT * FROM {tablename} WHERE ClassName = '';
    but all gave me the "empty set" answer. So now I'm pretty shure there are no records with an empty ClassName in the database.
    So now I guess I'll have to focus on the second part of the error-message: "and $baseClass not set".
    To find out what causes this error I'll have to look inside /var/www/silverstripe/sapphire/core/model/DataObject.php; not so easy because it's quite long (3500+ lines) and I'm even not shure that the origin of the error lies in this file; or somewhere before...
    In other words, I need help from someone with more knowledge of the "inner workings" of SilverStripe. Luckily I'm not frustrated, because it's only a personal website, and the fontend is still working. I want to use this situation to learn more.

    Ko.

  • KoJans
    Avatar
    Community Member
    14 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    Hello (SS) world!

    Anybody out there who can give me a clue how to solve this?
    I'm even willing to pay a few $$ to someone who can teach me how to make a WORKING image gallery with SilverStripe.

    Ko.

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    Make sure you use /dev/build/?flush=all

  • KoJans
    Avatar
    Community Member
    14 Posts

    Re: removing ImageGallery module [SOLVED] Link to this post

    Hi,

    I think I've solved this (at last...). Today I also removed the dataobject_manager- and the uploadify modules. But the error on /admin/assets was still there (after /dev/build).
    Looking at the /dev page I found /dev/tasks (which I'd never seen before!) and the first task on the list is: 'Sync Files & Image assets'.
    I clicked this....and that did it: I no longer have an error on /admin/assets.

    Ko.

    2218 Views
Page: 1 2
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.