Servor Error 500
-
Hi !
I have a website translated with TranslatePress plugin, in 2 languages, Fr and En.
Fr is the default language.I have a Servor error 500 only when I switch to En. Fr works well.
I did all the things you can do in this case, edit the .htaccess, php.ini etc…
Finally, I found someone in a thread, who has the same problem because of a missing column in the DB.
I launched the debug_mode, and I found the same problem (but not with the same column/table). Here’s my debug log :WordPress Database Error
Unknown column ‘gross_total’ in ‘wp_wc_order_stats’ for the request ALTER TABLE wp_wc_order_stats CHANGE COLUMN gross_total total_sales double DEFAULT 0 NOT NULLdone by do_action_ref_array(‘action_scheduler_run_queue’), WP_Hook->do_action, WP_Hook->apply_filters, ActionScheduler_QueueRunner->run, ActionScheduler_QueueRunner->do_batch, ActionScheduler_Abstract_QueueRunner->process_action, ActionScheduler_Action->execute, do_action_ref_array(‘woocommerce_run_update_callback’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Install::run_update_callback, wc_admin_update_0230_rename_gross_total`
But if the problem is “wp_wc_order_stats”, I cant understand why the problem is only in English and not in French… Maybe someone will know here ?
And just to let you know, on the other thread, the missing column was “batch_id” in “wp_292096_icl_translation_status” and the supporter give the following request, witch solved the problem.
ALTER TABLE wp_292096_icl_translation_status ADD batch_id int(11) NOT NULL DEFAULT ‘0’;Thank you very much for your help ! 🙂
-
Hi @darktyler,
The column
gross_totalunderwp_wc_order_statstable in the database was renamed tototal_salesand you can read more about this here. Can you make sure you’re running the latest versions of core WooCommerce plugin, WooCommerce database and TranslatePress plugin?Also, kindly share a copy of your site’s System Status. You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Thanks.
Hi Mirko and thanks a lot for your help !
Yes, I have ‘total_sales’ in the database, but a request still seems to call the ‘gross_total’ column.– My version of WC : 5.4.1
– Woocommerce database : 5.4.1
– TranslatePress : 2.0.4The Status here :
### WordPress Environment ### WordPress address (URL): https://www.arcanya.fr Site address (URL): https://www.arcanya.fr WC Version: 5.4.1 REST API Version: ✔ 5.4.1 WC Blocks Version: ✔ 5.1.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 2.3.1 Log Directory Writable: ✔ WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 2 Go WP Debug Mode: ✔ WP Cron: ✔ Language: fr_FR External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.20 PHP Post Max Size: 512 Mo PHP Time Limit: 0 PHP Max Input Vars: 250000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.30-MariaDB Max Upload Size: 512 Mo Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 5.4.1 WC Database Prefix: wp_ Taille totale de la base de données: 38.16MB Taille de la base de données: 32.77MB Taille de l’index: 5.39MB wp_woocommerce_sessions: Données : 1.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_api_keys: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_attribute_taxonomies: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_downloadable_product_permissions: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_woocommerce_order_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_order_itemmeta: Données : 0.08MB + Index : 0.09MB + Moteur InnoDB wp_woocommerce_tax_rates: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_woocommerce_tax_rate_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_shipping_zones: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_woocommerce_shipping_zone_locations: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_shipping_zone_methods: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_woocommerce_payment_tokens: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_woocommerce_payment_tokenmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_woocommerce_log: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_actionscheduler_actions: Données : 0.31MB + Index : 0.16MB + Moteur InnoDB wp_actionscheduler_claims: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_actionscheduler_groups: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_actionscheduler_logs: Données : 0.09MB + Index : 0.06MB + Moteur InnoDB wp_bw_pricing_items: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_commentmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_comments: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB wp_csp3_subscribers: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_giveasap_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_giveasap_entries: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_giveasap_meta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_lana_downloads_manager_logs: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_learnpress_order_itemmeta: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_learnpress_order_items: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_learnpress_question_answermeta: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_learnpress_question_answers: Données : 0.23MB + Index : 0.06MB + Moteur InnoDB wp_learnpress_quiz_questions: Données : 0.05MB + Index : 0.03MB + Moteur InnoDB wp_learnpress_review_logs: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_learnpress_sections: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_learnpress_section_items: Données : 0.06MB + Index : 0.02MB + Moteur InnoDB wp_learnpress_sessions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_learnpress_user_itemmeta: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_learnpress_user_items: Données : 0.02MB + Index : 0.11MB + Moteur InnoDB wp_learnpress_user_item_results: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_links: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_custom_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_dynamic_segment_filters: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_feature_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_forms: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_log: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_mapping_to_external_entities: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletters: Données : 1.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_newsletter_links: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_mailpoet_newsletter_option: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_option_fields: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_posts: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_segment: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_newsletter_templates: Données : 2.52MB + Index : 0.00MB + Moteur InnoDB wp_mailpoet_scheduled_tasks: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_scheduled_task_subscribers: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_segments: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_sending_queues: Données : 0.08MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_settings: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_statistics_clicks: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_mailpoet_statistics_forms: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_statistics_newsletters: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_statistics_opens: Données : 0.02MB + Index : 0.08MB + Moteur InnoDB wp_mailpoet_statistics_unsubscribes: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_mailpoet_statistics_woocommerce_purchases: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_mailpoet_stats_notifications: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_subscribers: Données : 0.02MB + Index : 0.13MB + Moteur InnoDB wp_mailpoet_subscriber_custom_field: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_subscriber_ips: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_mailpoet_subscriber_segment: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_mailpoet_user_flags: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_options: Données : 7.03MB + Index : 0.14MB + Moteur InnoDB wp_pmxe_exports: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_pmxe_google_cats: Données : 0.39MB + Index : 0.00MB + Moteur InnoDB wp_pmxe_posts: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_pmxe_templates: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_postmeta: Données : 2.47MB + Index : 0.66MB + Moteur InnoDB wp_posts: Données : 14.48MB + Index : 0.39MB + Moteur InnoDB wp_sml: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_termmeta: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_terms: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_term_relationships: Données : 0.05MB + Index : 0.02MB + Moteur InnoDB wp_term_taxonomy: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_trp_dictionary_fr_fr_en_us: Données : 0.20MB + Index : 0.22MB + Moteur InnoDB wp_trp_gettext_en_us: Données : 0.27MB + Index : 0.34MB + Moteur InnoDB wp_trp_gettext_fr_fr: Données : 0.44MB + Index : 0.39MB + Moteur InnoDB wp_trp_original_meta: Données : 0.11MB + Index : 0.19MB + Moteur InnoDB wp_trp_original_strings: Données : 0.11MB + Index : 0.08MB + Moteur InnoDB wp_usermeta: Données : 0.09MB + Index : 0.09MB + Moteur InnoDB wp_users: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wcpdf_invoice_number: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wc_admin_notes: Données : 0.05MB + Index : 0.00MB + Moteur InnoDB wp_wc_admin_note_actions: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_category_lookup: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wc_customer_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_download_log: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_order_coupon_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_order_product_lookup: Données : 0.02MB + Index : 0.06MB + Moteur InnoDB wp_wc_order_stats: Données : 0.02MB + Index : 0.05MB + Moteur InnoDB wp_wc_order_tax_lookup: Données : 0.02MB + Index : 0.03MB + Moteur InnoDB wp_wc_product_meta_lookup: Données : 0.02MB + Index : 0.09MB + Moteur InnoDB wp_wc_reserved_stock: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB wp_wc_tax_rate_classes: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wc_webhooks: Données : 0.02MB + Index : 0.02MB + Moteur InnoDB wp_wpforms_tasks_meta: Données : 0.02MB + Index : 0.00MB + Moteur InnoDB ### Post Type Counts ### attachment: 395 cpo_client: 5 cpo_feature: 6 cpo_portfolio: 12 cpo_service: 12 cpo_slide: 4 cpo_team: 8 cpo_testimonial: 6 custom_css: 2 giveasap: 1 kaliforms_forms: 4 lana_download: 3 language_switcher: 3 lp_course: 3 lp_lesson: 363 lp_order: 2 lp_question: 393 lp_quiz: 30 mailpoet_page: 1 nav_menu_item: 52 page: 64 polylang_mo: 2 post: 1 product: 11 product_variation: 10 revision: 964 seedprod: 2 shop_order: 64 shop_order_refund: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (23) ### Catch Gallery: par Catch Plugins – 1.6.7 Catch IDs: par Catch Plugins – 2.2 Catch Infinite Scroll: par Catch Plugins – 1.7.9 Social Gallery and Widget: par Catch Plugins – 2.2.3 Catch Web Tools: par Catch Plugins – 2.6.4 Types de contenus essentiels: par Catch Plugins – 1.8.5 Essential Widgets: par Catch Plugins – 1.7.4 Jetpack: par Automattic – 9.8.1 Kali Forms - WordPress Forms Made Easy: par Kali Forms – 2.3.7 Lana Downloads Manager: par Lana Codes – 1.4.0 Mail Subscribe List: par Richard Leishman t/a Webforward – 2.1.3 MailPoet 3 (nouveau): par MailPoet – 3.64.2 Modula: par WPChill – 2.5.1 Product Open Pricing (Name Your Price) for WooCommerce: par WP Wham – 1.6.0 En Haut (To Top): par Catch Plugins – 2.2.1 TranslatePress - Multilingual: par Cozmoslabs Razvan Mocanu Madalin Ungureanu Cristophor Hurduban – 2.0.4 Woo Donations: par Geek Web Solution – 1.6 WooCommerce Admin: par WooCommerce – 2.3.1 WooCommerce Stripe Gateway: par WooCommerce – 5.2.3 WooCommerce PDF Invoices & Packing Slips: par Ewout Fernhout – 2.9.0 WooCommerce Shipping & Tax: par WooCommerce – 1.25.15 WooCommerce: par Automattic – 5.4.1 WP All Export: par Soflyy – 1.2.8 ### Inactive Plugins (9) ### Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: par SeedProd – 6.2.5 Content Aware Sidebars: par Joachim Jensen - DEV Institute – 3.16.1 CPO Companion: par MachoThemes – 1.0.4 Kirki Customizer Framework: par David Vongries – 3.1.7 LearnPress: par ThimPress – 4.1.0 Simple Giveaways: par Igor Benic – 2.37.1 WP-CGV: par T. Devergranne - DonneesPersonnelles.fr – 1.0.7 WP All Import - WooCommerce Multistore Add-On: par Lykke Media AS – 2.0.4 WP Simple Pay Lite: par Sandhills Development LLC – 2.6.2 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right Thousand Separator: Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Base de la boutique: #6 - /panier/boutique/ Panier: #7 - /panier/ Commander: #8 - /commande/ Mon compte: #9 - /mon-compte/ Conditions générales de vente et d’utilisation: ❌ L’ID de page est définie mais la page n’existe pas ### Theme ### Name: Audioman Version: 2.1 Author URL: https://catchthemes.com/ Child Theme: ❌ – Si vous modifiez WooCommerce sur un thème parent que vous n’avez pas construit personnellement nous vous recommandons d’utiliser un thème enfant. Voir : Comment créer un thème enfant WooCommerce Support: ❌ Non déclaré ### Templates ### Overrides: audioman/product-searchform.php version - est obsolète. La version du noyau est 3.3.0 Outdated Templates: ❌ Learn how to update ### Product Open Pricing Settings ### Product Open Pricing (Name Your Price): yes Frontend template: Montant de mon add-on %open_price_input% %currency_symbol% Input field position: woocommerce_before_add_to_cart_button Position priority.: 9999 Hide price: yes Disable quantity selector: yes Display on loop: no Frontend loop template: Montant de l'Add-on %open_price_input% %currency_symbol% Input field loop position: woocommerce_after_shop_loop_item Position priority.: 9 Hide price: yes Input style: width:75px;text-align:center; Input pattern: Enable step ticker: yes Price step: 0.10 Force number of decimals: no Number of decimals.: 2 Add To Cart button text: Message on empty price: Price is required! Message on price too low: Price is too low! Message on price too high: Price is too high! Add "Open Pricing" column: no Fix mini cart: no ### Action Scheduler ### Terminé: 664 Oldest: 2021-05-31 01:30:56 +0200 Newest: 2021-06-30 23:04:52 +0200 En attente: 2 Oldest: 2021-07-01 00:04:52 +0200 Newest: 2021-07-01 23:00:51 +0200 ### Status report information ### Generated at: 2021-07-01 00:03:28 +02:00Thank you very much to help me, again 🙂
Hi @darktyler,
Thanks for sharing your System Status.
Make first a full backup using a plugin like UpdraftPlus and then try to create the
gross_totalcolumn within thewp_wc_order_statstable in the database and see if that helps solve the issue.I’d also suggest testing for conflicts following this guide: https://docs.woocommerce.com/document/how-to-test-for-conflicts/
Thanks.
Hi there,
We’ve not heard back from you in a while so I’ll go ahead and mark this thread as resolved. I hope you will find the above information useful.
Please feel free to create a new thread if you have further questions.
Thanks.
It was some plugin conflict. I just disable the bad plugin and it works.
Thank you very much !
The topic ‘Servor Error 500’ is closed to new replies.