Forums / General / EZ database help urgently needed

EZ database help urgently needed

Author Message

John Mina

Sunday 06 August 2006 4:50:48 am

hello,
Since a week ago , the database just had a problem and since that day we as admins are not abel to log in as admins for adding articles.

The site is using version 3.4.1 ,

I tried to install a backup of and old db backup for the users tables and rights of the site in order to allow me to log in
but it is still the same
when i login it return m back to the login bage, and i am not able to reach the setup part or any section even if iwrite the path .

And when i use a wrong username and/or password the system says i used a wrong one and ask me for a correct one.
but when i use the correct one it just do nothing .

Can some one help me please please please
that is very Urgent
thanks
John Mina

Paul Borgermans

Sunday 06 August 2006 1:38:07 pm

Hi John

I think you are bitten by the reference bug of PHP4.3. But the 3.4 branch is really old now (even unsupported), is there no option to upgrade to 3.7 (3.8 is also good, but requires more upgrade steps)?

Can you tell us a bit more on what may have changed before/after you experienced this? There may be some other bugs that hit you and maybe we can help with more info

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

John Mina

Tuesday 08 August 2006 12:00:54 am

hi Paul,
I appreciate it a lot your reply.
The Version 3.4.1 could be upgraded but my php version on the server is 4.3.6 so i think i can't update the system to 3.7 which requires PHP 4.4.x

Please let me know
Awaiting your reply
thanks
John

NOTE: i didn't do any updates before i have this thing. the main problem is that i was on vacation, and the site was ok , i came back i found it down and since then it is down :(

Kristof Coomans

Tuesday 08 August 2006 12:08:07 am

I think restoring a database backup is the best option.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

John Mina

Tuesday 08 August 2006 12:21:21 am

the latest i have is about 2 months ago
editors will kill me if i said that :)
no other options u may think of ?

John Mina

Tuesday 08 August 2006 3:32:48 am

Hello Kristo, hello paul.
I made a full database update and site update but i faced the same problem
Also i faced the problem that i am not able to run some commands for updating , i get warning nd error messges when i run the ./update/common/scripts/updateiscontainer.php

What do you think ?

Marcin Drozd

Tuesday 08 August 2006 4:15:57 am

Hi
I had a similar problem with login one year ago.
My database table (ezsession) was disrepair.
I deleted one and created a new one, and it worked.
Backup, update - nothing helped.

http://ez-publish.pl

John Mina

Tuesday 08 August 2006 4:22:44 am

how to recreate a new one
do you have the SQL statements ?

John Mina

Tuesday 08 August 2006 4:46:23 am

Marcin,
You are great , thanks a lot and i don't know hwo to thank you actually.
The problem has been totally solved now
the sql statements for that table are :

CREATE TABLE ezsession (
session_key varchar(32) NOT NULL default '',
expiration_time int(11) unsigned NOT NULL default '0',
data longtext NOT NULL,
user_id int(11) NOT NULL default '0',
PRIMARY KEY (session_key),
KEY expiration_time (expiration_time),
KEY ezsession_user_id (user_id)
) TYPE=MyISAM;

ope that may help other users to solve thier problems

Marcin Drozd

Tuesday 08 August 2006 4:47:12 am

I use phpmyadmin for mysql operation on databases.
Phpmyadmin will tell you if the table is disrepair.
I dont know what does ezsession looks like in eZp version 3.4.1
but this is code for eZp 3.8.3:

CREATE TABLE `ezsession` (
`data` longtext NOT NULL ,
`expiration_time` int( 11 ) NOT NULL default '0',
`session_key` varchar( 32 ) NOT NULL default '',
`user_id` int( 11 ) NOT NULL default '0',
PRIMARY KEY ( `session_key` ) ,
KEY `expiration_time` ( `expiration_time` ) ,
KEY `ezsession_user_id` ( `user_id` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

http://ez-publish.pl

Marcin Drozd

Tuesday 08 August 2006 4:49:29 am

:)
1 minute too late :)

Great
You are welcome :)

http://ez-publish.pl

eZ debug

Timing: Jan 18 2025 15:17:48
Script start
Timing: Jan 18 2025 15:17:48
Module start 'content'
Timing: Jan 18 2025 15:17:49
Module end 'content'
Timing: Jan 18 2025 15:17:49
Script end

Main resources:

Total runtime1.2673 sec
Peak memory usage4,096.0000 KB
Database Queries222

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 594.5000180.8359
Module start 'content' 0.00681.0884 775.3359717.3359
Module end 'content' 1.09520.1720 1,492.6719344.4375
Script end 1.2672  1,837.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3505210.0002
Check MTime0.00180.1422210.0001
Mysql Total
Database connection0.00100.080810.0010
Mysqli_queries1.175292.73312220.0053
Looping result0.00220.17672200.0000
Template Total1.238897.820.6194
Template load0.00260.206720.0013
Template processing1.236297.547420.6181
Template load and register function0.00010.007710.0001
states
state_id_array0.00100.078810.0010
state_identifier_array0.00260.206620.0013
Override
Cache load0.00240.1887790.0000
Sytem overhead
Fetch class attribute can translate value0.00080.066950.0002
Fetch class attribute name0.00110.0850130.0001
XML
Image XML parsing0.00140.110450.0003
class_abstraction
Instantiating content class attribute0.00000.0017130.0000
General
dbfile0.00200.1571340.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
11content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 48
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs