-->
Welcome, Guest
Username: Password: Remember me

TOPIC: SOLVED: undefined in findresource Operand stack

undefined in findresource Operand stack 2 months 1 week ago #34555

  • dolibarrtw
  • dolibarrtw's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Hi ,

When I run
/fourn/commande/card.php?id=1&save_lastsearch_values=1

There are error messages :
Error: /undefined in findresource Operand stack: --dict:15/24(L)-- F2 12.0 --dict:6/6(L)-- --dict:6/6(L)-- MSungStd-Light-Acro-UniCNS-UCS2-H --dict:10/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --dict:7/7(L)-- Adobe-CNS1 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 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-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue Dictionary stack: --dict:1154/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:286/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:26/40(L)-- Current allocation mode is local Last OS error .....

Look like font problem? Thanks for any help.
The administrator has disabled public write access.

undefined in findresource Operand stack 2 months 1 week ago #34557

  • aljawaid
  • aljawaid's Avatar
  • OFFLINE
  • Moderator
  • Trying to make the source open.
  • Posts: 649
  • Thank you received: 92
  • Karma: 12
Kindly post (here) your Dolibarr setup environment as suggested in https://www.dolibarr.org/forum/2-this-forum/28209-post-guidelines. This will greatly help the community in assisting you where possible.
The administrator has disabled public write access.
The following user(s) said Thank You: dolibarrtw

undefined in findresource Operand stack 2 months 1 week ago #34560

  • dolibarrtw
  • dolibarrtw's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Sorry, I forgot to post the setup environment.

DOLIBARR ENVIRONMENT
- Version: 8.0.1
- Operating System: Linux (Bluehost shared hosting plan)
- Web Server: nginx/1.14.0 (Bluehost shared hosting plan)
- PHP: PHP 5.6
- Database: 5.6.32-78.1 - Percona Server (GPL), Release 78.1, Revision 8bb53b6
- URL(s): http://uxd.tw/erp/

When I install Dolibarr in Chinese, the error occurred, but
it's ok when I installed in English with the same environment.

Thanks!
The administrator has disabled public write access.

undefined in findresource Operand stack 2 months 6 days ago #34564

  • yves57
  • yves57's Avatar
  • OFFLINE
  • Expert
  • Posts: 101
  • Thank you received: 25
  • Karma: 4
Hello,
It seems to me also that the problem is linked to font issue, and more specifically to PDF.
Did you get this error in Dolibarr page?
Were you opening the page or asked for an operation?
Do you see other PDF document which are well generated?
The administrator has disabled public write access.
The following user(s) said Thank You: dolibarrtw

undefined in findresource Operand stack 2 months 6 days ago #34566

  • dolibarrtw
  • dolibarrtw's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Hi,

The error occurred in PDF generation (in supplier order)

The errors in Dolibarr page are as follow :
Error: /undefined in findresource Operand stack: --dict:15/24(L)-- F2 12.0 --dict:6/6(L)-- --dict:6/6(L)-- MSungStd-Light-Acro-UniCNS-UCS2-H --dict:10/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --dict:7/7(L)-- Adobe-CNS1 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 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-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue Dictionary stack: --dict:1154/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:286/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:26/40(L)-- Current allocation mode is local Last OS error: 2

BUT it's strange that the PDF is generated OK. I guess some fonts are missing and the scripts keep on going.
Thanks for your reply.
The administrator has disabled public write access.

undefined in findresource Operand stack 2 months 6 days ago #34569

  • yves57
  • yves57's Avatar
  • OFFLINE
  • Expert
  • Posts: 101
  • Thank you received: 25
  • Karma: 4
Hi,
The error seems to be generated by Ghostscript. Here a similar bug:
https://bugs.ghostscript.com/show_bug.cgi?id=691819
I presume that the should be solved at this level. I don't know if Dolibarr embed Ghostscript or use one of the system.
The administrator has disabled public write access.
The following user(s) said Thank You: dolibarrtw

undefined in findresource Operand stack 2 months 6 days ago #34570

  • dolibarrtw
  • dolibarrtw's Avatar
  • OFFLINE
  • Newcomer
  • Posts: 5
  • Thank you received: 1
  • Karma: 0
Hi
Yes. It is the missing fonts problem.
I found the solution https://www.dolibarr.org/forum/3-installation/24090-modify-font
"go to Home->Setup->Other Setup and add this parameter Name-> MAIN_PDF_FORCE_FONT Value-> DejaVuSans"
After setting the value of MAIN_PDF_FORCE_FONT to be DejaVuSans, the error is gone.

Thanks to yves57, aljawaid and all of you ! :)
The administrator has disabled public write access.
The following user(s) said Thank You: aljawaid
Time to create page: 0.056 seconds