Forums / Extensions / eZ Find / PHP-CLI probleme

PHP-CLI probleme

Author Message

anne martinet

Tuesday 08 July 2008 12:35:01 am

Hello,

I install eZ Find, and I don't change default configuration of ez find.
But when I do this commande:

root@ubuntu:/var/www/ezpublish# 
                              php extension/ezfind/bin/php/updatesearchindexsolr.php -s demonstrateur_ez_admin


Starting object re-indexing
Enter path to PHP-CLI executable ( or [q] to quit ) php

Fatal error: Class 'eZSolr' not found in /var/www/ezpublish/extension/ezfind/bin/php/updatesearchindexsolr.php on line 235

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

And in another topic, you propose to remove, in /etc/php5/cli/php.ini, exec and shell_exec from disable_functions.
But my probleme no changes!

Then when I write in /etc/php5/cli/php.ini:

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions = exec,shell_exec

I have this result:

php extension/ezfind/bin/php/updatesearchindexsolr.php -s demonstrateur_ez_admin
Starting object re-indexing
Enter path to PHP-CLI executable ( or [q] to quit ) php
Enter path to PHP-CLI executable ( or [q] to quit )

I don't know what I do?

:(

Bruce Morrison

Tuesday 08 July 2008 1:10:00 am

Hi Anne

Try

/usr/bin/php

cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

anne martinet

Tuesday 08 July 2008 2:20:27 am

Thanks for this answer,

I try /usr/bin/php when I have "disable_functions = ", the result:


Fatal error: Class 'eZSolr' not found in /var/www/ezpublish/extension/ezfind/bin/php/updatesearchindexsolr.php on line 235

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

And with "disable_functions = exec,shell_exec" :

php extension/ezfind/bin/php/updatesearchindexsolr.php -s demonstrateur_ez_admin
Starting object re-indexing
Enter path to PHP-CLI executable ( or [q] to quit ) /usr/bin/php
Enter path to PHP-CLI executable ( or [q] to quit ) q

To resume I have the same result than with php. :(

Francisca Hernández

Tuesday 08 July 2008 2:29:01 am

hi anne,

i think that your problem is related to autoloads, run this command and try again

bin/php/ezpgenerateautoloads.php --extension

Iguana IT, SL - http://www.iguanait.com

anne martinet

Tuesday 08 July 2008 3:02:41 am

With the command : bin/php/ezpgenerateautoloads.php --extension

I have error:

Warning: require(Base/src/base.php): failed to open stream: No such file or directory in /var/www/ezpublish/bin/php/ezpgenerateautoloads.php on line 35

Fatal error: require(): Failed opening required 'Base/src/base.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ezpublish/bin/php/ezpgenerateautoloads.php on line 35

It's perhaps a probleme with a bad installation with ezComponents?
I try these commandes:

pear channel-discover components.ez.no
    Channel "components.ez.no" is already initialized


pear install -a ezc/eZComponents
    ezc/eZComponents requires PHP (version >= 5.2.1), installed version is 5.1.2
    ezc/Archive requires PHP (version >= 5.2.1), installed version is 5.1.2
    ezc/Authentication requires PHP (version >= 5.2.1), installed version is 5.1.2
    ezc/AuthenticationDatabaseTiein requires package "ezc/Authentication" (version >= 1.1)
    ezc/Base requires PHP (version >= 5.2.1), installed version is 5.1.2
    ezc/Cache requires PHP (version >= 5.2.1), installed version is 5.1.2
    ezc/Cache requires package "ezc/Base" (version >= 1.5)
    ....
   ezc/WorkflowEventLogTiein requires package "ezc/Workflow" (version >= 1.0)
   No valid packages found
   install failed

 

I right, or it's two problemes separated?

anne martinet

Thursday 10 July 2008 1:15:45 am

How I can passed to PHP5.1 at PHP5.2?
The apt-get update, doesn't find the new version of PHP5....

thanks

anne martinet

Friday 11 July 2008 5:20:55 am

Finally, I install eZ COmponents 2007.2.1 , it require PHP>= 5.1.1
And when I do

bin/php/ezpgenerateautoloads.php --extension

I haven't error, now! :)

Then I try :

php extension/ezfind/bin/php/updatesearchindexsolr.php -s demonstrateur_ez_admin
Starting object re-indexing
Enter path to PHP-CLI executable ( or [q] to quit ) php

And my path is accepted :) :)

But after, I have :(

Using fork.
Using 2 concurent process(es)
Number of objects to index: 115

Creating a new thread: 13635
...................................................................... 60.87%
.............................................                          100.00%

Creating a new thread: 13638

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

Did not index content correctly:
array (
  0 => '',
)
Allowed memory size of 8388608 bytes exhausted (tried to allocate 142 bytes)

Did not index content correctly:
array (
  0 => '',
  1 => 'Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 140 bytes) in /var/www/ezpublish/kernel/classes/datatypes/ezstring/ezstringtype.php on line 420',
  2 => '',
)

Creating a new thread: 13641
Process finished: 13635

Fatal error: eZ Publish did not finish its request
The execution of eZ Publish was abruptly ended, the debug output is present below.

Did not index content correctly:
array (
  0 => '',
)
Process finished: 13641
Optimizing. Please wait ...
Indexing took 2.49729394913 secs ( average: 46.0498452896 objects/sec )
Finished updating the search index.

And I tested in my site, the search, and it find nothing!!!!!!! :(

How I do result this..........?

Thanks for everybody!

anne martinet

Tuesday 15 July 2008 7:21:14 am

I write in /etc/php5/cli/php.ini

memory_limit = 140M ;

I don't know if it's the best way, but that's run!

Thank you every body!

Probleme resolu

dani rachid

Wednesday 25 March 2009 2:20:10 am

the solution is very easy :
for me i'work with wamp server :

whene you have this message :

php extension/ezfind/bin/php/updatesearchindexsolr.php -s demonstrateur_ez_admin
Starting object re-indexing
Enter path to PHP-CLI executable ( or [q] to quit ) php

!!! you msut to do this
C:\wamp\bin\php\php5.2.5\php.exe OK its work easly

good luck make sûr that ezc is installed correctly ok