- Posts: 377
- Thank you received: 7
SQL error on vendor page
12 years 1 month ago #166151
by Dibben
SQL error on vendor page was created 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
-- 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.
12 years 1 month ago - 12 years 1 month ago #166152
by Jerome
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.
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
By
Regards,
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 );
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.
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
Kind regards
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.160 seconds