• Resolved 2mooses

    (@2mooses)


    Just installed the plugin and tried activating it, and received a critical error. Logging in under recovery mode, this was the error message on the plugins page under this plugin:

    This plugin failed to load properly and is paused during recovery mode.

    An error of type E_COMPILE_ERROR was caused in line 25 of the file /home/[username]/public_html/wp-content/plugins/wc-donation-platform/includes/integrations/woocommerce-pdf-invoices-packing-slips/class-wcdp-thank-you-certificate.php. Error message: Cannot declare class WPO\WC\PDF_Invoices\Documents\WCDP_Thank_You_Certificate, because the name is already in use.

    I was able to deactivate the plugin and all seems back to normal. Is this fixable? I am intrigued with your plugin and would very much like to try it out on behalf of a client who has an online shop and is also a registered charity. Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Jonas

    (@flinnn)

    Dear 2mooses,

    thanks for reaching out.
    Could you please send me a list of the plugins & themes you have installed so I can take a closer look at the problem? A possible explanation could be that the wpo_wcpdf_document_classes filter is called more than once in your WP installation. This could cause the WCDP_Thank_You_Certificate class to be added multiple times.
    Could you please try the following possible fix:
    Replace include with include_once in line 56 in the document /home/[username]/public_html/wp-content/plugins/wc-donation-platform/includes/integrations/woocommerce-pdf-invoices-packing-slips/class-wcdp-pdf-Invoices.php.
    Could you please give me feedback if this fixed the problem and everything is still working normally? If so, I’ll be happy to include the fix in the next update.

    Best regards
    Jonas

    PS: It’s best to use a multisite if you want to set up both a webshop and donation page. WCDP changes some wordings, which might confuse normal shoppers.

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin Conflict’ is closed to new replies.