Skip Navigation

[Resolved] Theme Divi. Issue with header in product page (WooCommerce)

This support ticket is created 2 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 2 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2618837
Captura de pantalla 2023-06-26 065818.png

Tell us what you are trying to do?

I contact your support service because I have an incident related to the use of Toolset with the DIVI theme on my website.
I use Woocommerce on my website and I have set up a custom template for the product page with Toolset. I use Divi as theme. The problem is that the product page does not show the header or footer that the other pages of the Site do.

Is there a similar example that we can see?
Yes.
As you can see, the header and footer are shown correctly, for example, in this section hidden link
However, on any product page, the header and footer are lost: hidden link

What is the link to your site?
hidden link

I attach a screenshot (file "Captura 2023-06-26 065818.png") of the backend of the product page where you can see how a strange area with the DIVI editor appears at the top. There is showing a header that is not the one of our Web.

Thanks.

#2618873

Hello,

Since it is a compatibility issue with Divi theme, but I don't have a copy of Divi in my localhost.

In order to debug this issue, here is a test site with latest version of Toolset plugins + Woocommerce plugin, you can reproduce the same problem in below sandbox website:
hidden link

I need a live website to test and debug.

#2618897

Hi, Luo Yang.
Could I give you access to my production site?
If so, confirm it and I send the user / password using this support ticket.
Thanks.

Pablo.

#2618907

Please backup your website first, then provide your website credentials in below private message box.

I might need to deactivate plugins/theme in your website, thanks

#2618947

Thanks for the details, there should be some PHP errors in your website, see the HTML source code of single product post, for example:
view-source:hidden link

The HTML codes do not end with </html> tag

Please try to follow WP document to get the PHP debug logs:
https://wordpress.org/documentation/article/debugging-in-wordpress/

If you can not get the PHP debug logs.

#2618969

Hi, Luo.

I added the following lines in the wp-config.php file:

--
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );

// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );

// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', true );
@ini_set( 'display_errors', 0 );

// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );

--

I´ve checked the error log of the server:

--
[Mon Jun 26 12:39:02.547547 2023] [proxy_fcgi:error] [pid 866795:tid 140207311509248] [client 90.167.166.43:0] AH01067: Failed to read FastCGI header, referer: hidden link
[Mon Jun 26 12:39:02.547605 2023] [proxy_fcgi:error] [pid 866795:tid 140207311509248] (104)Connection reset by peer: [client 90.167.166.43:0] AH01075: Error dispatching request to : , referer: hidden link
--

but I cannot find any clue about the issue with the header and footer of Divi in the page tha uses Toolset Blocks in WooComerce (hidden link)

I hope you could help us because we have no idea about how to solve it.

Thanks.

#2619233

I have checked again, the PHP debug logs "error_log.txt" in your website folder, I see lots of PHP errors, for example:

[26-Jun-2023 16:24:49 UTC] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function et_core_replace_enqueued_style(), 3 passed in /home/edito/domains/editorialalegoria.com/public_html/web/wp-content/themes/Divi/includes/builder/framework.php on line 653 and at least 5 expected in /home/edito/domains/editorialalegoria.com/public_html/web/wp-content/themes/Divi--NEW/core/functions.php:967
Stack trace:
#0 /home/edito/domains/editorialalegoria.com/public_html/web/wp-content/themes/Divi/includes/builder/framework.php(653): et_core_replace_enqueued_style()
#1 /home/edito/domains/editorialalegoria.com/public_html/web/wp-includes/class-wp-hook.php(308): et_builder_dequeue_minifieds_styles()
#2 /home/edito/domains/editorialalegoria.com/public_html/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /home/edito/domains/editorialalegoria.com/public_html/web/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /home/edito/domains/editorialalegoria.com/public_html/web/wp-includes/functions.wp-styles.php(57): do_action()
#5 /home/e in /home/edito/domains/editorialalegoria.com/public_html/web/wp-content/themes/Divi--NEW/core/functions.php on line 967

It is quite strange, in your website theme folder, there isn't any folder using name "Divi--NEW"

All those PHP errors are outputted from DIVI theme, can you check it with DIVI support, or switch to other theme, here is a list about "Recommended Themes for Toolset-Based Sites":
https://toolset.com/documentation/recommended-themes/

For your reference.