?
avatar th3r1dd1ck
th3r1dd1ck
27 Apr 2017

Steps to reproduce the issue

after update from 3.6.5 to 3.7.0, the modules menu shows the following error:
Unknown column 'client_id' in 'where clause

Expected result

no error

debug log

Unknown column 'client_id' in 'where clause'
Call stack

Function Location

1 JError::raise() JROOT\libraries\legacy\error\error.php:299
2 JError::raiseWarning() JROOT\administrator\components\com_menus\helpers\menus.php:269
3 MenusHelper::getMenuLinks() JROOT\libraries\cms\form\field\menuitem.php:174
4 JFormFieldMenuitem->getGroups() JROOT\libraries\joomla\form\fields\groupedlist.php:162
5 JFormFieldGroupedList->getInput() JROOT\libraries\joomla\form\field.php:414
6 JFormField->__get() JROOT\libraries\cms\form\field\menuitem.php:93
7 JFormFieldMenuitem->__get() JROOT\layouts\joomla\searchtools\default\filters.php:27
8 include() JROOT\libraries\cms\layout\file.php:121
9 JLayoutFile->render() JROOT\libraries\cms\layout\file.php:661
10 JLayoutFile->sublayout() JROOT\layouts\joomla\searchtools\default.php:99
11 include() JROOT\libraries\cms\layout\file.php:121
12 JLayoutFile->render() JROOT\libraries\cms\layout\helper.php:72
13 JLayoutHelper::render() JROOT\administrator\components\com_modules\views\modules\tmpl\default.php:37
14 include() JROOT\libraries\legacy\view\legacy.php:694
15 JViewLegacy->loadTemplate() JROOT\libraries\legacy\view\legacy.php:229
16 JViewLegacy->display() JROOT\administrator\components\com_modules\views\modules\view.html.php:73
17 ModulesViewModules->display() JROOT\libraries\legacy\controller\legacy.php:671
18 JControllerLegacy->display() JROOT\administrator\components\com_modules\controller.php:79
19 ModulesController->display() JROOT\libraries\legacy\controller\legacy.php:709
20 JControllerLegacy->execute() JROOT\administrator\components\com_modules\modules.php:23
21 require_once() JROOT\libraries\cms\component\helper.php:394
22 JComponentHelper::executeComponent() JROOT\libraries\cms\component\helper.php:369
23 JComponentHelper::renderComponent() JROOT\libraries\cms\application\administrator.php:98
24 JApplicationAdministrator->dispatch() JROOT\libraries\cms\application\administrator.php:156
25 JApplicationAdministrator->doExecute() JROOT\libraries\cms\application\cms.php:265
26 JApplicationCms->execute() JROOT\administrator\index.php:51

Actual result

System information (as much as possible)

Additional comments

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar th3r1dd1ck th3r1dd1ck - open - 27 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Apr 2017
avatar pmleconte
pmleconte - comment - 27 Apr 2017

You should try to go to Extensions/Manage/Database and click on "Fix" button.

Pascal

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2017
Priority Urgent Medium
Status New Discussion
avatar aneelaranha
aneelaranha - comment - 29 Apr 2017

I have the same problem. After updating to Joomla 3.7.0 I get the error: Unknown column 'client_id' in 'where clause'

Clicking the FIX button on Extension/Manage/Database does not fix the problem. Please help if you can. My menu does not appear.

avatar wojsmol
wojsmol - comment - 29 Apr 2017

@aneelaranha What type of database do you use?

avatar wojsmol
wojsmol - comment - 29 Apr 2017

@th3r1dd1ck #15629 (comment) fixed issue for you?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Apr 2017

@wojsmol looks like comment-link isn't working.

avatar aneelaranha
aneelaranha - comment - 29 Apr 2017

MySQL

avatar aneelaranha
aneelaranha - comment - 29 Apr 2017

If you visit www.hsiweb.org you'll see my menu bar has gone. Thanks for the help.

avatar wojsmol
wojsmol - comment - 29 Apr 2017

@franz-wohlkoenig fixed
@aneelaranha Show only structure of #__menu_type table.
Related #15671

avatar infograf768
infograf768 - comment - 29 Apr 2017

The solution is to use phpMyadmin and run these queries

ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL DEFAULT 0;

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';

Replace #_ by your db prefix

avatar wojsmol
wojsmol - comment - 29 Apr 2017

@infograf768

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';

Is couse of the problem not a solution.
See #15671

avatar infograf768
infograf768 - comment - 29 Apr 2017

Original issue here is for client_id, therefore the first query may solve the issue

avatar wojsmol
wojsmol - comment - 29 Apr 2017

We haqve 2 issue in one, 2 by @aneelaranha

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Apr 2017

@aneelaranha can you please open an own Issue so we not have longer 2 different in one Issue, thanks.

avatar kat05
kat05 - comment - 29 Apr 2017

In our forum (RocketTheme) some members had run into the same issue.
Besides having to click the 'Fix' button for the database in the Joomla admin, they also had a lot of entries showing under > Extensions > Discover. After selecting all of them and installing, the error was fixed. Seems like the Joomla update has just failed in those cases.

avatar aneelaranha
aneelaranha - comment - 29 Apr 2017

@franz-wohlkoenig my apologies. I thought the issue was the same so didn't open a different post.
@kat05 thank you so much! I did what you suggested and THEN ran a FIX database and it worked.

This is my first time ever posting in a forum and I am grateful to all of you for your suggestions. Blessings.

avatar advancn
advancn - comment - 29 Apr 2017

Just Upgraded to Joomla 3.7
After adding a new menu item, then attempting to view it, I received the following error:
Unknown column 'a.client_id' in 'field list' Unknown column 'a.client_id' in 'where clause'

When viewing modules I receive this error:
Unknown column 'client_id' in 'where clause'

Q - How can I fix this?

avatar wojsmol
wojsmol - comment - 30 Apr 2017

@advancn See #15629 (comment)
@infograf768 I'm sorry for #15629 (comment),I was wrong.

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Apr 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-04-30 06:58:13
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 30 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Apr 2017

closed as having PR #15690


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15629.

avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Apr 2017
avatar shajhan
shajhan - comment - 26 Nov 2017

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

After reading so many forums and websites only this one got it fixed for me -

https://ltheme.com/question/error-1054-unknown-column-a-client_id-in-where-clause-in-backend-after-joomla-3-8-update/

This is not problem with page builder, you just go to admin > extension > database, click to button ‘Fix’ and recheck.

Yes, but BACKEND did´nt work anymore.
got some other Forum and tried this Solution.
COPY PATH BELOW AND PASTE ON YOUR WEBSITE
Just make a database Repair: YOURWEBSITE.COM/administrator/index.php?option=com_installer&task=database.fix
Now, Backend works and shows properly with Joomla 3.8.1

||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

avatar syamsualam
syamsualam - comment - 23 Jan 2018

Thax shajhan, my problem resolved, it's fixed

avatar ihale
ihale - comment - 27 Jan 2018

THANK YOU shajhan!!!! you saved my life!!!!!!!!!!!!!

avatar autofab
autofab - comment - 25 Mar 2018

THANK YOU shajhan!! a very quick fix!

avatar 792472461
792472461 - comment - 14 Jun 2018

THANK YOU.I met this problem, too.

avatar WebGuruCanada
WebGuruCanada - comment - 10 Jul 2018

Made My Day

avatar elirehema
elirehema - comment - 22 Oct 2018

This work out good if the back end was also Broken down #15629 (comment)

avatar pcbehara
pcbehara - comment - 15 Nov 2018

The solution is to use phpMyadmin and run these queries

ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL DEFAULT 0;

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';

Replace #_ by your db prefix

You saved me! Thank you so much

avatar retrorich75
retrorich75 - comment - 28 Dec 2018

The solution is to use phpMyadmin and run these queries

ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL DEFAULT 0;

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';

Replace #_ by your db prefix

Had to do this after upgrade to Joomla 3.91 which broke website and admin website, many thanks kudos to you.

avatar AFCURESite
AFCURESite - comment - 17 Apr 2019

image
I don't have any menu options when I try to log in...Unfortunately, I am a pretty novice Joomla user; I inherited this client site from a previous coworker and everything seemed to go smoothly until now. Any other advice to get the site working again?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 18 Apr 2019

@AFCURESite Please ask on Forum as this is for Coding.

avatar derrickjoel
derrickjoel - comment - 23 Aug 2019

The solution is to use phpMyadmin and run these queries

ALTER TABLE `#__menu_types` ADD COLUMN `client_id` int(11) NOT NULL DEFAULT 0;

UPDATE `#__menu` SET `published` = 1 WHERE `menutype` = 'main' OR `menutype` = 'menu';

Replace #_ by your db prefix

This solved the issue. Thanks

avatar Halison
Halison - comment - 7 Oct 2020

image
I don't have any menu options when I try to log in...Unfortunately, I am a pretty novice Joomla user; I inherited this client site from a previous coworker and everything seemed to go smoothly until now. Any other advice to get the site working again?

you can execute it on terminal (SSH) mysql -u root -p
or via phpmyadmin

remember to change #__ to your prefix

avatar pi3yeargrad
pi3yeargrad - comment - 23 Mar 2021

I was using an old 3.3.6

GoDaddy updated the PHP and my site crashed. They got me back up by rolling the PHP back but a lot of stuff didn't work. They said I had to update joomla. I was doing fine slowly updating up till 3.6.5 and then it said update to 3.9. After that update I can't get into the backend. My site works but I cant make any changes. I tried the:

ALTER TABLE #__menu_types ADD COLUMN client_id int(11) NOT NULL DEFAULT 0;

UPDATE #__menu SET published = 1 WHERE menutype = 'main' OR menutype = 'menu';

But it did nothing. I got a green confirmation that it did something but it didn't fix anything.

I tried:

YOURWEBSITE.COM/administrator/index.php?option=com_installer&task=database.fix

But it also did nothing. Can someone help me out to get back into the backend of my site?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15629.

avatar brianteeman
brianteeman - comment - 23 Mar 2021

@pi3yeargrad please use the forum for support https://forum.joomla.org

Add a Comment

Login with GitHub to post a comment