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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 22:26:13
Script start
Timing: Jan 30 2025 22:26:13
Module start 'layout'
Timing: Jan 30 2025 22:26:13
Module start 'content'
Timing: Jan 30 2025 22:26:14
Module end 'content'
Timing: Jan 30 2025 22:26:14
Script end

Main resources:

Total runtime0.7313 sec
Peak memory usage8,192.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1563151.2109
Module start 'layout' 0.00490.0046 739.3672220.6875
Module start 'content' 0.00960.7208 960.05474,612.3438
Module end 'content' 0.73040.0009 5,572.398419.8516
Script end 0.7313  5,592.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4732160.0002
Check MTime0.00120.1642160.0001
Mysql Total
Database connection0.00080.107510.0008
Mysqli_queries0.622285.0758810.0077
Looping result0.00080.1064790.0000
Template Total0.680093.020.3400
Template load0.00220.298120.0011
Template processing0.677892.681420.3389
Template load and register function0.00130.179310.0013
states
state_id_array0.00110.147810.0011
state_identifier_array0.00120.166020.0006
Override
Cache load0.00190.2610760.0000
Sytem overhead
Fetch class attribute can translate value0.00150.209440.0004
Fetch class attribute name0.00190.2634110.0002
XML
Image XML parsing0.00220.301740.0006
class_abstraction
Instantiating content class attribute0.00000.0023110.0000
General
dbfile0.00360.4949220.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
24content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
12content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 58
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs