Title: Error 404 creating invoice
Last modified: June 4, 2017

---

# Error 404 creating invoice

 *  Resolved [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/)
 * Hello,
 * When i create a new invoice this error ocurre:
 * Fatal error: Call to undefined method WooCommerce_PDF_Invoices_Export::get_invoice_date()
   in /home/dietprem/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/class-wcpdf-functions.php on line 431
 * Can you help me?
 * Thanks!

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

 *  Thread Starter [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9195782)
 * Now the error is:
    Fatal error: Uncaught Error: Call to undefined method WooCommerce_PDF_Invoices_Export::
   get_invoice_date() in /home/dietprem/public_html/wp-content/plugins/woocommerce-
   pdf-invoices-packing-slips/includes/class-wcpdf-functions.php:431 Stack trace:#
   0 /home/dietprem/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-
   slips/includes/class-wcpdf-functions.php(435): WooCommerce_PDF_Invoices_Functions-
   >get_invoice_date() #1 /home/dietprem/public_html/wp-content/plugins/woocommerce-
   pdf-invoices-packing-slips/woocommerce-pdf-invoices-packingslips.php(443): WooCommerce_PDF_Invoices_Functions-
   >invoice_date() #2 /home/dietprem/public_html/wp-content/plugins/woocommerce-
   pdf-ips-templates/templates/Modern/invoice.php(55): WooCommerce_PDF_Invoices-
   >invoice_date() #3 /home/dietprem/public_html/wp-content/plugins/export-order-
   items-for-woocommerce/class-wcpdf-export.php(821): include(‘/home/dietprem/…’)#
   4 /home/dietprem/public_html/wp-content/plugins/export-order-items-for-woocommerce/
   class-wcpdf-export.php(287): WooCommerc in /home/dietprem/public_html/wp-content/
   plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-functions.
   php on line 431
 * And this line is where the invoice date would go.
 * Thanks!
 *  Thread Starter [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9198631)
 * i change PHP to 5.6 and now have the first error:
    Call to undefined method WooCommerce_PDF_Invoices_Export::
   get_invoice_date() in /home/dietprem/public_html/wp-content/plugins/woocommerce-
   pdf-invoices-packing-slips/includes/class-wcpdf-functions.php on line 431
 * Thanks!
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9200605)
 * Hi! It looks like either the plugin wasn’t downloaded in it’s entirety or someone
   has changed or removed some core plugin files. Or, but you should see a message
   about this in the WordPress admin (“WooCommerce PDF Invoices requires WooCommerce
   to be installed & activated”), WooCommerce is not recognized and the plugin is
   not launched (buttons wouldn’t be shown either though). WooCommerce should always
   be installed in wp-content/plugins/woocommerce.
 * This function definitely exists in WooCommerce_PDF_Invoices_Export ([code here](https://github.com/wpovernight/woocommerce-pdf-invoices-packing-slips/blob/v1.6.5/includes/class-wcpdf-export.php#L769-L774)),
   so something else is wrong with the installation somewhere. Let me know what 
   you find!
 * Ewout
 *  Thread Starter [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9201061)
 * Thanks for reply Ewout. But what i have to do? I uninstall the plugin and install
   it again and still having problems generating invoice.
 * Error 1:
    – /wp-admin/edit.php?s=&post_status=all&post_type=shop_order&_wpnonce
   =2000b2e…n=mark_completed&m=0&_customer_user=&paged=1&post%5B%5D=14954&action2
   =-1:1 GET [http://dietpremium.es/wp-admin/edit.php?s=&post_status=all&post_type=shop_o…ion=mark_completed&m=0&_customer_user=&paged=1&post%5B%5D=14954&action2=-1](http://dietpremium.es/wp-admin/edit.php?s=&post_status=all&post_type=shop_o…ion=mark_completed&m=0&_customer_user=&paged=1&post%5B%5D=14954&action2=-1)
   500 (Internal Server Error)
 * Failed to load resource: the server responded with a status of edit.php 500 (
   Internal Server Error)
 * Error 2:
    [http://dietpremium.es/home/dietprem/public_html/wp-content/uploads/2017/06/logo.png](http://dietpremium.es/home/dietprem/public_html/wp-content/uploads/2017/06/logo.png)
   404 (Not Found)
 * – Failed to load resource: the server responded with a status of logo.jpeg 404(
   Not Found)
 * Thanks for the help!
 *  Thread Starter [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9201192)
 * I just saw that both error doesn’t happen if i disable the “Invoice Date”, maybe
   this information helps you to know what happen.
 * Thanks.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9201731)
 * Hi Alex,
    The 500 error is probably due to the error you posted in the original
   thread. Turning off Invoice Date solves the issue because it doesn’t look for
   that function anymore.
 * I’m not sure where the 404 comes from – is that with the HTML output?
 * Did you create a custom template? If so, please post it on [https://gist.github.com/](https://gist.github.com/)
   or [https://pastebin.com/](https://pastebin.com/)
 * Which version of the plugin are you using? Did you make any modifications to 
   the plugin files (besides the templates)?
 *  Thread Starter [alexstaff](https://wordpress.org/support/users/alexstaff/)
 * (@alexstaff)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9201991)
 * Hello ewout,
 * I’m using Modern template. I’m using 1.6.5 version.
 * I need to put the Invoice Date. Can we solve it?
 * Regards!
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9202985)
 * Please send us an email at [support@wpovernight.com](https://wordpress.org/support/topic/error-404-creating-invoice/support@wpovernight.com?output_format=md)
   with your license key or order number and we’ll do our best to help – we’re not
   allowed to provide support for our premium extensions via the wordpress.org forums
   and as a paying customer you’re entitled to priority email support.
 * Ewout
 *  [kees78](https://wordpress.org/support/users/kees78/)
 * (@kees78)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9409606)
 * I have an issue as well, pdf invoice generates error: Call to undefined method
   WC_pdf_admin_settings::create_display_invoice_number()in …wp-content/plugins/
   woocommerce-pdf-invoice/classes/class-pdf-functions-class.php on line 193.
 * Reinstalling doesnt work, neither deactivating themes and plugins.
 * Any idea?
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9410770)
 * Hello Kees,
    This error is from another plugin, I can’t tell exactly which it
   is, but you should be able to find more information by checking the plugin details(
   perhaps there’s a readme.txt in wp-content/plugins/woocommerce-pdf-invoice/?).
 * Good luck!
    Ewout

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

The topic ‘Error 404 creating invoice’ 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/)

## Tags

 * [error 404](https://wordpress.org/support/topic-tag/error-404/)
 * [missing files](https://wordpress.org/support/topic-tag/missing-files/)

 * 10 replies
 * 3 participants
 * Last reply from: [Ewout](https://wordpress.org/support/users/pomegranate/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/error-404-creating-invoice/#post-9410770)
 * Status: resolved