Forums / General / Problem with updatesearchindex.php

Problem with updatesearchindex.php

Author Message

Chalda Pnuzig

Tuesday 11 December 2007 9:38:48 am

When I run

<b>php ./bin/php/updatesearchindex.php </b>

I get this output:

 Starting object re-indexing
Number of objects to index: 2327
...................................................................... 3.00816501934%
...................................................................... 6.01633003868%
...............GPL Ghostscript 8.54: Unrecoverable error, exit code 1

This error is issued by <b>pstotext</b>:

<b>pstotext -debug namefile.pdf</b>

GPL Ghostscript 8.54 (2006-05-17)
Copyright (C) 2006 artofcode LLC, Benicia, CA.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Warning: the map file cidfmap was not found.
QI 100 0 0 -100 0 7200
Processing pages 1 through 1.
Page 1
QM 1 Error: /undefined in --get--
Operand stack:
   --dict:10/10(L)--   (\000/)   --nostringval--   --dict:0/200(L)--   --dict:12/17(ro)(L)--   1   --dict:12/17(ro)(L)--   FontBBox
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   --nostringval--   --nostringval--   2   1   1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--   --nostringval--   --nostringval--   %array_continue   2   10   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1122/1686(ro)(G)--   --dict:2/20(G)--   --dict:77/200(L)--   --dict:77/200(L)--   --dict:105/127(ro)(G)--   --dict:253/347(ro)(G)--   --dict:21/24(L)--   --dict:4/6(L)--   --dict:21/32(L)--   --dict:17/20(L)--   --dict:40/47(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.54: Unrecoverable error, exit code 1

Is there a solution to catch the error and continue the script?

I feel like I could... like I could... TAKE ON THE WORLD!!!

Softriva .com

Wednesday 19 December 2007 4:43:02 am

Check out this

http://oracleappstechnology.blogspot.com/2007/11/gpl-ghostscript-854-unrecoverable-error.html

OOzy

gabriele francescotto

Monday 09 February 2009 9:27:05 am

Hi,
is there someone that found a solution for this problem?

Thanks in advanced,
gabriele

www.opencontent.it
via Verdi 19, 38100 Trento

Gaetano Giunta

Tuesday 10 February 2009 1:04:06 am

Is there a bug posted in the tracker about this?

Principal Consultant International Business
Member of the Community Project Board

gabriele francescotto

Wednesday 11 February 2009 8:42:17 am

Hi Gaetano,
it's seems not.

I'll do it.

www.opencontent.it
via Verdi 19, 38100 Trento

Paul Borgermans

Wednesday 11 February 2009 9:40:44 am

pstotext is really buggy, better use xpdf and create a wrapper script for best results

see also http://ez.no/developer/forum/extensions/ez_find/ez_find_don_t_index_pdf_with_special_chars_like_c/re_ez_find_don_t_index_pdf_with_special_chars

hth
Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans