Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1039431

    we upgraded PHP on a site with woocommerce from 5.6 to 7.2 and on certain pages (see link in private) we started getting these error messages:

    PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function avia_woocommerce_gallery_thumbnail_description(), 2 passed and exactly 4 expected in /nas/content/live/gadragonfly/wp-content/themes/dragon-child/functions.php:61\nStack trace:\n#0 [internal function]: avia_woocommerce_gallery_thumbnail_description(‘<div data-thumb…’, ‘2454’)\n#1 /nas/content/live/gadragonfly/wp-includes/class-wp-hook.php(286): call_user_func_array(‘avia_woocommerc…’, Array)\n#2 /nas/content/live/gadragonfly/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘<div data-thumb…’, Array)\n#3 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/templates/single-product/product-image.php(47): apply_filters(‘woocommerce_sin…’, ‘<div data-thumb…’, ‘2454’)\n#4 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/includes/wc-core-functions.php(208): include(‘/nas/content/li…’)\n#5 /nas/content/live/gadragonfly/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1368): wc_get_template(‘single-product/…’)\n#6 in /nas/content/live/gadragonfly/wp-content/themes/dragon-child/functions.php on line 61

    We had to roll back since half the site did not work so testing is going to be difficult. If you can provide potential fixes or ask questions we would appreciate the help as they are forcing upgrades early next year.

    Thanks!

    • This topic was modified 5 years, 11 months ago by kylerollins.
    #1039819

    Hey Kyle,

    Did you add any customisations which could cause that problem? Which version of WooCommerce are you running? Would you be able to create a staging version with 7.2 so that we can see the actual problem?

    Best regards,
    Rikard

    #1040877

    Hi Rikard,

    It was a custom code added to the child theme that was causing the problem.
    It’s fixed.

    Thanks for your help.

    #1040915

    Hi kylerollins,

    Glad that it’s fixed :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘upgrading PHP on WP Engine from 5.6 to 7.2 causes 500 fatal error on some pages’ is closed to new replies.