• Resolved alexstaff

    (@alexstaff)


    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

    (@alexstaff)

    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

    (@alexstaff)

    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

    (@pomegranate)

    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), so something else is wrong with the installation somewhere. Let me know what you find!

    Ewout

    Thread Starter alexstaff

    (@alexstaff)

    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 https://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:
    https://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

    (@alexstaff)

    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

    (@pomegranate)

    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/ or 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

    (@alexstaff)

    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

    (@pomegranate)

    Please send us an email at [email protected] 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 www.remarpro.com forums and as a paying customer you’re entitled to priority email support.

    Ewout

    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

    (@pomegranate)

    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.