Forums / Extensions / ez flow error

ez flow error

Author Message

Neo Pixel

Friday 24 September 2010 10:54:48 am

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 :)

Asking stupid questions so you don't have to!

André R.

Saturday 25 September 2010 1: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.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Neo Pixel

Saturday 25 September 2010 4:50:37 am

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

What else should I rename?

Asking stupid questions so you don't have to!

Carlos Revillo

Saturday 25 September 2010 6:25:17 am

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.

Neo Pixel

Monday 27 September 2010 11:13:56 am

Thanks for the info

How do I do this can you please explain?

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

Asking stupid questions so you don't have to!

Christian Rößler

Monday 27 September 2010 11:47:00 am

"

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

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Neo Pixel

Tuesday 28 September 2010 2:55:13 am

Thanks Christian for your great answer

I'll give that a try later.

Thanks again :)

Asking stupid questions so you don't have to!