-
AuthorPosts
-
May 3, 2020 at 5:24 pm #1209313
Hi Guys,
I updated the PHP version from 5.6 to 7.2, and I am getting a fatal error trying to enter to any product page.
– Example: https://maiar.com.ar/productos/aceites-esenciales/aceite-esencial-de-albahaca/
– PHP Version: 7.2.17
– WordPress Version: 5.4.1
– Woocommerce Version: 4.0.1
– Enfold Version: 3.4.3
– Full error log:
Fatal error: Uncaught ArgumentCountError: Too few arguments to function avia_woocommerce_gallery_thumbnail_description(), 2 passed in /www/maiar.com.ar/htdocs/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /www/maiar.com.ar/htdocs/wp-content/themes/enfold/config-woocommerce/config.php:1354 Stack trace: #0 /www/maiar.com.ar/htdocs/wp-includes/class-wp-hook.php(287): avia_woocommerce_gallery_thumbnail_description(‘<div data-thumb…’, ‘1064’) #1 /www/maiar.com.ar/htdocs/wp-includes/plugin.php(206): WP_Hook->apply_filters(‘<div data-thumb…’, Array) #2 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/templates/single-product/product-image.php(50): apply_filters(‘woocommerce_sin…’, ‘<div data-thumb…’, ‘1064’) #3 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(251): include(‘/www/maiar.com….’) #4 /www/maiar.com.ar/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1438): wc_get_template(‘single-product/…’) #5 /www/maiar.com.ar/htd in /www/maiar.com.ar/htdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 1354Thanks for your help in advance.
- This topic was modified 4 years, 6 months ago by originmkt.
May 4, 2020 at 6:21 am #1209422Hey originmkt,
Sorry for the problem, the version of the theme you are running is very old and doesn’t support the PHP version you updated to. Could you try to update to the latest version (4.7.4) to see if that helps please? The update to 4.7.x has to be done manually from the version you are running, please refer to my replies in this thread: https://kriesi.at/support/topic/enfold-4-5-theme-update-update-failed-download-failed-a-valid-url-was-not-pro/#post-1021541
You can either update manually via FTP: https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update, or use a plugin to upload the theme zip file: https://wordpress.org/plugins/update-theme-and-plugins-from-zip-file/
If that doesn’t work then please try to delete the whole theme folder, then replace it with the new version. Make sure that you have backups of the site before starting updating.
After you have updated then try to activate the Classic Editor in the main page of the theme options.
Also please read this after you have updated: https://kriesi.at/documentation/enfold/theme-registration/
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.