Problems with CSV file

User 256387 Photo


Registered User
19 posts

Still having problems with saving data to a CSV file.

When you submit this error message popped up:
Warning: [ err 2/line 166E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\php\datasavecsv.cls.php] rename(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/csv/interest_form.csv,E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance1.org1.au\New interest/storage/csv/interest_form1.csv) [<a href='function.rename'>function.rename</a>]: No such file or directory
Failed to archive data file.
Failed to record the data because the server is too busy or doesn't have write permission.

The folders have 777 permissions. It worked yesterday. I changed a drop-down list, uploaded the new files and now it is broken...

The bit I don't understand is this:
\wwwroot\eventsafetyalliance1.org1.au\New interest/storage/csv/interest_form1.csv
Why is there a '1' added to the name, the extension and the file?
User 464893 Photo


Ambassador
1,611 posts

As a first try, delete all form files on the server then upload a fresh copy after checking settings. It is so easy to miss one part. One thing I do is use Wamp. After I create the form I place the folder and php file in a folder under www. Then I just fill out the form.html and try it there. It does take a couple more minutes but at least the form gives you confidence. Alternatively you could upload to S_Drive to test it.
Do you save copies of your last form the one that did work. That is important in finding errors. With problems like that it is always the last thing you think of :(

Best of luck we have all been there. Post your solution please
The Guy from OZ


User 256387 Photo


Registered User
19 posts

Thanks for the suggestion, sadly it didn't work...
Deleted everything and renewed the WFB files.

Your form could not be submitted for the following reason(s):

Warning: [ err 2/line 45E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\inc\utilities.inc.php] error_log(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
Warning: [ err 2/line 84E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\inc\utilities.inc.php] error_log(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
Failed to record the data because the server is too busy or doesn't have write permission.

The form still send the email, it is just the CSV file that is causing grief.
User 187934 Photo


Senior Advisor
20,195 posts

Now check to see if there's a directory structure named storage/csv/ on your server. I had a form where I needed to create the directories manually then it worked.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 184085 Photo


Ambassador
1,707 posts

Eric Rohloff (Rolly) wrote:
Now check to see if there's a directory structure named storage/csv/ on your server. I had a form where I needed to create the directories manually then it worked.:)


That was my guess also :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 256387 Photo


Registered User
19 posts

Yes, the file structure is there.
Even created a dummy csv file which caused even more error messages:

Your form could not be submitted for the following reason(s):

Warning: [ err 2/line 166E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\php\datasavecsv.cls.php] rename(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/csv/interest_form.csv,E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance1.org1.au\New interest/storage/csv/interest_form1.csv) [<a href='function.rename'>function.rename</a>]: Permission denied
Warning: [ err 2/line 45E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\inc\utilities.inc.php] error_log(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
Warning: [ err 2/line 84E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest\fbapp\inc\utilities.inc.php] error_log(E:\CustomerData\webspaces\webspace_00189173\wwwroot\eventsafetyalliance.org.au\New interest/storage/fb_error.log.php) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied
Failed to archive data file.
Failed to record the data because the server is too busy or doesn't have write permission.
User 187934 Photo


Senior Advisor
20,195 posts

Did you try putting the correct csv file in the directory?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 256387 Photo


Registered User
19 posts

Yes, it is the correct file in the correct folder.
User 187934 Photo


Senior Advisor
20,195 posts

Did you try setting the files permission? I know you set the folder permissions.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 256387 Photo


Registered User
19 posts

yep, it has full read & write permissions....

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.