10390 Posts in 2201 Topics by 1712 members
| Go to End | Next > | |
| Author | Topic: | 646 Views |
-
jQuery Slide module show causing errors in admin

12 March 2012 at 3:39pm
Hi
I'm not very experienced with SilverStripe having inherited the site from a previous developer so please forgive the noobyness.I have installed the jQuery Slideshow module which works fine on some pages but causes other pages to give the following error when selected for editing i the admin page.
"Unknown column 'HomePage.ID' in 'where clause'
IN POST /admin/getitem?ID=1&ajax=1
Line 525 in /home/soundsma/public_html/sapphire/core/model/MySQLDatabase.php"This is preceded by a query string.
In _config.php I have:
"//enable slideshow on all pages
DataObject::add_extension('Page', 'Slideshow');"If I comment out the above, the errors vanish.
The other thing I notice is that the error occurs on pages that dont use mysite/code/Page.php but I'm not sure how this relates to the 'Page' parameter in the above. They have their own files eg: mysite/code/Project.php and mysite/code/Homepage.php
I'm just guessing beyond here so any help would be much appreciated.
many thanks
-
Re: jQuery Slide module show causing errors in admin

13 March 2012 at 12:06am
Hi
Looks like your calling the Slideshow to a HomePage,
Try adding this
//enable slideshow on all Homepage
DataObject::add_extension('HomePage', 'Slideshow');Let Me Know
Darren
-
Re: jQuery Slide module show causing errors in admin

13 March 2012 at 10:47am
Thanks for the suggestion.
I now have this in _config.php://enable slideshow on all pages
DataObject::add_extension('Page', 'Slideshow');
//enable slideshow on all Homepage
DataObject::add_extension('HomePage', 'Slideshow');Is that what you meant?
I still get the error though
-
Re: jQuery Slide module show causing errors in admin

15 March 2012 at 1:34am
Hi
Did you run dev/build when you put the Slide Show in your root dir,
plus did you run it again when you changed the config?
Darren
-
Re: jQuery Slide module show causing errors in admin

15 March 2012 at 3:15pm
Hi
That pesky dev/build again! I do forget it sometimes but this time it made no difference I'm afraid.
I still get an error when I try to edit the homepage in admin.
On other pages that use Page.ss the slideshow works fine, it appears to be a problem on pages that dont use Page.ss such as HomePage.ss. This may not be related but it is my observation.I have attached a txt file with the whole error message in the hope that it might mean something to you.
Again, many thanks for your help, your time is much appreciated.
-
Re: jQuery Slide module show causing errors in admin

16 March 2012 at 1:33am
Hi
Can you explain to me how you created the homepage.ss?
and you set it up?Darren
-
Re: jQuery Slide module show causing errors in admin

16 March 2012 at 9:53am
Hi
I inherited the site from the developer who built it so I didn't personally create any of the pages.
Maybe if you can tell me what I need to check I could have a look.Alternatively would it make sense for me to set up ftp access for you so you can have a look yourself.
Many thanks for your time, its much appreciated.
Mouli
-
Re: jQuery Slide module show causing errors in admin

16 March 2012 at 10:35pm Last edited: 16 March 2012 10:36pm
Hi
If you like send ftp to darren at lexandclo dot co dot uk.( in email form!)
and ill take a look for you
Darren
| 646 Views | ||
| Go to Top | Next > |


