XML blocks content is gone after site migration [solved]

Author Message

Lex 007

Wednesday 15 March 2006 12:51:47 pm

Hi,

I just changed of hosting, and to my surprise, all XML blocks content is not displayed for old objets, although it is in the database. New objects are published without any problem !

I don't have CLI available so I tried to run updatexmltext.php without it ... it runs up to 40% and then crashes with :
Fatal error: Call to a member function on a non-object in updatexmltext.php on line

on :

for ( $j = 0; $j < count( $linkAttributes ); ++$j )
            {
                $linkAttribute =& $linkAttributes[$j];
                if ( $linkAttribute->name() == 'href' )
                    $hrefAttribute =& $linkAttributes[$j];
                else if ( $linkAttribute->name() == 'id' )
                    $idAttribute =& $linkAttributes[$j];
                else if ( $linkAttribute->name() == 'target' )
                    $targetAttribute =& $linkAttributes[$j];
            }

For the 40% that are processed, unfortunatly, all special french characters such as é or è are lost ! And the content is still not editable in the admin interface. please help.

See my site here : http://www.abric.org/

Lex

Kristof Coomans

Wednesday 15 March 2006 11:00:14 pm

Did you get anything in place for the special french characters such as é or è? Maybe it's a problem with the charset.

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

Lex 007

Thursday 16 March 2006 12:26:39 am

Unfortunatly not, the special french characters are just gone !
But the biggest problem is probably the admin interface : I cannot edit the content of objects containint a XML Block : the edit page contains no field at all !

Kristof Coomans

Thursday 16 March 2006 2:19:50 am

From and to which version of eZ publish are you upgrading? Any upgrades on the database-side to?

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

Lex 007

Thursday 16 March 2006 4:47:31 am

Hi,

I solved my problem, by re-importing the data with the proper French settings in site.ini

ContentObjectLocale=fre-FR

Thanks Kristof

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 30 2025 22:24:36
Script start
Timing: Jan 30 2025 22:24:36
Module start 'layout'
Timing: Jan 30 2025 22:24:36
Module start 'content'
Timing: Jan 30 2025 22:24:36
Module end 'content'
Timing: Jan 30 2025 22:24:36
Script end

Main resources:

Total runtime0.0252 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.3828151.2422
Module start 'layout' 0.00470.0038 739.6250220.7656
Module start 'content' 0.00850.0151 960.39061,002.0234
Module end 'content' 0.02360.0015 1,962.414137.9922
Script end 0.0251  2,000.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.4333140.0002
Check MTime0.00114.3122140.0001
Mysql Total
Database connection0.00072.933610.0007
Mysqli_queries0.00228.703130.0007
Looping result0.00000.048310.0000
Template Total0.00104.110.0010
Template load0.00083.136310.0008
Template processing0.00020.974110.0002
Override
Cache load0.00052.153710.0005
General
dbfile0.00239.269780.0003
String conversion0.00000.028440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs