Forums / General / Cannot redeclare problem

Cannot redeclare problem

Author Message

Roman Pszonczenko

Tuesday 02 December 2003 1:00:42 am

Hi everyone. I have the following problem in my eZPublish installation:

Fatal error: Cannot redeclare class eztemplatefileresource:eztemplatedesignresource in /home/ezpublish/kernel/common/eztemplatedesignresource.php on line 42
Fatal error: eZ publish did not finish it's request

It happened after upgrading from eZPublish 3.2 to eZPublish 3.3.
I have no idea what is going on, because eztemplatedesignresource is included only once. How this class could be redeclared?

Jan Borsodi

Wednesday 03 December 2003 4:38:23 am

It is most likely a problem with a PHP accelerator (if you are using one?). When PHP files are upgraded most accelerators has problems with this.

You should stop the webserver and cleanup all cache files from the accelerator, the files are normally found in /tmp. You should check the documentation for the accelerator for where the files are present.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Roman Pszonczenko

Tuesday 16 December 2003 7:02:10 am

I'm actually using phpaccelerator-1.3.3r2.
You were totally right!!! If I clean cache befroe every start of apache daemon it works perfectly. Thnx.