Okay
  Public Ticket #2122166
PHP error in the checkout
Closed

Comments

  •  1
    lucagalvani started the conversation

    Hello, the checkout gives me this error

    (I have all plugins, woocommerce, wordpress and the theme updated to the last version)

    Fatal error: Uncaught Error: [] operator not supported for strings in /home/lucag640/public_html/wp-content/themes/kalium/inc/functions/template/woocommerce-template-functions.php:1565 Stack trace: #0 /home/lucag640/public_html/wp-includes/class-wp-hook.php(286): kalium_woocommerce_woocommerce_form_field_args(Array, 'billing_address...', NULL) #1 /home/lucag640/public_html/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #2 /home/lucag640/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2633): apply_filters('woocommerce_for...', Array, 'billing_address...', NULL) #3 /home/lucag640/public_html/wp-content/themes/kalium/woocommerce/checkout/form-billing.php(47): woocommerce_form_field('billing_address...', Array, NULL) #4 /home/lucag640/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(249): include('/home/lucag640/...') #5 /home/lucag640/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(294): wc_get_template('checkout/form-b...', A in /home/lucag640/public_html/wp-content/themes/kalium/inc/functions/template/woocommerce-template-functions.php on line 1565

    The site is experiencing technical difficulties.

  • [deleted] replied

    Hi lucagalvani,

    Sorry to hear this, we have made a fix for this, to apply it download this file and replace it in this directory (of the theme): /kalium/inc/functions/template

    This should fix the errors.

  •  1
    lucagalvani replied

    hello, thanks for that, but applying that PHP gives me 2 other errors:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'kalium_woocommerce_loop_add_to_cart_link' not found or invalid function name in /home/lucag640/public_html/wp-includes/class-wp-hook.php on line 286

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'kalium_display_woocommerce_archive_description' not found or invalid function name in /home/lucag640/public_html/wp-includes/class-wp-hook.php on line 286


    and this one


    Fatal error: Uncaught Error: Call to undefined function kalium_enqueue_flickity_library() in /home/lucag640/public_html/wp-content/themes/kalium/inc/functions/template/woocommerce-template-functions.php:1034 Stack trace: #0 /home/lucag640/public_html/wp-includes/class-wp-hook.php(286): kalium_woocommerce_show_product_images_custom_layout('') #1 /home/lucag640/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #2 /home/lucag640/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /home/lucag640/public_html/wp-content/themes/kalium/inc/functions/template/woocommerce-template-functions.php(197): do_action('kalium_woocomme...') #4 /home/lucag640/public_html/wp-includes/class-wp-hook.php(286): kalium_woocommerce_single_product_images_wrapper_start('') #5 /home/lucag640/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array) #6 /home/lucag640/public_html/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #7 /home/lucag640/public_html/wp-content/themes in /home/lucag640/public_html/wp-content/themes/kalium/inc/functions/template/woocommerce-template-functions.php on line 1034


  • [deleted] replied

    Hi lucagalvani,

    Can you please share your Wordpress credentials because I need to login to your site and test this issue. Your information is safe here (private) in this thread.

    To include your credentials click Insert Credentials button in editor toolbar (see how)

    Thanks!

  •   lucagalvani replied privately
  • [deleted] replied

    Hi lucagalvani,

    Your Wordpress credentials are now working, can you please test them and send me correct ones?

    Thanks!


  •   lucagalvani replied privately
  • [deleted] replied

    Hi lucagalvani,

    You are using an very old version of our theme 2.4, the latest version for the moment is 2.9.2 (read release notes), please update your theme first and then the premium plugins too.

    After you update the theme, there is a chance that we also updated some of the plugins that we offer. To update those plugins to the latest version that we support, just go to Appearance > Install Plugins.

    Thanks!

  •  1
    lucagalvani replied

    now it works! thank you

  • [deleted] replied

    Happy to hear that. Please keep your theme always updated so you will not have problems like this in the futuresmile.png

    I wish you have a great day!

    P.S: If you like the theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.

    A huge thank you from me and Laborator in advance.