eZ Community » Forums » Extensions » ImportXMLData not work with...
expandshrink

ImportXMLData not work with eAccelerator . Help please

ImportXMLData not work with eAccelerator . Help please

Sunday 11 April 2010 10:19:12 am - 2 replies

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 sad.gif Emoticon
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/Dly..._xls_cvs_xml_openoffice_v_ez_publish

Modified on Sunday 11 April 2010 10:26:43 am by Maxim Kopytov

Monday 12 April 2010 11: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 !

Saturday 17 April 2010 11: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 blunk.gif Emoticon

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from