Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File exist error when using the save() function #4

Closed
Siriu5J opened this issue Mar 14, 2024 · 2 comments
Closed

File exist error when using the save() function #4

Siriu5J opened this issue Mar 14, 2024 · 2 comments

Comments

@Siriu5J
Copy link

Siriu5J commented Mar 14, 2024

I am attempting to fill out an Excel form using the templator. However, whenever I attempt to save the file (even without doing any editing, the fatal error below will still show up).

[14-Mar-2024 07:04:21 UTC] PHP Fatal error:  Uncaught avadim\FastExcelWriter\Exceptions\Exception: File "/var/www/html/wordpress/wp-content/plugins/judges-form-auto-generate/files/tmp/output.xlsx" already exists in /var/www/html/wordpress/wp-content/plugins/judges-form-auto-generate/lib/composer/vendor/avadim/fast-excel-writer/src/FastExcelWriter/Exceptions/Exception.php:20
Stack trace:
#0 /var/www/html/wordpress/wp-content/plugins/judges-form-auto-generate/lib/composer/vendor/avadim/fast-excel-writer/src/FastExcelWriter/Writer.php(350): avadim\FastExcelWriter\Exceptions\Exception::throwNew()
#1 /var/www/html/wordpress/wp-content/plugins/judges-form-auto-generate/lib/composer/vendor/avadim/fast-excel-writer/src/FastExcelWriter/Excel.php(203): avadim\FastExcelWriter\Writer->saveToFile()
#2 [internal function]: avadim\FastExcelWriter\Excel->__destruct()
#3 {main}
  thrown in /var/www/html/wordpress/wp-content/plugins/judges-form-auto-generate/lib/composer/vendor/avadim/fast-excel-writer/src/FastExcelWriter/Exceptions/Exception.php on line 20

I noticed that the file is still written when using the template() function. Maybe that is why the Writer is not liking it.

@Siriu5J
Copy link
Author

Siriu5J commented Mar 14, 2024

By the way, the file still gets saved with that error.

@aVadim483
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants