Title: Error trying to generate document: FilesystemIterator::__construct(): Argument #
Last modified: November 12, 2025

---

# Error trying to generate document: FilesystemIterator::__construct(): Argument #

 *  [sa1ntc](https://wordpress.org/support/users/sa1ntc/)
 * (@sa1ntc)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/error-trying-to-generate-document-filesystemiterator__construct-argument/)
 * Hi,
 * I am getting the above message after updating the plugin.
 * I have checked the folder permissions and they are in the right settings: 755
   and 644 but I still have the same error message:
 * “Error trying to generate document: FilesystemIterator::__construct(): Argument#”
 * Even when selecting the Simple template.[https://stage1.urtradinginternational.com/](https://stage1.urtradinginternational.com/)
 * Let me know how to fix.
 * Regards
 * 
   C
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-trying-to-generate-document-filesystemiterator__construct-argument%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Yordan Soares](https://wordpress.org/support/users/yordansoares/)
 * (@yordansoares)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/error-trying-to-generate-document-filesystemiterator__construct-argument/#post-18721732)
 * Hi [@sa1ntc](https://wordpress.org/support/users/sa1ntc/),
 * Could you please go to your **WordPress Dashboard > PDF Invoices > Advanced >
   Tools** and click on **Generate temporary directory**, and let me know if that
   fixes the issue?
 *  Thread Starter [sa1ntc](https://wordpress.org/support/users/sa1ntc/)
 * (@sa1ntc)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/error-trying-to-generate-document-filesystemiterator__construct-argument/#post-18723829)
 * Hi,
 * Nothing happens. It just spins.
 * I just realised that the Uploads folder is wrong. the folder is from the original
   site I copied the website from. How do I update this?
 *  Plugin Contributor [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * (@dwpriv)
 * [6 months ago](https://wordpress.org/support/topic/error-trying-to-generate-document-filesystemiterator__construct-argument/#post-18741551)
 * [@sa1ntc](https://wordpress.org/support/users/sa1ntc/) You should be able to 
   create an `uploads` folder in the `wp-content` folder and try again.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error trying to generate document: FilesystemIterator::__construct():
Argument #’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [dwpriv](https://wordpress.org/support/users/dwpriv/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/error-trying-to-generate-document-filesystemiterator__construct-argument/#post-18741551)
 * Status: not resolved