Skip to main content

SQL error on vendor page

More
12 years 1 month ago #166151 by Dibben
-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.1
-- Joomla version -- : 2.3.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : firefox
-- Error-message(debug-mod must be tuned on) -- : 1054 Unknown column 'a.user_name' in 'order clause' SQL=SELECT * FROM oamvl_hikamarket_vendor AS a WHERE (a.vendor_id > 1) ORDER BY a.user_name asc LIMIT 20, 20

Hi Jerome,
I managed to break the vendor page by trying to sort the vendors by title when selecting them in the product backend now if i click to the vendors page i just get the message :

1054 Unknown column 'a.user_name' in 'order clause' SQL=SELECT * FROM oamvl_hikamarket_vendor AS a WHERE (a.vendor_id > 1) ORDER BY a.user_name asc LIMIT 20, 20

Any idea why?

Thanks
Alex

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

More
12 years 1 month ago - 12 years 1 month ago #166152 by Jerome
Replied by Jerome on topic SQL error on vendor page
Hi,

First, you can log out and clean your cookies in order to clean your session and remove the sorting key for the vendor listing.
[strike]I really don't know where you clicked in order to have such sorting key, I don't have any "user_name" sorting in HikaMarket backend.[/strike]
My bad, it's a mistake in the vendor selection.

View : backend | vendormarket | selection
Code:
echo JHTML::_('grid.sort', JText::_('HIKA_NAME'), 'a.user_name', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value );
By
Code:
echo JHTML::_('grid.sort', JText::_('HIKA_NAME'), 'a.vendor_name', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value );

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 12 years 1 month ago by Jerome.
The following user(s) said Thank You: Dibben

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

More
12 years 1 month ago #166155 by Dibben
Replied by Dibben on topic SQL error on vendor page
Thanks clearing the cookies also sorted it i shall patch that to prevent future issues
Kind regards

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

Moderators: Obsidev
Time to create page: 0.160 seconds
Powered by Kunena Forum