WooCommerce Checkout page will not load
-
URL nsisolutions.com
Approx 2-24-22 our Checkout page stopped loading. It will display a loading spinner indefinitely. We have already disabled all other plugins with no change.
We found the following error on the Woocommerce status logs:2022-02-24T18:23:18+00:00 CRITICAL Uncaught Error: Call to undefined function create_function() in /home4/tqnsisol/public_html/wp-content/themes/pinnacle_premium-child/functions.php:20 Stack trace: #0 /home4/tqnsisol/public_html/wp-settings.php(555): include() #1 /home4/tqnsisol/public_html/wp-config.php(84): require_once('/home4/tqnsisol...') #2 /home4/tqnsisol/public_html/wp-load.php(50): require_once('/home4/tqnsisol...') #3 /home4/tqnsisol/public_html/wp-blog-header.php(13): require_once('/home4/tqnsisol...') #4 /home4/tqnsisol/public_html/index.php(17): require('/home4/tqnsisol...') #5 {main} thrown in /home4/tqnsisol/public_html/wp-content/themes/pinnacle_premium-child/functions.php on line 20 2022-02-24T18:23:18+00:00 CRITICAL Uncaught Error: Call to undefined function create_function() in /home4/tqnsisol/public_html/wp-content/themes/pinnacle_premium-child/functions.php:20 Stack trace: #0 /home4/tqnsisol/public_html/wp-settings.php(555): include() #1 /home4/tqnsisol/public_html/wp-config.php(84): require_once('/home4/tqnsisol...') #2 /home4/tqnsisol/public_html/wp-load.php(50): require_once('/home4/tqnsisol...') #3 /home4/tqnsisol/public_html/wp-blog-header.php(13): require_once('/home4/tqnsisol...') #4 /home4/tqnsisol/public_html/index.php(17): require('/home4/tqnsisol...') #5 {main} thrown in /home4/tqnsisol/public_html/wp-content/themes/pinnacle_premium-child/functions.php on line 20
Any help is appreciated
Thanks
DonThe page I need help with: [log in to see the link]
-
create_function is deprecated since php 7.2 and removed in 8.0, please fix your code in the child theme file
pinnacle_premium-child/functions.php:20
Vinjay – thank you for the reply. We are currently at PHP 7.4.28. I am not sure how to “fix the code”. This is way above my level. Any help you can provide is appreciated.
Thanks
- This reply was modified 2 years, 8 months ago by NSI Solutions.
Hey,
if you have any developer in contact or an old developer that set up the child theme for your website, you can ask him/her to fix the issue. they can fix it in a minute.if not then you’ll have to connect through FTP, then locate the
wp-content/themes/pinnacle_premium-child/functions.php
file then send me the screenshot of code where create_function is written so that I could read and give up updated code to replace in file.If you’re not comfortable with editing file then ask your hosting to fix the issue. I am sure they can fix this small issue in a minute.
Hi Don!
To know more about your setup and further check into this, kindly provide us your System Status; you can find it via
WooCommerce > Status
. Select ‘Get system report’ and then ‘Copy for support’. Once you do this, paste in here your response.Thanks!
Here is the system status report
### WordPress Environment ### WordPress address (URL): https://nsisolutions.com Site address (URL): https://nsisolutions.com WC Version: 6.2.1 REST API Version: ? 6.2.1 WC Blocks Version: ? 6.7.3 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.1.0 Log Directory Writable: ? WP Version: 5.9.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.28 PHP Post Max Size: 516 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.81.0 OpenSSL/1.1.1m SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.2.1 WC Database Prefix: wp_pdwu_ Total Database Size: 107.92MB Database Data Size: 96.88MB Database Index Size: 11.04MB wp_pdwu_woocommerce_sessions: Data: 4.95MB + Index: 0.17MB + Engine MyISAM wp_pdwu_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_order_items: Data: 0.16MB + Index: 0.10MB + Engine MyISAM wp_pdwu_woocommerce_order_itemmeta: Data: 2.40MB + Index: 1.75MB + Engine MyISAM wp_pdwu_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_actionscheduler_actions: Data: 0.04MB + Index: 0.03MB + Engine MyISAM wp_pdwu_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_actionscheduler_logs: Data: 0.03MB + Index: 0.03MB + Engine MyISAM wp_pdwu_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_comments: Data: 5.83MB + Index: 1.50MB + Engine MyISAM wp_pdwu_huge_itslider_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_huge_itslider_params: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_huge_itslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ksp_layers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ksp_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ksp_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_masterslider_options: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_masterslider_sliders: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_campaign_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_campaign_logmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_conversions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_email_campaignmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_email_campaigns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_optin_campaignmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_mo_optin_campaigns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_options: Data: 12.56MB + Index: 1.45MB + Engine MyISAM wp_pdwu_postmeta: Data: 49.75MB + Index: 2.97MB + Engine MyISAM wp_pdwu_posts: Data: 6.89MB + Index: 0.27MB + Engine MyISAM wp_pdwu_presto_player_email_collection: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pdwu_presto_player_presets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pdwu_presto_player_videos: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_pdwu_presto_player_visits: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_pdwu_revslider_css: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wp_pdwu_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_revslider_navigations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_revslider_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_revslider_sliders: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_revslider_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_revslider_static_slides: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pdwu_termmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_term_relationships: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_pdwu_term_taxonomy: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_icons: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_maps: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_markers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_marker_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_marker_groups_relation: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_modules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_modules_type: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_options: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_options_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_ums_usage_stat: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_usermeta: Data: 0.58MB + Index: 0.39MB + Engine MyISAM wp_pdwu_users: Data: 0.03MB + Index: 0.04MB + Engine MyISAM wp_pdwu_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_pdwu_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pdwu_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pdwu_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_pdwu_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_pdwu_wc_order_product_lookup: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_pdwu_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_pdwu_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_pdwu_wc_product_meta_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pdwu_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pdwu_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfBlockedIPLog: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wfBlocks7: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wfConfig: Data: 4.36MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wfCrawlers: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wfFileChanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfFileMods: Data: 4.21MB + Index: 0.88MB + Engine MyISAM wp_pdwu_wfHits: Data: 1.45MB + Index: 0.36MB + Engine MyISAM wp_pdwu_wfHoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfIssues: Data: 0.23MB + Index: 0.03MB + Engine MyISAM wp_pdwu_wfKnownFileList: Data: 2.17MB + Index: 0.27MB + Engine MyISAM wp_pdwu_wfLiveTrafficHuman: Data: 0.02MB + Index: 0.03MB + Engine MyISAM wp_pdwu_wfLocs: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfLogins: Data: 0.31MB + Index: 0.08MB + Engine MyISAM wp_pdwu_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pdwu_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pdwu_wfNotifications: Data: 0.06MB + Index: 0.01MB + Engine MyISAM wp_pdwu_wfPendingIssues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfReverseCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfSNIPCache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wfStatus: Data: 0.26MB + Index: 0.10MB + Engine MyISAM wp_pdwu_wfTrafficRates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_pdwu_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pdwu_wpmailsmtp_tasks_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 706 elementor_library: 1 mc4wp-form: 1 ml-slide: 4 ml-slider: 1 nav_menu_item: 29 oembed_cache: 29 page: 50 post: 4 pp_video_block: 1 product: 108 product_variation: 4 revision: 485 shop_coupon: 2 shop_order: 945 um_directory: 1 um_form: 4 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (34) ### WooCommerce Only Ship to Continental US: by Patrick Rauland – 1.0.1 Akismet Anti-Spam: by Automattic – 4.2.2 Black Studio TinyMCE Widget: by Black Studio – 2.7.0 Child Theme Configurator: by Lilaea Media – 2.5.8 Classic Widgets: by WordPress Contributors – 0.3 Code Snippets: by Code Snippets Pro – 2.14.3 Disable Comments: by WPDeveloper – 2.3.3 Duplicate Page: by mndpsingh287 – 4.4.8 Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.22 Health Check & Troubleshooting: by The www.remarpro.com community – 1.4.5 Hover Effects: by Wow-Company – 2.1 Insert Headers and Footers: by WPBeginner – 1.6.0 Jetpack: by Automattic – 10.7 MC4WP: Mailchimp for WordPress: by ibericode – 4.8.7 Master Slider: by averta – 3.8.1 Menu Icons: by ThemeIsle – 0.12.10 Page scroll to id: by malihu – 1.7.5 reCaptcha for WooCommerce: by I Thirteen Web Solution – 2.29 Shortcodes Ultimate: by Vladimir Anokhin – 5.12.0 Page Builder by SiteOrigin: by SiteOrigin – 2.16.5 SiteOrigin Widgets Bundle: by SiteOrigin – 1.31.0 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 Ultimate Maps by Supsystic: by supsystic.com – 1.2.8 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.22.8 Velvet Blues Update URLs: by VelvetBlues.com – 3.2.10 Advanced Order Export For WooCommerce: by AlgolPlus – 3.2.2 Quick View for WooCommerce: by ShapedPlugin – 2.0.3 WooCommerce Email Test: by RaiserWeb – 1.2.2 WooCommerce Authorize.Net AIM Gateway: by SkyVerge – 3.14.5 WooCommerce: by Automattic – 6.2.1 Wordfence Security: by Wordfence – 7.5.8 WP Mail SMTP: by WPForms – 3.3.0 WP Rollback: by GiveWP.com – 1.7.1 WP Video Lightbox: by Tips and Tricks HQ Ruhul Amin – 1.9.4 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### install.php: install.php ### Must Use Plugins (4) ### Endurance Browser Cache: by Mike Hansen – 0.4 Endurance Page Cache: by Mike Hansen – 2.2 Health Check Troubleshooting Mode: by – 1.7.2 SSO: by Garth Mortensen Mike Hansen – 0.3 ### Settings ### API Enabled: ? Force SSL: ? Currency: USD ($) Currency Position: left 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 ### Shop base: #218 - /store-2/ Cart: #219 - /cart/ Checkout: #220 - /checkout/ My account: #221 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Pinnacle Premium Child Version: 1.0.1442416722 Author URL: Child Theme: ? Parent Theme Name: Pinnacle Premium Parent Theme Version: 2.5.2 Parent Theme Author URL: https://www.kadencewp.com/ WooCommerce Support: ? ### Templates ### Overrides: pinnacle_premium/woocommerce/archive-product.php pinnacle_premium/woocommerce/content-product.php pinnacle_premium/woocommerce/content-single-product.php pinnacle_premium-child/woocommerce/emails/admin-new-order.php pinnacle_premium-child/woocommerce/emails/customer-processing-order.php pinnacle_premium/woocommerce/loop/loop-end.php pinnacle_premium/woocommerce/loop/loop-start.php pinnacle_premium/woocommerce/loop/rating.php pinnacle_premium/woocommerce/loop/sale-flash.php pinnacle_premium/product-searchform.php pinnacle_premium/woocommerce/single-product/add-to-cart/variable.php pinnacle_premium/woocommerce/single-product/product-image.php pinnacle_premium/woocommerce/single-product/product-thumbnails.php pinnacle_premium/woocommerce/single-product/related.php pinnacle_premium/woocommerce/single-product/up-sells.php pinnacle_premium/woocommerce/single-product.php pinnacle_premium/woocommerce/content-product_cat.php pinnacle_premium/woocommerce/taxonomy-product_cat.php pinnacle_premium/woocommerce/taxonomy-product_tag.php ### Authorize.Net AIM ### Environment: Production Debug Mode: Off ### Action Scheduler ### Complete: 75 Oldest: 2022-02-23 19:47:44 +0000 Newest: 2022-03-08 18:16:56 +0000 Pending: 1 Oldest: 2022-03-09 23:53:57 +0000 Newest: 2022-03-09 23:53:57 +0000 ### Status report information ### Generated at: 2022-03-08 12:11:10 -08:00
Hi @micahalgard
@vijayhardaha is correct! You’re using a deprecated function. You can follow his guide to update it or you can also reach out directly to your theme developer for a quick fix.
My very best,
I appreciate all the help. We have not employed a theme developer for several years and I am no longer in contact with the original developer. We have just edited and revised the page ourselves as we have grown and have been able to fix any problems that arose until now. Can you recommend a reputable company I can contact to make this fix.
Thank you
Quick Note: Errors log mentioned in the original post has the old dates, If you can provide the latest error logs then it might be helpful to identify the issue more clearly.
Ok, so I did some digging, Problem is not from any Fatal or Uncaught Error.
I checked the ajax response. found this. JSON is not correct in response due to that BlockUI.unblock() not working I guess.{ "result": "success", "messages": "", "reload": false, "fragments": { ... } }<br/><b>Deprecated</b>: Directive 'allow_url_include' is deprecated in <b>Unknown</b>on line<b>0</b><br />
@micahalgard Please try the solution mentioned in this blog https://buildyourblog.net/problems/how-fix-deprecated-directive-allow_url_include-deprecated-unknown-line-0 in order to solve this issue.
You can ask the hosting support to disable those configs if you don’t find options to disable those.
Hi @micahalgard,
Please follow Vijay’s suggestions and if you need further help with custom development tasks we highly recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.
Cheers.
FIXED – We followed the steps from the blog post above and changed this setting on location nsisolutions.com
“Set PHP Directive display_errors to Disabled”
The check out page functions correctly again but we have know idea why this suddenly changed.
Thanks for the help everyone
Good to know, it’s fixed. May you updated the PHP version recently and then this happened.
- The topic ‘WooCommerce Checkout page will not load’ is closed to new replies.