Menu

error: failed to open stream

Help
Jen
2008-06-19
2013-06-03
  • Jen

    Jen - 2008-06-19

    My form has worked great for months, and now suddenly is giving this error, but still correctly submitting the form other than that:

    Warning: fopen(admin/data.dat) [function.fopen]: failed to open stream: No such file or directory in /home/wwwrive/public_html/formgenerator/use/res4408/process.php on line 53

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/wwwrive/public_html/formgenerator/use/res4408/process.php on line 57

    I don't understand what this is trying to tell me.  How do I fix it?

     
    • TNTEverett

      TNTEverett - 2008-06-20

      This error is telling you that the process.php file (used to process your form input) is expecting to write to a file to store your form data (file database instead of mySQL database).  This is something you chose when you were generating your form so I can only assume this is what you wanted. 
      Using some ftp program try to locate the file "admin/data.dat".  Change the permissions to 777 or if you can not fine it, create a new one with the same permissions. 

       
    • Jen

      Jen - 2008-06-25

      Ok, I found the following file: /public_html/formgenerator/forms/admin/data.dat
      and the permissions are already set to 777.  Is there another data.dat.

       
      • TNTEverett

        TNTEverett - 2008-06-26

        Wrong file, do not modify this file.  You need to find this one.
        formgenerator/use/res4408/admin/data.dat

         
    • Jen

      Jen - 2008-06-26

      Ok, I'm guessing that's the problem then.  My /use is completely empty.  Do I need to just start over and recreate the whole form?

       
      • TNTEverett

        TNTEverett - 2008-06-26

        You may need to reinstall again if any generator files have been modified.  The fact that you were using a form that was not in the ./use/ folder might be an indication there is a bigger problem.
        Starting over would be the shortest path to finding out whether the generator will still work but when you are done if your form is not in the ./use/ folder I would uninstall and reinstall the generator. 

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.