Menu

#33 Generate Report in Job orders does not work

2.0
closed
nobody
None
2015-05-18
2015-05-14
Steve R
No

To reproduce:

1.Go into "Job order: Job Order Details" page (Job Order Tab -> Select and existing Job Order).

  1. Scroll down and select the "Generate Report" link (located under the "Job Order Pipeline" graph)

  2. Add all required fields and click the "Generate Report" button

  3. You will receive the following error on the next page:

FPDF error: Missing or incorrect image file: http://www.yourdomainname.com/index.php?m=graphs&a=jobOrderReportGraph&data=98%2C1%2C1%2C1

Discussion

  • Tamil Amuthan

    Tamil Amuthan - 2015-05-15
    • status: open --> accepted
     
  • Steve R

    Steve R - 2015-05-15

    This may help, using CURL to create the report instead of relying on "allow_url_fopen = ON" in the PHP.ini file:

    http://stackoverflow.com/questions/3177716/fpdf-error-missing-or-incorrect-image-file

    Indecently, my allow_url_fopen is set to on.

     
  • Tamil Amuthan

    Tamil Amuthan - 2015-05-17

    Steve R,

    FPDF 1.7 is doing this.

    change the code in file modules/reports/ReportsUI.php at line at 443, 444, 445

    from

    $fontFace = 'Arial';

    $pdf = new FPDF();

    to

    $fontFace = 'helvetica';

    $pdf=new \TCPDF();

    And let me know the issue resolved.

    with regards,
    R. Tamil Amuthan
    Auieo Software Private Limited

     

    Last edit: Tamil Amuthan 2015-05-17
  • Tamil Amuthan

    Tamil Amuthan - 2015-05-17
    • status: accepted --> pending
     
  • Steve R

    Steve R - 2015-05-17

    It worked!

    Thank you!

     

    Last edit: Steve R 2015-05-17
  • Tamil Amuthan

    Tamil Amuthan - 2015-05-18
    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB