Lost access to siteaccesses admin and public

Author Message

Virgilio Lemos

Thursday 06 August 2009 11:51:46 pm

When I try to access the site I receive the message below:
You do not have permission to access
I could see in the log file (/var/www/site/var/log/error.log) the following message:
ZMySQLiDB:
Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3. Query: SELECT DISTINCT limit_identifier, limit_value
FROM ezuser_role
WHERE contentobject_id IN ( 0, )
I think the system is triyng to access a contentobject_id 0.
Any idea about what caused and how to solve it?

Ɓukasz Serwatka

Friday 07 August 2009 2:24:44 am

Hi,

This looks like a DB inconsistency. Did you remove any content? This error seems to be a result of few things.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 18 2025 15:04:18
Script start
Timing: Jan 18 2025 15:04:18
Module start 'layout'
Timing: Jan 18 2025 15:04:18
Module start 'content'
Timing: Jan 18 2025 15:04:20
Module end 'content'
Timing: Jan 18 2025 15:04:20
Script end

Main resources:

Total runtime1.1311 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0391152.6406
Module start 'layout' 0.00470.0034 740.679739.4766
Module start 'content' 0.00811.1215 780.1563532.2188
Module end 'content' 1.12960.0015 1,312.37508.2813
Script end 1.1311  1,320.6563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2910160.0002
Check MTime0.00140.1277160.0001
Mysql Total
Database connection0.00060.056310.0006
Mysqli_queries1.086896.0819540.0201
Looping result0.00050.0452520.0000
Template Total1.090296.420.5451
Template load0.00170.153120.0009
Template processing1.088496.225620.5442
Template load and register function0.00010.010710.0001
states
state_id_array0.00150.133010.0015
state_identifier_array0.00140.121220.0007
Override
Cache load0.00140.1267170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.057020.0003
Fetch class attribute name0.00110.099840.0003
XML
Image XML parsing0.00130.112120.0006
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00110.0974240.0000
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs