Forums / Extensions / ImportXMLData not work with eAccelerator . Help please

ImportXMLData not work with eAccelerator . Help please

Author Message

Maxim Kopytov

Sunday 11 April 2010 1:19:12 am

Hallo!
My dev.configuration:

  • Windows XP SP3
  • Apache 2.2.13
  • PHP 5.2.9
  • eAccelerator 0.9.5.3
  • eZ Publish 4.3.0
  • ImportXMLData 1.4.2

And ImportXMLData not work with eAccelerator :(
I see this error:

Fatal error: Class 'eZDebug' not found in 
C:\Poligon\site\www\extension\importXMLData\modules\importXMLData\importXMLDatafunctioncollection.php on line 157

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended,
debug information can be found in the log files normally placed in var/log/*

This is 157 line:

157. $user =& new eZUser( $objectId );
default :
                        eZDebug::writeDebug( 'data_type_string: ' . $data_type_string . ' not supported', 'importXMLData' );
                    }    
                    $attribute->store();
                }
            }
            //If we have account data we have to create a ezUser persistent object and set account values to this object
            if ($isAcountObject) {
                //create new user
                $objectId = $contentObject->attribute( 'id' );
                if ($userID>0) { 
                    $user =& new eZUser( $objectId );

                    $user->setAttribute('login', $parsedItems[$i]['account-login'] );
                    $user->setAttribute('email', $parsedItems[$i]['account-email'] );

                    $hashType = eZUser::hashType() . "";
                    $newHash = $user->createHash( $parsedItems[$i]['account-login'], $parsedItems[$i]['account-password'], eZUser::site(), $hashType );

                    $user->setAttribute( "password_hash_type", $hashType );
                    $user->setAttribute( "password_hash", $newHash );

                    $user->store();
                } else {
                    eZDebug::writeError("error \$objectId invalid (value: $objectId)","ImportXMLDatafunctioncollection");
                }
            }
            //publish the newly created node

If I disable eAccelerator then ImportXMLData work properly!

extension="eaccelerator.dll"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="c:/php/tmp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="1800"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

How can I fix this problem?

This question on russian forum:
http://ezpublish.ru/ru/Forumy/Dlya-novichkov/import_eksport_excel_xls_cvs_xml_openoffice_v_ez_publish

______________
I love eZ Publish

Nicolas Pastorino

Monday 12 April 2010 2:35:46 am

Hi Maxim,

It sounds like a side-effect of eaccelerator, affecting the autoload mechanism.
Out of curiosity, have you tried APC ?

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jérôme Vieilledent

Saturday 17 April 2010 2:48:48 am

Hi Maxim

ImportXMLData extension is noted as compatible with eZ Publish <= 3.7. I doubt it will work properly with 4.x.

You might give a try to Data Import ;)

eZ debug

Timing: Jan 18 2025 00:01:20
Script start
Timing: Jan 18 2025 00:01:20
Module start 'content'
Timing: Jan 18 2025 00:01:20
Module end 'content'
Timing: Jan 18 2025 00:01:20
Script end

Main resources:

Total runtime0.6028 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0086 587.9531180.8125
Module start 'content' 0.00860.4626 768.7656622.4063
Module end 'content' 0.47120.1315 1,391.1719336.7422
Script end 0.6027  1,727.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.7786210.0002
Check MTime0.00160.2609210.0001
Mysql Total
Database connection0.00100.158510.0010
Mysqli_queries0.524587.01631970.0027
Looping result0.00220.36721950.0000
Template Total0.572194.920.2861
Template load0.00210.355020.0011
Template processing0.570094.563720.2850
Template load and register function0.00010.014610.0001
states
state_id_array0.00050.088910.0005
state_identifier_array0.00080.129720.0004
Override
Cache load0.00180.3001420.0000
Sytem overhead
Fetch class attribute can translate value0.00150.241440.0004
Fetch class attribute name0.00130.215060.0002
XML
Image XML parsing0.00180.300340.0005
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00190.3106400.0000
String conversion0.00000.001330.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
5content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 11

Time used to render debug report: 0.0001 secs