• Resolved urbancircusparis

    (@urbancircusparis)


    Hi There,

    I need your help to solve an issue that ruined my website.
    Everything works but Impossible to proceed to chekout with this message “internal server error” – https://prnt.sc/uqbzno

    According our error log from our server (available here : /var/log/apache2/) we get 2 fatal errors that can cause this issue :

    [Wed Sep 30 13:38:01.340375 2020] [php7:notice] [pid 16438] [client 82.231.50.60:52836] payment_method was called incorrectly. Order properties should not be accessed directly.

    [Wed Sep 30 10:22:09.823810 2020] [php7:error] [pid 11701] [client 82.231.50.60:62784] PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /var/www/staging.uc-pro.store/wp-includes/PHPMailer/SMTP.php on line 30

    Can somebody please help me to solve these issue ?
    Here is our latest woocomerce log report :

    2020-10-01T07:27:32+00:00 CRITICAL Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use dans /var/www/uc-pro.store/wp-includes/PHPMailer/SMTP.php à la ligne 30

    2020-10-01T08:40:51+00:00 CRITICAL Uncaught Error: Call to a member function get_payment_method() on string in /var/www/uc-pro.store/wp-content/plugins/woocommerce-gateway-offline-master/woocommerce-gateway-offline.php:175
    Stack trace:
    #0 /var/www/uc-pro.store/wp-includes/class-wp-hook.php(289): WC_Gateway_Offline->email_instructions(Object(Automattic\WooCommerce\Admin\Overrides\Order), false, false)
    #1 /var/www/uc-pro.store/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/uc-pro.store/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /var/www/uc-pro.store/wp-content/plugins/woocommerce/templates/emails/email-order-details.php(22): do_action(‘woocommerce_ema…’, Object(Automattic\WooCommerce\Admin\Overrides\Order), false, false, Object(WC_Emails))
    #4 /var/www/uc-pro.store/wp-content/plugins/woocommerce/includes/wc-core-functions.php(344): include(‘/var/www/uc-pro…’)
    #5 /var/www/uc-pro.store/wp-content/plugins/woocommerce/includes/class-wc-emails.php(421): wc_get_template(’emails/email-or…’, Array dans /var/www/uc-pro.store/wp-content/plugins/woocommerce-gateway-offline-master/woocommerce-gateway-offline.php à la ligne 175

    thanks for your HELP !
    Henri

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Henri (that is a very unique and cool way to spell that name),

    Did you (or someone else) write custom code for your website? If so, could you post the code?

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @urbancircusparis

    shmac is correct – this could be related to some custom code.

    Also, it’s possible another of your plugins or your theme may be conflicting with WooCommerce. You can read more about plugin and theme conflicts in our Self-Service Guide.

    Here’s how you can figure out which one may be causing the problem:

    Before you start

    • First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
    • Second, I would suggest to install a plugin called Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without effecting your current site visitors.

    How to test for conflicts
    In order to test for conflicts using Health Check & Troubleshooting:

    1. Go to Tools > Site Health > Troubleshooting.
    2. Select Enable Troubleshooting Mode. This will disable all your plugins and set your theme to a default one.
    3. Go to Plugins. There you can enable WooCommerce by selecting Enable While Troubleshooting.
    4. Try to reproduce the problem. If the problem is resolved, it’s clearly a conflict. Now we need to figure out which plugin is causing this conflict.
    5. If you can’t reproduce the problem with only WooCommerce enabled, go ahead and re-enable the other plugins one by one. Test after each one until the problem occurs again – this will tell you which plugin is conflicting.
    6. If you are unable to reproduce the problem with the rest of your plugins enabled it could be your theme causing the conflict. To test for this, please enable your original theme at your WordPress Dashboard in the Troubleshooting Mode section at the top (it will look similar to this: https://d.pr/i/bbvkLY). In the Troubleshooting window, you’ll be able to see a dropdown with available themes. Choose the one you normally use. Try reproducing the problem you’re experiencing. If you can reproduce it, your theme is the source of the conflict.

    Once you’ve done that, please check out How to test for plugin and theme conflicts and follow the steps there. Please let us know how that goes.

    Thread Starter urbancircusparis

    (@urbancircusparis)

    Hi @m155y5, @shmac

    Thanks for your answers.
    – No we didn’t do custom code for this part
    – The problem was coming from a new conflict after plugin update between : WP MAIL SMTP and NEWSLETTER, SMTP… by sendinblue.
    I don’t have the INTERNAL SERVER ERROR anymore but I don’t receive any transactionnal email anymore either… I will find another solution

    thanks

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Hi @urbancircusparis

    I’m glad you discovered the source of the problem. I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘INTERNAL SERVER ERROR – on checkout’ is closed to new replies.