Edit Button On Pages Loads The Incorrect Menu Id (a Bug In /helpers/route.php) - Question | JoomShaper

Edit Button On Pages Loads The Incorrect Menu Id (a Bug In /helpers/route.php)

PV

Peter Vukovic

SP Page Builder 1 year ago

Hi,

there is a problem in line 109 of the route.php file which results in incorrect menu id being loaded:

$query->where($db->quoteName('link') . ' LIKE ' . $db->quote('%option=com_sppagebuilder&view=page&id=' . (int) $id . '%'));

The problem comes from adding the '%' at the end of the LIKE condition, which returns menu items that being with a certain number, instead of returning items that exactly match that number.

As an example, here is a screenshot of what happens in our case - Instead of loading the menu item with id=17, it actually loads item with id=178:

https://prnt.sc/QLBS7A9O7tmD

I couldn't create an override for this file so please provide a hotfix as soon as possible.

0
7 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 1 year ago #172978

Hi there!

Sorry for your experience.

Would you please give me your admin access to check the issue for you? Kindly, keep a full site backup before sharing the credentials.

Best Regards

0
PV
Peter Vukovic
Accepted Answer
1 year ago #172985

Posted in hidden content.

You can verify the issue by clicking the page builder Edit button on this page:

https://www.winescholarguild.com/certifications/specialty-courses/certified-sherry-wine-specialist

Then click "Preview" from the page builder.

You will be taken to a Contact page, because the menu item id parameter is being incorrectly loaded.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 1 year ago #173086

Hello,

Thank you for bringing this to our attention. Could you please confirm if the issue is specific to this page only –www.winescholarguild.com/certifications/specialty-courses/certified-sherry-wine-specialist – or if it’s occurring on other pages as well?

We appreciate your help in identifying this.

0
PV
Peter Vukovic
Accepted Answer
1 year ago #173154

It happens on other pages too.

If you go to the homepage: https://www.winescholarguild.com/

Then click edit, and click Preview right after, you will end up on a "Certifications" page.

Again, the problem comes from loading the wrong menu item id, please have your developers look at this as they will immediately know what is it about.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 1 year ago #173226

Hello Peter,

Apolozy for the inconvenience. I've informed the development team about the issue, and as soon as I receive an update, I will let you know. Thank you for your patience.

0
PV
Peter Vukovic
Accepted Answer
11 months ago #174459

Hi, do you have an update?

Please note that I had to go in and manually fix the route.php file in your plugin to fix the problem so we can use the Edit button normally.

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 11 months ago #174471

Hello Peter,

I apologize for the inconvenience caused by our product. The issue has been addressed by our development team and will be included in the upcoming update. We appreciate your patience and understanding.

0