Support

Home Forums Event Espresso Premium Error Exporting CSV

Error Exporting CSV

Posted: March 27, 2019 at 3:46 pm


jlnewell

March 27, 2019 at 3:46 pm

When trying to export the CSV for an event we get the following error

The file will download automatically when done, and then you will be redirected.
An exception of type EventEspressoBatchRequest\Helpers\BatchRequestException occurred while running BatchRunner::create_job(). Its message was Could not create temporary file for job o8D1VpjPk70VpUq, because: The “/” folder is not writable.File permissions for the requested folder are currently set at “755”. The recommended permissions are 644 for files and 755 for folders. and had trace *redacted*

I have turned on the healthcheck plugin and only enabled EE and got the same error. Also turned on debug and recived no error but the above one. This has worked previously.

  • This topic was modified 5 years ago by  Josh. Reason: removed stack trace


jlnewell

March 27, 2019 at 4:51 pm

We also noticed that older events that did work give the same error. The only thing that has happened for this hosting package was another site was moved over into it. Its also a wordpress site.


Josh

  • Support Staff

March 27, 2019 at 7:38 pm

When the other site was moved into the hosting package were any of the file permissions settings altered?


jlnewell

March 28, 2019 at 3:33 am

its possible and that’s what i am afraid of since i didnt do the migration myself. Do you know what permissions the EE folder(s) should have? Anything specific to where this temp file is created?


Tony

  • Support Staff

March 28, 2019 at 7:55 am

Have you removed any of the paths/code from the above message you included?

If you look in wp-config.php can you see EVENT_ESPRESSO_UPLOAD_DIR defined at all?

Or any filters hooking into FHEE__EventEspressoBatchRequest\JobHandlerBaseClasses\JobHandlerFile__get_base_folder?

I’ll double check this with our developers, but this:

The “/” folder is not writable.

Looks incorrect to me, EE doesn’t try to add the temp folders to root (/) but within /wp-content/uploads/espresso/


jlnewell

March 28, 2019 at 4:44 pm

There is nothing in the wp-config for

EVENT_ESPRESSO_UPLOAD_DIR

or for

FHEE__EventEspressoBatchRequest

. I did a search with notepad++ in that file. Should i try and define that?

The permissions for the wp-content/uploads/espresso folder is 0755 along with the 2 folders in it.

Is there any other way without going into the database to get the info, i have 7 events that i need to get the data out for my customer.


Tony

  • Support Staff

March 29, 2019 at 4:28 am

The info is all stored in the database, so you can get the info from the database without going into the database, unless I’m misunderstanding the question?

You can try adding:

define('EE_USE_OLD_CSV_REPORT_CLASS', true);

to your wp-config.php file, which switches EE back to the export system that does not create temp files to ‘batch’ export large numbers of registrations.

So add that above the /* That's all, stop editing! Happy blogging. */ comment in wp-config.php and run an export, does it work then?


jlnewell

March 29, 2019 at 4:04 pm

Works fine that way. I guess we will have to keep it that way. Weird since we have it on another site and it works with no issues.


Tony

  • Support Staff

April 1, 2019 at 2:32 am

Whilst there’s nothing particularly wrong with using that setup, I’d recommend troubleshooting the batch process further to try and get that working.

I gave you the above as it sounded like you need the reports for your client and as it didn’t create temp files it was likely it worked.

With regards to the filter I mentioned (FHEE__EventEspressoBatchRequest), that wouldn’t be in wp-config.php, it would usually be in either a custom functions plugin, or your themes functions.php file.

Start by checking in your functions.php file, then look to see if there’s a custom functions plugin active and check there.


jlnewell

April 2, 2019 at 3:48 am

No problem, i will take a look and see if i can find it in the functions file

The support post ‘Error Exporting CSV’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso