Please help with MySql error

Author Message

aarif ahmed

Wednesday 07 July 2004 11:07:50 pm

Can anyone tell me what this error means

Query error: Unknown column 'user_id' in 'field list'. Query: SELECT data, user_id FROM ezsession WHERE session_key='c91990c299c71a92c46937511a555207'

Query error: Unknown column 'ezuser_role.limit_identifier' in 'field list'. Query: SELECT DISTINCT ezrole.id,
ezrole.name,
ezuser_role.limit_identifier,
ezuser_role.limit_value
FROM ezrole,
ezuser_role
WHERE ezuser_role.contentobject_id IN ( 42,4,10 ) AND
ezuser_role.role_id = ezrole.id

Michael Zielinski

Wednesday 07 July 2004 11:29:43 pm

Well, if you would like to know what the errors themselves mean, here we go:

In Query1 you try to retrieve information from adatabase table called ezsession and you limit your search to a specific session_key. However the table does not contain one of the fields mentioned in your query, user_id, and therfore the query fails and you get that error.
The same with the second query just a different field_name and table.

Michael

Kåre Køhler Høvik

Thursday 08 July 2004 1:17:16 am

Looks like you've upgraded from 3.3 to 3.4 withoutrunning the DB updates.

Kåre Høvik

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:44:04
Script start
Timing: Jan 19 2025 04:44:04
Module start 'layout'
Timing: Jan 19 2025 04:44:04
Module start 'content'
Timing: Jan 19 2025 04:44:05
Module end 'content'
Timing: Jan 19 2025 04:44:05
Script end

Main resources:

Total runtime1.1575 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2734152.6406
Module start 'layout' 0.00590.0028 741.914139.4766
Module start 'content' 0.00871.1473 781.3906564.1250
Module end 'content' 1.15600.0014 1,345.51568.1484
Script end 1.1574  1,353.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2716160.0002
Check MTime0.00130.1092160.0001
Mysql Total
Database connection0.00070.062610.0007
Mysqli_queries1.115596.3711590.0189
Looping result0.00060.0504570.0000
Template Total1.125997.320.5630
Template load0.00170.145520.0008
Template processing1.124297.129520.5621
Template load and register function0.00010.012410.0001
states
state_id_array0.00120.107310.0012
state_identifier_array0.00110.093820.0005
Override
Cache load0.00140.1204210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.048830.0002
Fetch class attribute name0.00080.069840.0002
XML
Image XML parsing0.00050.046330.0002
class_abstraction
Instantiating content class attribute0.00000.002240.0000
General
dbfile0.00080.0665150.0001
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs