Jump to:

10854 Posts in 2518 Topics by 1794 members

All other Modules

SilverStripe Forums » All other Modules » jQuery Slide module show causing errors in admin

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1037 Views
  • babbler
    Avatar
    Community Member
    4 Posts

    jQuery Slide module show causing errors in admin Link to this post

    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

  • Dazman1
    Avatar
    Community Member
    30 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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

  • babbler
    Avatar
    Community Member
    4 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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

  • Dazman1
    Avatar
    Community Member
    30 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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

  • babbler
    Avatar
    Community Member
    4 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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.

    Attached Files
  • Dazman1
    Avatar
    Community Member
    30 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    Hi

    Can you explain to me how you created the homepage.ss?
    and you set it up?

    Darren

  • babbler
    Avatar
    Community Member
    4 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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

  • Dazman1
    Avatar
    Community Member
    30 Posts

    Re: jQuery Slide module show causing errors in admin Link to this post

    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

    1037 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.