Announcement

Collapse
No announcement yet.

stupid dumb question

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

  • stupid dumb question

    my very simple scriptcase application seems to be working well but when exporting to pdf I get a 404 error
    Seems it may be a permissions issue?
    I have set permissions on _lib and tmp folders to max 7777
    any help appreciated as I am very new to this environment

  • #2
    I think that the pdf is generated in a temp directory which might have insufficient rights?
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Hi aducom
      I have permissions on the temp directory maxed out at 7777
      Looking at some past threads isee this issue has been going on for quite some time
      Is it in fact a SC bug
      Works fine in deveopment
      When I attempt to generate a PDF on my server SC says generate complete
      When I go to view it takes me to this link
      http://tgfa.asn.au/data/_lib/tmp/sc_...an_Records.pdf
      Then I get a 404 error because this file doesnt exist
      Any one can help with this please

      Comment


      • #4
        Originally posted by johneb View Post
        Hi aducom
        I have permissions on the temp directory maxed out at 7777
        Looking at some past threads isee this issue has been going on for quite some time
        Is it in fact a SC bug
        Works fine in deveopment
        When I attempt to generate a PDF on my server SC says generate complete
        When I go to view it takes me to this link
        http://tgfa.asn.au/data/_lib/tmp/sc_...an_Records.pdf
        Then I get a 404 error because this file doesnt exist
        Any one can help with this please
        I know that some people have issues with this, but I for instance do not. And also at the university we produce lot's of pdf's. Actually because of that I can't hardly believe that it's a bug, and I think that if rights is not the issue, perhaps the path is, or some php ini setting.
        Albert Drent
        aducom software netherlands
        scriptcase partner, reseller, support and (turn-key) development
        www.scriptcase.eu / www.scriptcase.nl

        Comment


        • #5
          Is the file actually being created? Did you check where it gets created? Apparently you are on a linux system using the litespeed http server
          I suggest the following steps:
          -make a dump your your file directories and filenames (all)
          -create a pdf and make a dump again
          -compare both with eachother (if needed sort first). You should be able to find the generated pdf...

          Since you are on litespeed I suspect this being an issue of a wrong configuration. Which litespeed do you use? I know almost nothing from litespeed so you are on your own here.
          I think you need to ask this on the litespeed forum. Alternatively if possible you can debug the generated application with xdebug and actually reach the line where the pdf is created. It should be in your generated code, but you'll need a lot of time for this. It is better to install a local litespeed and test there first with a minimal app that makes a pdf..
          Then again it is what I would do...

          Comment

          Working...
          X