Getting error in category view

  • Russell
  • Russell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago #1 by Russell
Getting error in category view was created by Russell
Hi,

I'm trying to add a K2 item within category view to a shortlist and am getting an error on this page:

https://www.greatbritishvoices.co.uk/british-female-voice-overs

The error is:

Notice: Undefined index: module_id in /home/greatb60/public_html/modules/mod_myshortlist/ajax.php on line 31

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
8 years 7 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Getting error in category view
Hi Russell.
After quite some search, I see you are using jQuery 1.8.
Can you switch to a later version, like 1.12.4?

Thank you again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Russell
  • Russell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 7 months ago - 8 years 7 months ago #3 by Russell
Replied by Russell on topic Getting error in category view
I've done that now, but the buttons aren't working correctly.

If you click on "Add to Shortlist" the first button shown is added to the shortlist. If you click delete, it removes the first one only from the shortlist.

You can click on any of the buttons and it only adds the first one
Last edit: 8 years 7 months ago by Russell.

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
8 years 7 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Getting error in category view
I see. You are right.
One quick fix is to disable Ajax in MyShortlist module options. That would fix this.
MyShortlist is originally designed to run only one instance of each module per page.
As you probably know, we have made a customized way of including MyShortlist in that page.
If you want, we can make it work with Ajax, too, but if you want a quick solution, it should work fine without Ajax as it is.

Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

  • Russell
  • Russell's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 6 months ago #5 by Russell
Replied by Russell on topic Getting error in category view
Thanks. Have done that, but it's reloading the page and taking you back to the top (not good if you're halfway down the page).

Is there another option please?

Please Log in or Create an account to join the conversation.

  • Christopher Mavros
  • Christopher Mavros's Avatar
  • Offline
  • Administrator
  • Administrator
More
8 years 6 months ago #6 by Christopher Mavros
Replied by Christopher Mavros on topic Getting error in category view
Hi again Russell.
Yes, I do have an idea. If we set a custom module ID in each of those modules, it should work as it normally would if you had multiple instances of the module in the page. Can you please send me an email at me@mavxr.com to confirm?
Thanks again.

Christopher Mavros
me@mavxr.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros