• Resolved chrisbsa

    (@chrisbsa)


    I am hoping someone can assist a novice, please.

    I suddenly am no longer able to print the invoices nor packing lists in PDF and the auto emails are also being sent as plain text (no pdfs attached). My wordpress and all plugins are all up to date. I have removed the plugin and reinstalled and i have also tried using another plugin (which also gave an error).

    Here is the error message when i try and print the pdf invoice or packing slip:

    Fatal error: Class “DOMDocument” not found/chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/wcpdf-functions.php (578)#0 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(210): wpo_wcpdf_sanitize_html_content() #1 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(222): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_shipping_address() #2 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/packing-slip.php(42): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->shipping_address() #3 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1213): include(‘/chroot/home/fe…’) #4 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1071): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template() #5 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1026): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #6 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1093): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #7 /chroot/home/fendeck/fendeck.co.za/html/online/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(568): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf() #8 /chroot/home/fendeck/fendeck.co.za/html/online/wp-includes/class-wp-hook.php(324): WPO\WC\PDF_Invoices\Main->generate_document_ajax() #9 /chroot/home/fendeck/fendeck.co.za/html/online/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #10 /chroot/home/fendeck/fendeck.co.za/html/online/wp-includes/plugin.php(517): WP_Hook->do_action() #11 /chroot/home/fendeck/fendeck.co.za/html/online/wp-admin/admin-ajax.php(192): do_action() #12 {main}

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    Could you share a screenshot of your settings under PDF Invoices > Advanced > Status, please?

    Thread Starter chrisbsa

    (@chrisbsa)

    Good day. No problem. Its quite alot of information for a single screenshot, so i have printed the page in pdf,but how do i sent it to you? (I seem to not even be able to add an image…it asks for a URL)

    Thread Starter chrisbsa

    (@chrisbsa)

    Plugin Contributor dwpriv

    (@dwpriv)

    Thanks for the screenshots.

    The extensions with the red and yellow bars are necessary or recommend for the functions and performance of our plugin. For your particular issue, the DOM Document extension is not installed on your server. You can ask your host provider to install these for you. It should resolve your issue then

    Thread Starter chrisbsa

    (@chrisbsa)

    Here is a list of the PHP (ver 8.1) extensions installed on the server.

    It seems DOM is ticked/installed…from my understanding?

    Plugin Contributor dwpriv

    (@dwpriv)

    Thanks for the screenshot. I think you can query this with the host provider. It’s likely there is an issue with the PHP setup there, just to be sure.

    Thread Starter chrisbsa

    (@chrisbsa)

    Good day. I made contact with the service provider and this is there reply:

    The problems all started after a server migration. Can you assist with a reply to them or anything i can do to further troubleshoot? You know even another pluging which also prints invoices and packing lists to pdf also gave an error! Thank you so much

    “On the old server, you used PHP version 7.3 which has reached the end of its life already, It’s no longer supported. Users of this release should use one of the latest PHP versions supported, as they may be exposed to unpatched security vulnerabilities when using deprecated PHP versions.

    On the new server the PHP version to 8.1, you can always change it back to 7.3 if you want to continue using it, but as mentioned you may be exposed to unpatched security vulnerabilities. Some PHP extension settings that were supported with a previous PHP version, have also been deprecated and will not be supported on the actively supported PHP versions.

    The PHP extensions and PHP limits you required in the post, are enabled already in the PHP selector feature within your domain control panel”

    Plugin Contributor alexmigf

    (@alexmigf)

    @chrisbsa

    Does the server run Plesk?

    Thread Starter chrisbsa

    (@chrisbsa)

    Good day. No…Its a Linux server using Interworx Hosting control panel.

    Plugin Contributor alexmigf

    (@alexmigf)

    It seems the PHP extensions aren’t properly installed or configured based on your system settings. This issue will likely affect other plugins as well, so I recommend contacting your hosting provider to resolve it.

    Thread Starter chrisbsa

    (@chrisbsa)

    Good day. So after much persuasion with the service provider…they reported back to say that they have updated the php version for the site and ensure that all required extensions are present.

    I am pleased to report that the pdf printing functionality seems to be working again.

    I appreciate your assistance and guidance. Thank you

    Plugin Contributor alexmigf

    (@alexmigf)

    Glad to hear that ??

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.