VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: welrachid on September 03, 2016, 08:38:15 AM

Title: Cannot show menu element link that links to category layout.
Post by: welrachid on September 03, 2016, 08:38:15 AM
Hi everyone. Im getting an error when trying to visit a certain category layout page. This is also a menuitem, so not sure how to check why this error happens.
Can someone please explain how to get around it or at least how i can figure out WHY it happens. It says something about searchable column... not sure what that is, and why this particular category layout does not have it when all the others have it
Fejl: 42S22
Grunden til at du ikke kan besøge denne side kan være en af følgende:

et udløbet bogmærke/favorit
en søgemaskine der har en forældet udgave af dette websted
en fejlindtastet adresse
du har ingen adgang til denne side
Den efterspurgte ressource blev ikke fundet
Desværre er der opstået en fejl under udførslen af din efterspørgsel!
Prøv venligst en af følgende sider:

Hjemmeside
Søg på dette websted
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'searchable' in 'where clause'

Hvis problemerne fortsætter, kontakt venligst systemadministratoren for dette websted, og rapporter fejlen(e) nedenfor:

Call stack
#   Function   Location
1   JApplicationCms->execute()   PUBLIC_HTML_DIRECTORY/htdocs/index.php:49
2   JApplicationSite->doExecute()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/cms/application/cms.php:257
3   JApplicationSite->dispatch()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/cms/application/site.php:230
4   JComponentHelper::renderComponent()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/cms/application/site.php:191
5   JComponentHelper::executeComponent()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/cms/component/helper.php:380
6   require_once()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/cms/component/helper.php:405
7   JControllerLegacy->execute()   PUBLIC_HTML_DIRECTORY/htdocs/components/com_virtuemart/virtuemart.php:125
8   VirtueMartControllerCategory->display()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/legacy/controller/legacy.php:702
9   VirtuemartViewCategory->display()   PUBLIC_HTML_DIRECTORY/htdocs/components/com_virtuemart/controllers/category.php:54
10   VirtuemartViewCategory->getSearchCustom()   PUBLIC_HTML_DIRECTORY/htdocs/components/com_virtuemart/views/category/view.html.php:124
11   JDatabaseDriver->loadObjectList()   PUBLIC_HTML_DIRECTORY/htdocs/components/com_virtuemart/views/category/view.html.php:433
12   JDatabaseDriverPdo->execute()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/joomla/database/driver.php:1689
13   PDOStatement->execute()   PUBLIC_HTML_DIRECTORY/htdocs/libraries/joomla/database/driver/pdo.php:426


Thanks
Wel Rachid

EDIT:
i forgot the most important part: VERSIONS!
Joomla 3.6.2
VirtueMart 3.0.17.6

Title: Re: Cannot show menu element link that links to category layout.
Post by: welrachid on September 10, 2016, 17:10:44 PM
Either nobody has same problem or im on my own?
I guess next step is looking into core files then..
Title: Re: Cannot show menu element link that links to category layout.
Post by: GJC Web Design on September 10, 2016, 19:04:30 PM
QuoteUnknown column 'searchable' in 'where clause'

you need to post the query as well
Title: Re: Cannot show menu element link that links to category layout.
Post by: welrachid on September 11, 2016, 14:29:07 PM
The Query?

Like this: /index.php/varme-drikke
??
or what exactly are we looking for?
Title: Re: Cannot show menu element link that links to category layout.
Post by: GJC Web Design on September 11, 2016, 16:10:06 PM
no -- the sql query

other wise do we know what table it expects a Unknown column 'searchable'

Title: Re: Cannot show menu element link that links to category layout.
Post by: welrachid on September 11, 2016, 18:49:43 PM
The error page doesnt give me anything On the actual SQL. Ill try see if i can do some debugging and find the sql
Title: Re: Cannot show menu element link that links to category layout.
Post by: GJC Web Design on September 11, 2016, 19:20:47 PM
I don't find the word 'searchable' in the whole VM install... must be 3rd party?
Title: Re: Cannot show menu element link that links to category layout.
Post by: Milbo on September 12, 2016, 15:23:07 PM
Searcheable is introduced in vm3.0.17.6. I think he just needs to execute the table updater again.
Title: Re: Cannot show menu element link that links to category layout.
Post by: GJC Web Design on September 12, 2016, 16:10:38 PM
AH!
Title: Re: Cannot show menu element link that links to category layout.
Post by: welrachid on September 13, 2016, 15:09:40 PM
Ok Thanks.
i've tried to install the version you sent me trough skype, but unfortunately its not installing.

If you like i can send you login details to the website?
Title: Re: Cannot show menu element link that links to category layout.
Post by: welrachid on September 13, 2016, 15:28:55 PM
Problem solved.
Was related to the PDO driver running on the site and VM not supporting it.
Next time i'll do include the joomla db driver in the debugging info.

I do however not understand why VM cannot get the DB details from joomla config file, and use that to make its own mysqli link, IF for some case the rest of the system is using PDO.


Appreciate your help, both of you.
Thanks max for the skype talk.
Title: Re: Cannot show menu element link that links to category layout.
Post by: Milbo on September 24, 2016, 14:57:20 PM
Exactly this will be solved, when VM goes WP.