Announcement

Collapse
No announcement yet.

PDF Export Problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PDF Export Problem

    Hi Guys,

    I've just started playing with Scriptcase version 7 and can't seem to get the new pdf export option to work when I upload to my hosting server. It works fine locally in my development environment.

    Here's what happens...

    If I click to view the pdf I get a 404 error.

    If I click to download the pdf I do get a pdf file which is non zero in length (787 bytes). However, when I try to open this file in Adobe Reader it tells me that the file is not valid.

    Here's what gets output in the log file which lives in my tmp folder...

    ./wkhtmltopdf-i386 --page-size Letter --orientation Portrait --outline-depth 0 --header-right "[page]" http://drive-designers.tsm-eriks.co....4armq0mv7.html /var/www/vhosts/tsm-eriks.co.uk/subdomains/drive-designers/httpdocs/_lib/tmp/sc_pdf_20130608192937_998_syn_grid_results.pdf

    I'm stumped because all of the paths in the log file appear valid. Does anyone have any suggestions as to what the problem may be?

    Regards,




    Mike

  • #2
    Anyone?...

    Comment


    • #3
      I don't have a clue. But if you are still evaluating SC then you can try to get a live chat on SC website for help. If you have it running well locally and after upload with full libraries and have set connections / dir's right, it simply should work or there is some kind of bug.
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        Your PHP Version is 5.3? The files in _lib/prod_third/wkhtmltopdf (deployment directory) must have rights on 755 ...
        Best regards: - Reinhard -

        I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

        Comment


        • #5
          Hi Guys,

          The version of PHP on our hosting server is PHP Version 5.2.17. The _lib folder and all of its subfolders have full 777 permissions.

          Could the fact that we're not using PHP 5.3 be significant?

          Thanks,




          Mike

          Comment


          • #6
            It might be. If you are able to I would install a small wamp server on your local machine and simply test it.
            Albert Drent
            aducom software netherlands
            scriptcase partner, reseller, support and (turn-key) development
            www.scriptcase.eu / www.scriptcase.nl

            Comment


            • #7
              Originally posted by mikew View Post
              Could the fact that we're not using PHP 5.3 be significant?
              Yes. SC 7 = PHP 5.3. See documentation ...
              Best regards: - Reinhard -

              I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

              Comment


              • #8
                HI Guys,

                I have had our hosting server updated to PHP version 5.3.26, but the PDF export problem still persists. I have setup a test grid application here...

                http://sc7.tsm-eriks.co.uk/grid_tb_s...ce_factors.php

                If anyone would care to take a look and let me know if they have any ideas as to why this isn't working I would be very grateful.

                Thanks,



                Mike

                Comment


                • #9
                  Only the pdf is not working. That sounds as a bug to me...
                  Albert Drent
                  aducom software netherlands
                  scriptcase partner, reseller, support and (turn-key) development
                  www.scriptcase.eu / www.scriptcase.nl

                  Comment


                  • #10
                    Is there any chance that someone from Netmake could have a look at this and confirm if it is indeed a bug?

                    Thanks,



                    Mike

                    Comment


                    • #11
                      @mikew: see post #4. Have you set the file rights to 755?
                      Best regards: - Reinhard -

                      I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

                      Comment


                      • #12
                        I've just double checked. The _lib folder and all files and sub-folders have full 777 rights. Any other ideas?

                        Thanks,




                        Mike

                        Comment


                        • #13
                          Originally posted by mikew View Post
                          Any other ideas?
                          Yes ... Create an info.php on your site ...

                          Code:
                          <?php
                          
                          echo phpinfo();
                          ... an i check this with my configuration. Send the url with PN to me.
                          Best regards: - Reinhard -

                          I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

                          Comment


                          • #14
                            Hi Reinhard,

                            Here's a link to our phpinfo() page...

                            http://sc7.tsm-eriks.co.uk/phpinfo.php

                            Thanks,



                            Mike

                            Comment


                            • #15
                              Hi Mike,

                              check:
                              doc_root -> empty?
                              open_basedir -> path with ":"?
                              Zend Guard Loader -> not installed?
                              Best regards: - Reinhard -

                              I use ScriptCase 8 Enterprise Edition, Version 8.(latest)

                              Comment

                              Working...
                              X