Forums / Install & configuration / Import gives errors. Need help.

Import gives errors. Need help.

Author Message

Marco Zinn

Friday 12 September 2003 1:48:08 pm

Hello everyone, especially Wenyue ;)

I'm trying again the import scripts to import data from 2.2 to 3.1 (or later 3.2).
I tried "importuser.php" first, but the problem is the same.
I did a cleandatabase with kernel_clean.sql. All necessary object classes and class attributes are in the (clean) database.

Debugging show me one warning and then fails with an error:
Warning: Invalid argument supplied for foreach() in [docroot]/kernel/classes/ezpersistentobject.php on line 552.
(caused by $contentObject =& $class->instantiate( $userID, 1 ); )

The fatal error is this:
Fatal error: Call to a member function on a non-object in [docroot]/importuser.php on line 125.
This is caused by $contentObjectAttributes[0]->setAttribute( 'data_text', $name );

Looks a lot, like the preceeding line ($contentObjectAttributes =& $version->contentObjectAttributes(); ) does not return the expected array of object attributes.

Why?
How can I debug this?
(The data from the ez2-tables in the DB are looking fine.)

What DB entries are needed for the import scripts to work?

I really need some help here, because I think, it's a silly small bug, but I cannot figure it out.

Marco
http://www.hyperroad-design.com

Marco Zinn

Wednesday 17 September 2003 9:49:10 am

Hi folks,

well I found out and solved one issue with the import scripts.
On an other system (Solaris), the import scripts did not work either (ezP 3.2 beta 2), but gave an error about not knowing the function ezi18n.

I could solve this and get the scripts running by inserting one line (in every script).
Insert this line:
include_once( "kernel/common/i18n.php" );
after the other include_once lines.

Unfortunatly, the above mentioned errors still are there on a Suse Linux setup (ezP 3.2 beta 2)

Marco
http://www.hyperroad-design.com

Marco Zinn

Sunday 28 September 2003 9:00:16 am

I solved the other import error now:
When you get an error complaining about something like "not beeing able to call a method of a non-existing object", you might have a setup, where the content is non-english.
As the import-scripts to not evaluate the override files, it read the content locale from the original site.ini, where it is "eng-DB". When your Database is mono-linugal (ie. German-only), the import fails.
Just edit the original settings/site.ini and change "ContentObjectLocale" to your locale (ie ger-DE).
Do NOT change the "Locale", but the "ContentObjectLocale"!

Marco
http://www.hyperroad-design.com

Kenneth Colwell

Friday 06 February 2004 2:10:48 pm

hi,

I'm attempting to import from 2.2.9 to 3.3-3.

When I run php -C importimage.php I get the following error message:

PHP Fatal error: Undefined class name 'ezimage' in /var/www/pub3/importimage.php on line 217
<br />
<b>Fatal error</b>: Undefined class name 'ezimage' in <b>/var/www/pub3/importimage.php</b> on line <b>217</b><br />

Does anyone have any suggestions?

Marco Zinn

Saturday 07 February 2004 2:37:37 am

Hi,
in 3.3, ezPublish uses a new image system. The import scripts were not written for this new image system, and i think, this results in the errors, that you mention.
ez 3.2 uses the old image system (just as 3.0 and 3.1)
So, i suggest, that you installed 3.2-4 (the latest 3.2 release) and import your data from 2.2.9 to 3.2-4.
This should work. Check, if your images are okay in 3.2
Then, make a backup of everything ;) and update from 3.2-4 to 3.3-3
Hope, this helps.

Marco
http://www.hyperroad-design.com

eZ debug

Timing: Jan 18 2025 15:53:01
Script start
Timing: Jan 18 2025 15:53:01
Module start 'content'
Timing: Jan 18 2025 15:53:02
Module end 'content'
Timing: Jan 18 2025 15:53:02
Script end

Main resources:

Total runtime0.8870 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.9453180.8281
Module start 'content' 0.00640.7122 769.7734573.7031
Module end 'content' 0.71860.1683 1,343.4766337.3828
Script end 0.8869  1,680.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4672210.0002
Check MTime0.00160.1845210.0001
Mysql Total
Database connection0.00080.091810.0008
Mysqli_queries0.768886.67642000.0038
Looping result0.00230.26301980.0000
Template Total0.842194.920.4210
Template load0.00210.231620.0010
Template processing0.840094.703520.4200
Template load and register function0.00010.010210.0001
states
state_id_array0.00150.173710.0015
state_identifier_array0.00090.103720.0005
Override
Cache load0.00170.1962540.0000
Sytem overhead
Fetch class attribute can translate value0.00100.117130.0003
Fetch class attribute name0.00120.131360.0002
XML
Image XML parsing0.00100.107330.0003
class_abstraction
Instantiating content class attribute0.00000.002290.0000
General
dbfile0.03533.9762270.0013
String conversion0.00000.000730.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs