This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » ez flow error
expandshrink

ez flow error

ez flow error

Friday 24 September 2010 7:54:48 pm - 6 replies

I have ezflow on 4.3 but everytime i try to add things i get this error.

Fatal error: Cannot redeclare class eZFlowPool in public_html/extension/ezflow/classes/ezflowpool.php on line 28
Fatal error: eZ Publish did not finish its request

I have created an extension for my site style so I'm guessing the paths have been affected???

Any clues would be appreciated happy.gif Emoticon

Saturday 25 September 2010 10:51:27 am

You have two classes with same name, did you copy classes from ezflow into your own extension and forgot rename the class? Or is the file corrupted, or, or..? Many possibilities, search for "class eZFlowPool" in all php files to see where else it has been declared.

Saturday 25 September 2010 1:50:37 pm

I copied the whole ezflow extension directory and gave it a different name...:$

What else should I rename?

Saturday 25 September 2010 3:25:17 pm

But you left the other extension in the same place? if so, that's the problem.

first, regenerate your autload with php bin/php/ezpgenerateautoloads.php -e

that should give you some warning about.

move the previous ezflow outside of ez publish folder to fix that, and regenerate autoloads again.

Monday 27 September 2010 8:13:56 pm

Thanks for the info

How do I do this can you please explain?

"first, regenerate your autload with php bin/php/ezpgenerateautoloads.php -e"

Monday 27 September 2010 8:47:00 pm

Thanks for the info

How do I do this can you please explain?

"first, regenerate your autload with php bin/php/ezpgenerateautoloads.php -e"

Hy,

re-generating the autoload is one of the few basic things you should know when using/programming eZPublish.

First you need a commandline (shell) on your Server where your eZPublish is running (or your development server). Then go into (change directory) the folder, where you have eZPublish installed and type as non-root (Administrator) User: "php bin/php/ezpgenerateautoloads.php -e" which will create a "mapping" of php-Class-names and the corresponding location of php-files.

This is very similar when on linux, mac or windows. Sometimes you might require to use the full path to the "php" binary (the program, or exe file). So instead of typing "php bin/php/ezpg..." you might consider using "/usr/bin/php bin/php/ezpg..." or on Windows "C:\Program Files\php5\bin\php.exe bin\php\ezpg..." or wherever you have php installed.

As always: Do not copy'n'paste anything you find on the net into your shell. Make sure you understand what these commands do. If not doing so, yopu might have more problems then you have now.

Cheers,

Chris

Tuesday 28 September 2010 11:55:13 am

Thanks Christian for your great answer

I'll give that a try later.

Thanks again happy.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