This topic has 12 replies, 2 voices, and was last updated 7 years, 9 months ago ago by Jack Richardson
I get two fatal errors – one on the homepage and one on the single product page (woocommerce)
FATAL ERROR HOMEPAGE:
Fatal error: Call to undefined function et_translateColumnsCountToSpanClass() in /home/pdht3/public_html/wp-content/themes/legenda/framework/theme-functions.php on line 2147
This line has the following code:
$el_class = WPBakeryShortCode::getExtraClass( $el_class );
$width = ”;//wpb_translateColumnWidthToSpan( $width );
$li_span_class = et_translateColumnsCountToSpanClass( $grid_columns_count );
-last line is 2147
FATAL ERROR SINGLE PRODUCT PAGE:
Fatal error: Call to undefined function etheme_replace_variation_images() in /home/pdht3/public_html/wp-content/themes/legenda/woocommerce/single-product/add-to-cart/variable.php on line 13
This line has the following code:
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
global $woocommerce, $product, $post;
$available_variations = etheme_replace_variation_images($available_variations, 1000, 1000, false);
-Last line of code ($available_variations) is 13.
Looking at the woocommerce status files list, I have the following inconsistencies:
legenda/woocommerce/cart/cart-item-data.php version 2.1.0 outdated. Latest version 2.4.0,
legenda/woocommerce/checkout/form-pay.php version 1.6.4 outdated. Latest version 2.5.0,
legenda/woocommerce/single-product/add-to-cart/variable.php version 2.3.0 outdated. Latest version 2.5.0,
CURRENT INSTALLS:
Wordpress: 4.7.3
Woocommerce 2.6.14
Please help me as fast as you can, since the site https://obuvkitegizdas.com , has been having a moderate amount of traffic that is being lost with every single hour the site is offline. Writing here is a last resort measure, I really tried everything, so I truly appreciate you taking the time to look into this.
Hello,
Please provide us with FTP credentials in private content area.
Regards,
Jack Richardson.
Thank you for the response. I have attached them.
Also, I have customizations written in functions.php , however even with deleting them, the errors continue. For the purpose of investigating the issue, feel free to delete all of my customized coding on that particular file if it makes things easier, as I have a backup.
Any updates? Since the site has been down for 2 business days, I am taking heat for it. Add that to the fact I haven’t received the least direction from you guys of what could it be, I will wait for the rest of this business day for your assistance and then either try to downgrade everything or switch themes. So by the end of the day, please let me know what’s going on.
Can’t switch themes, since my single product layout is interconnected with the theme. So, waiting for updates, thank you.
Hello,
Please take our apologies for delay.
The problem is caused by deprecated post grid visual composer element on your home page http://prntscr.com/ehs6ys . You need recreate it to fix the issue.
Regards,
Jack Richardson.
Oh my God, yes it worked – Thank you so much!! As far as my second issue, with the variable single product:
Fatal error: Call to undefined function etheme_replace_variation_images() in /home/pdht3/public_html/wp-content/themes/legenda/woocommerce/single-product/add-to-cart/variable.php on line 13
This one remains. No images are shown and this big error doesn’t allow the single product to load. If this support is a premium service, I’ll pay. Just need it quick, because I’m about to be fried by this client..
On the woocommerce system status tab, I see that:
legenda/woocommerce/single-product/add-to-cart/variable.php version 2.3.0 is old. Core Version is 2.5.0,
Is the error coming from the fact that woocommerce is working with a different version of that file, a version that the theme doesn’t support?
Hello,
I’ve re-uploaded files in the wp-content/themes/legenda/woocommerce folder. Please check single product page now.
Regards,
Jack Richardson.
I installed an old version of Woocommerce and the issue disappeared. I’m using 2.6.4 and I will keep using it until you guys do an update. Thank you for the time.
Hello,
You are welcome.
Regards,
Jack Richardson.
The issue related to '‘New WordPress Update FATAL ERROR’' has been successfully resolved, and the topic is now closed for further responses