When Place order appears – There was a critical error on this website
-
Hello, I’ve been facing a problem for a while. When the customer adds his products to the cart, it appears to fill in his name and the delivery address and when he completes the order( when he click place the order ) , a message appears (There was a critical error on this website)
-
Hi @biosolar
For better assistance, can you provide a video showing the issue on your end? For video, you may use https://loom.com or https://www.awesomescreenshot.com/. Please follow the instructions on that page and then paste the URL into this thread.
Additionally, please share a copy of the Fatal Error log found under WooCommerce → Status → Logs. You could copy and paste your reply or share it via Mozilla Community Pastebin and share the link here.
It would be great if you could share the publicly accessible site link too. This will help us investigate further and provide you with a more accurate solution.
Looking forward to hearing from you soon.
Hello this is the url
my website is : biosolar.ro
Error :
There was a critical error on this website.
Learn more about troubleshooting WordPress.
before it doesn’t show me that black bar that appears and disappears but the error at the end of the order that I mentioned before appears since I created the web page
Hi @biosolar
Thanks for sending over the video and site URL.
I’ve managed to reproduce the error on your site. It seems like the issue might be related to the shipping settings, as they aren’t appearing on the checkout page. Could you please double-check if you’ve set up any shipping regions and methods?
Additionally, I spotted that the cart page is returning a 404 error, which suggests it may have been deleted. You can resolve it by adding your cart page in WooCommerce > Settings > Advanced > Page Setup.
However, if you’ve set up a shipping method and the issue persists, then this problem might caused by a conflict with your theme or with another plugin. The best way to determine this is to:
- Temporarily switch your theme to Storefront or Twenty Twenty-Four
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you do not see the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Additionally, please can you share a copy of the following:
- System Status Report: Navigate to WooCommerce → Status. Select Get System Report and then Download for Support.
- Fatal Error log: Share a copy of any fatal error log found under WooCommerce → Status → Logs.
You could copy and paste your reply or share it via Mozilla Community Pastebin and share the link here. This will help us investigate further and provide you with a more accurate solution.
I hope that helps! Let me know once you have done a conflict test!
WordPress Environment<br><br>WordPress address (URL): https://www.biosolar.ro<br>Site address (URL): https://www.biosolar.ro<br>WC Version: 9.0.1<br>Legacy REST API Package Version: Modulul Legacy REST API nu este instalat pe acest site.<br>Action Scheduler Version: ? 3.7.4<br>Log Directory Writable: ?<br>WP Version: 6.5.4<br>WP Multisite: –<br>WP Memory Limit: 256 Mo<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: ro_RO<br>External object cache: – Server Environment<br><br>Server Info: Apache<br>PHP Version: 8.1.29<br>PHP Post Max Size: 300 Mo<br>PHP Time Limit: 30<br>PHP Max Input Vars: 1000<br>cURL Version: 7.87.0<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 10.6.18-MariaDB<br>Max Upload Size: 290 Mo<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 8.9.3<br>WC Database Prefix: wpca_<br>Dimensiune total? baz? de date: 34.03MB<br>Dimensiune date baz? de date: 32.94MB<br>Dimensiune index baz? de date: 1.09MB<br>wpca_woocommerce_sessions: Date: 0.02 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_api_keys: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_attribute_taxonomies: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_downloadable_product_permissions: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_order_items: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_order_itemmeta: Date: 0.02 MO + Index: 0.02 MO + Motor MyISAM<br>wpca_woocommerce_tax_rates: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_tax_rate_locations: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_shipping_zones: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_shipping_zone_locations: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_shipping_zone_methods: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_payment_tokens: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_payment_tokenmeta: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_woocommerce_log: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_actionscheduler_actions: Date: 0.46 MO + Index: 0.15 MO + Motor MyISAM<br>wpca_actionscheduler_claims: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_actionscheduler_groups: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_actionscheduler_logs: Date: 0.30 MO + Index: 0.16 MO + Motor MyISAM<br>wpca_commentmeta: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_comments: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_e_events: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_gla_attribute_mapping_rules: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_gla_budget_recommendations: Date: 0.10 MO + Index: 0.10 MO + Motor MyISAM<br>wpca_gla_merchant_issues: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_gla_shipping_rates: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_gla_shipping_times: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_jetpack_sync_queue: Date: 0.14 MO + Index: 0.02 MO + Motor MyISAM<br>wpca_links: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automations: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automation_runs: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automation_run_logs: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automation_run_subjects: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automation_triggers: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_automation_versions: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_custom_fields: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_dynamic_segment_filters: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_feature_flags: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_forms: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_log: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_migrations: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_mailpoet_newsletters: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_links: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_option: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_option_fields: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_posts: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_segment: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_newsletter_templates: Date: 1.04 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_scheduled_tasks: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_mailpoet_scheduled_task_subscribers: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_segments: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_mailpoet_sending_queues: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_settings: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_bounces: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_clicks: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_forms: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_newsletters: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_opens: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_unsubscribes: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_statistics_woocommerce_purchases: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_stats_notifications: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_subscribers: Date: 0.00 MO + Index: 0.02 MO + Motor MyISAM<br>wpca_mailpoet_subscriber_custom_field: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_subscriber_ips: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_subscriber_segment: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_subscriber_tag: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_tags: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_user_agents: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_mailpoet_user_flags: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_options: Date: 3.62 MO + Index: 0.08 MO + Motor MyISAM<br>wpca_postmeta: Date: 13.88 MO + Index: 0.18 MO + Motor MyISAM<br>wpca_posts: Date: 13.17 MO + Index: 0.06 MO + Motor MyISAM<br>wpca_termmeta: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_terms: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_term_relationships: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_term_taxonomy: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_usermeta: Date: 0.08 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_users: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_admin_notes: Date: 0.03 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_admin_note_actions: Date: 0.02 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_category_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_customer_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_download_log: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_orders: Date: 0.00 MO + Index: 0.02 MO + Motor MyISAM<br>wpca_wc_orders_meta: Date: 0.02 MO + Index: 0.04 MO + Motor MyISAM<br>wpca_wc_order_addresses: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_order_coupon_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_order_operational_data: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_order_product_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_order_stats: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_order_tax_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_product_attributes_lookup: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_product_download_directories: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_product_meta_lookup: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_rate_limits: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_reserved_stock: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_wc_tax_rate_classes: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_wc_webhooks: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_yoast_indexable: Date: 0.03 MO + Index: 0.02 MO + Motor MyISAM<br>wpca_yoast_indexable_hierarchy: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_yoast_migrations: Date: 0.00 MO + Index: 0.01 MO + Motor MyISAM<br>wpca_yoast_primary_term: Date: 0.00 MO + Index: 0.00 MO + Motor MyISAM<br>wpca_yoast_seo_links: Date: 0.01 MO + Index: 0.00 MO + Motor MyISAM Post Type Counts<br><br>attachment: 57<br>customize_changeset: 2<br>elementor_library: 4<br>mailpoet_page: 1<br>nav_menu_item: 12<br>oembed_cache: 2<br>page: 18<br>post: 4<br>product: 24<br>revision: 462<br>shop_order: 15<br>wp_global_styles: 2<br>wp_navigation: 2<br>wp_template: 3 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (4)<br><br>Elementor: de Elementor.com – 3.22.2<br>Google Listings and Ads: de WooCommerce – 2.7.3<br>WooCommerce: de Automattic – 9.0.1<br>Yoast SEO: de Echipa Yoast – 22.9 Inactive Plugins (4)<br><br>Envo's Elementor Templates & Widgets for WooCommerce: de EnvoThemes – 1.4.15<br>Envo Extra: de EnvoThemes – 1.8.27<br>Jetpack: de Automattic – 13.5<br>Jetpack Boost: de Automattic - Jetpack Site Speed team – 3.4.4 Settings<br><br>API Enabled: –<br>Force SSL: –<br>Currency: RON (lei)<br>Currency Position: right_space<br>Thousand Separator: .<br>Decimal Separator: ,<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: ? Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30 de zile<br>Level threshold: –<br>Log directory size: 170 Ko WC Pages<br><br>Baz? magazin: #219 - /magazin-2/<br>Co?: #30 - /cos/<br>Finalizare: #31 - /finalizare/<br>Contul meu: #222 - /contul-meu/<br>Termeni ?i condi?ii: #33 - /rambursari-biosolar/ Theme<br><br>Name: Envo Storefront<br>Version: 1.2.2<br>Author URL: https://envothemes.com/<br>Child Theme: ? – Dac? modifici WooCommerce ?ntr-o tem? p?rinte pe care nu ai construit-o personal recomand?m folosirea unei teme copil. Vezi: Cum creezi o tem? copil<br>WooCommerce Support: ? Templates<br><br>Archive Template: Tema ta are un fi?ier woocommerce.php<br>nu vei putea s? contramandezi ?ablonul personalizat woocommerce/archive-product.php deoarece woocommerce.php are prioritate fa?? de archive-product.php. Acest lucru are ca scop prevenirea problemelor de afi?are.<br><br>Overrides: – Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br><br>Disabled Features: minified-js<br>new-product-management-experience<br>pattern-toolkit-full-composability<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>launch-your-store<br>product-editor-template-system<br><br>Daily Cron: ? Next scheduled: 2024-06-24 21:09:03 +00:00<br>Options: ?<br>Notes: 80<br>Onboarding: completed Action Scheduler<br><br>Finalizeaz?: 724<br>Oldest: 2024-05-24 21:37:34 +0000<br>Newest: 2024-06-24 18:56:17 +0000<br><br>E?uat?: 542<br>Oldest: 2024-03-10 18:33:53 +0000<br>Newest: 2024-06-08 13:17:14 +0000<br><br>?n a?teptare: 3<br>Oldest: 2024-06-24 19:26:47 +0000<br>Newest: 2024-06-25 18:55:15 +0000 Status report information<br><br>Generated at: 2024-06-24 18:57:42 +00:00<br>
Hi, thank you once again for trying to help me.
I changed the Theme, disabled all modules except Woocommerce and tried to complete the order and I still get the same errorI solved the 404 error but I really don’t know what to do with the other error, if you can try to make an order yourself and you will see which error I am talking about.
Error :
There was a critical error on this website.
Learn more about troubleshooting WordPress.
Hi @biosolar
Thank you for sharing further details.
I’ve checked your system status reports, and your WC database version looks outdated. To update it to the latest version, head over to WooCommerce > Status > Tools and use the update database tool. While you’re at it, boosting your PHP Time Limit from 30 to 1200 would be great for optimal performance.
Furthermore, after checking the fatal error log, it looks like the issue is related to the PHPMailer function in your WordPress installation. The error message indicates that the PHPMailer function
mail()
is undefined. This function is responsible for sending out emails from your WordPress site, and it’s critical for WooCommerce operations like order confirmations and notifications.You can use the WP Mail SMTP by WPForms plugin to troubleshoot this issue. It allows you to configure the SMTP server and should help resolve the problem. More info: https://woocommerce.com/document/email-faq/
If needed, reach out to your hosting provider. The problem might be related to your server configuration.
I hope this helps! Please let us know how it goes or if you need further assistance.
I finally solved the error with the checkout, it was because of the email, I changed it and now it works properly. Thanks a lot.
What about the black bar which appears and disappears when I enter the cart page. I sent you the video above ?
Hey @biosolar ??
I finally solved the error with the checkout, it was because of the email, I changed it and now it works properly. Thanks a lot.
That’s great to hear! Thanks for letting us know.
What about the black bar which appears and disappears when I enter the cart page. I sent you the video above ?
As I understand, it is the site’s black footer that momentarily appears mid-screen before the page fully loads.
For verifying this, feel free to go ahead with changing the footer’s (now black) color to red, for example, and see if a red bar appears, instead.
I trust that points you in the right direction, but if you have more questions, let us know.
We’re happy to help.
Hi and thanks again for your help
Can you show me step by step how can i change the the footer’s colour.
Hi @biosolar,
Can you show me step by step how can i change the the footer’s colour.
For reference, this particular forum is meant for general support with the core functionality of WooCommerce itself.
As this is currently not within our support scope, I managed to make a web search and several options appeared here.
I hope this helps.
- The topic ‘When Place order appears – There was a critical error on this website’ is closed to new replies.