Forums / Install & configuration / 4.0.1 to 4.1.0 update error

4.0.1 to 4.1.0 update error

Author Message

Michaƫl Todorovic

Tuesday 24 March 2009 1:53:52 am

Hello,
I have a 4.0.1 setup and I would like to update to 4.1.0. I ran sql update script update/database/mysql/4.1/dbupdate-4.0.0-to-4.1.0.sql (I deleted lines "from 4.0.1" and "from 3.10.1" because they crashed the script). I copied all files from ezpublish-4.1.0-gpl.tar.gz except settings/. I have ezComponents 2008.2.1 configured for apache and cli.

Now I have to run system upgrade scripts. From ezpublish root (/var/www/extranet), I run

php update/common/scripts/4.1/addlockstategroup.php -d

and I get this message :

Fatal error: Call to a member function attribute() on a non-object in /var/www/extranet/update/common/scripts/4.1/addlockstategroup.php on line 58

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
Error: (eZDB::instance)
Database implementation not supported: ezmysqli

Warning: (PHP)
Invalid argument supplied for foreach() in /var/www/extranet/kernel/classes/ezcontentlanguage.php on line 202

Warning: (eZContentLanguage::prioritizedLanguages)
Language 'eng-GB' does not exist or is not used!

Warning: (PHP)
Invalid argument supplied for foreach() in /var/www/extranet/kernel/private/classes/ezcontentobjectstategroup.php on line 122

No timing points defined
Peak memory usage: 3,057.2344 KB
Group ini_load:
Load cache: 0.0067 sec (13.7235%), 0.0022 avg sec (3)
FindInputFiles: 0.0031 sec (6.3607%), 0.0010 avg sec (3)

Total script time: 0.0488 sec

Other scripts don't work too. I tried the update on a fresh install of 4.0.1 and I get the same error so I guess I'm doing something wrong. What I'm supposed to do ?

Thank you.

edit: I forgot this : i'm running php 5.2.6-1+lenny2 (with apache 2.2.9 and mysql 5.0.51a) under debian lenny.

Marti Pinto

Tuesday 29 June 2010 12:46:45 am

Hello,

I have similar problems with the update.

My errors are:

php update/common/scripts/4.1/addlockstategroup.php -d
Fatal error: Call to a member function attribute() on a non-object in /opt/apache/htdocs/icc2/update/common/scripts/4.1/addlockstategroup.php on line 58
Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.
Warning: ()
Extension 'bpce_access' does not exist, looked for directory 'extension/bpce_access'
Error: (eZDB::instance)
Database implementation not supported: ezoracle
Warning: (PHP)
Invalid argument supplied for foreach() in /opt/apache/htdocs/icc2/kernel/classes/ezcontentlanguage.php on line 202
Warning: (eZContentLanguage::prioritizedLanguages)
Language 'cat-ES' does not exist or is not used!
Warning: (PHP)
Invalid argument supplied for foreach() in /opt/apache/htdocs/icc2/kernel/private/classes/ezcontentobjectstategroup.php on line 122
No timing points defined
Peak memory usage: 2,694.9609 KB
Group ini_load:
Load cache: 0.0039 sec (7.8770%), 0.0019 avg sec (2)
FindInputFiles: 0.0013 sec (2.7001%), 0.0007 avg sec (2)
Total script time: 0.0490 sec

Can you resolve this problems? Can you find the solution?

Thanks in advance!

Denitsa M.

Tuesday 29 June 2010 5:14:17 am

I had the same problem in update to 4.3. This turned out to be actually an error during database connection, because I had forgotten to give permissions for mysql user to access project's database. I would suggest that you first see if your database settings are correct and check if the user you specified there exists and if yes - does this user have permissions on your project's database. Hope this helps.

Deni.

Iguana IT - http://www.iguanait.com

eZ debug

Timing: Jan 18 2025 04:13:12
Script start
Timing: Jan 18 2025 04:13:12
Module start 'content'
Timing: Jan 18 2025 04:13:13
Module end 'content'
Timing: Jan 18 2025 04:13:13
Script end

Main resources:

Total runtime0.8978 sec
Peak memory usage4,096.0000 KB
Database Queries196

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2578180.8281
Module start 'content' 0.00660.7765 770.0859546.9531
Module end 'content' 0.78310.1146 1,317.0391337.4844
Script end 0.8977  1,654.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.5511210.0002
Check MTime0.00150.1702210.0001
Mysql Total
Database connection0.00110.120110.0011
Mysqli_queries0.827892.20301960.0042
Looping result0.00170.19201940.0000
Template Total0.864396.320.4322
Template load0.00280.315220.0014
Template processing0.861595.958920.4307
Template load and register function0.00050.050910.0005
states
state_id_array0.00280.310810.0028
state_identifier_array0.00140.157420.0007
Override
Cache load0.00250.2788410.0001
Sytem overhead
Fetch class attribute can translate value0.00110.120840.0003
Fetch class attribute name0.00140.158130.0005
XML
Image XML parsing0.00070.076440.0002
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00220.2487210.0001
String conversion0.00000.000930.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs