-
AuthorPosts
-
June 16, 2022 at 1:52 pm #1355490
Hi I have a problem with this site where the product pages are not showing and I can’t access the backend.
I have:
Disabled all plugins one at a time via FTP
Uploaded the most recent version of Enfold
Please can you take a look and see if you can see the problemJune 16, 2022 at 4:19 pm #1355513Hey fanlokbun,
I can’t load the site at all, it’s only displaying a blank white page. Maybe you could try restoring a backup?
Best regards,
RikardJune 16, 2022 at 5:08 pm #1355526It is there try following this link to a product page. Might need a refresh. I could do with your insight.
June 16, 2022 at 8:21 pm #1355542Hi,
Thanks for that. That page loads, but only the header and title bar. There are no error messages either which could indicate what is going wrong. If you have a recent backup, then I would recommend that you revert to that.
Best regards,
RikardJune 17, 2022 at 1:52 pm #1355608Hi Rikard,
I have tried restoring but I get critical errors. The host 123-reg say the problem is with the child theme I created for Enfold. Please can you look at my child theme functions,php code and see if it has errors. Apparently it is line 23. My child theme is called Orion I.T. Theme:
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/
//set builder mode to debug
add_action(‘avia_builder_mode’, “builder_set_debug”);
function builder_set_debug()
{
return “debug”;
}/* Add Custom class to all ALB elements */
add_theme_support(‘avia_template_builder_custom_css’);/*
Woocommerce 3.0.0 Compatibility Fix
Remove Enfold’s custom functions that conflict with the new image display in WooCommerce 3.0.0
*/
global $woocommerce;
if( version_compare( $woocommerce->version, ‘3.0.0’, “>=” ) ) {
function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) {
return $img;
}
function avia_woocommerce_post_thumbnail_description($img, $post_id){
return $img;
}
}add_action( ‘woocommerce_single_product_summary’, function() {
echo ” – FREE SHIPPING IN THE UK!”;
}, 10);June 17, 2022 at 1:54 pm #1355609Sorry forgot to mention. All plugins are disabled except Woocommerce.
June 17, 2022 at 5:01 pm #1355623Hi,
You could try to remove all your customisations, then add them back one by one, to see which function is causing the problem. I think this is something you shouldn’t need at all:
/* Woocommerce 3.0.0 Compatibility Fix Remove Enfold’s custom functions that conflict with the new image display in WooCommerce 3.0.0 */ global $woocommerce; if( version_compare( $woocommerce->version, ‘3.0.0’, “>=” ) ) { function avia_woocommerce_gallery_thumbnail_description($img, $attachment_id, $post_id, $image_class ) { return $img; } function avia_woocommerce_post_thumbnail_description($img, $post_id){ return $img; } }
Best regards,
RikardJune 17, 2022 at 5:38 pm #1355626Your a star Rikard.
It was that piece of code causing the problems.
Many thanks
You can close this ticketJune 18, 2022 at 4:54 am #1355661Hi,
Glad Rikard could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Product pages not showing and can't access wp-admin’ is closed to new replies.