
-
AuthorPosts
-
October 12, 2022 at 12:45 pm #1368566
Good morning,
We have a problem on our client’s site. Last week we installed the “Polylang for woocommerce” plugin, but activating it an error appeared in the display of the products tab. In particular, the message is the following:
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php:807 Stack trace: #0 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/class-wp-hook.php(307): avia_woocommerce_breadcrumb(Array, Array) #1 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/framework/php/class-breadcrumb-trail.php(419): apply_filters(‘avia_breadcrumb…’, Array, Array) #3 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/functions-enfold.php(664): avia_breadcrumb_trail->get_trail(Array) #4 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php(920): avia_title(Array) #5 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/class-wp-hook.php(307): avia_woocommerce_before_mai in /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 807We immediately contacted the plugin support but talking to them we understood that it’s a problem related to the site’s breadcrumbs. On the page “Page/Post > Layout > Title Bar Settings” we had set the option “Header title and breadcrumbs” to “View title and breadcrumbs”.
Changing the option to “Show title only” the error no longer appears. We would need to fix this though, as we would like to put the “Display title and breadcrumbs” option. Can you please advise us what to do?
If you need an email to contact us, I ask you to write to the following address: (Email address hidden if logged out)
Thank you
October 14, 2022 at 12:42 pm #1368857Hey,
Thanks for contacting us!
Could you please create a testing environment where we can see the issue and post temporary WP admin and FTP logins here privately so we can look into it? :)
Best regards,
YigitOctober 17, 2022 at 4:06 pm #1369123Good morning,
At the moment the actual site is online and we no longer have the site in staging. Can you solve the problem in any other way?October 19, 2022 at 3:57 am #1369318Hi,
Thank you for the update.
What is the current version of the theme? We checked the site but we are not sure if it contains version 5.1.2. Please provide the login details in the private field so that we can check the issue further.
Best regards,
IsmaelOctober 20, 2022 at 9:33 am #1369545This reply has been marked as private.October 21, 2022 at 6:37 pm #1369755October 24, 2022 at 10:25 am #1369945This reply has been marked as private.October 26, 2022 at 8:32 am #1370256Hi,
Thank you for the info.
Where are you getting the error again? We checked a few of the products but we didn’t get the same error. (see private field)
Best regards,
IsmaelOctober 26, 2022 at 9:55 am #1370273Hi
well, I’ll explain again the problem, to help you understand it better.We have installed and activated the “Polylang for woocommerce” plugin: then, the following error appeared in the display of each product sheet (both back-end and front-end).
Fatal error: Uncaught Error: Object of class WP_Error could not be converted to string in /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php:807 Stack trace: #0 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/class-wp-hook.php(307): avia_woocommerce_breadcrumb(Array, Array) #1 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array) #2 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/framework/php/class-breadcrumb-trail.php(419): apply_filters(‘avia_breadcrumb…’, Array, Array) #3 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/functions-enfold.php(664): avia_breadcrumb_trail->get_trail(Array) #4 /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php(920): avia_title(Array) #5 /home/customer/www/cbn.digitalsfera.it/public_html/wp-includes/class-wp-hook.php(307): avia_woocommerce_before_mai in /home/customer/www/cbn.digitalsfera.it/public_html/wp-content/themes/enfold/config-woocommerce/config.php on line 807
We found that the problem only occurs when activating Enfold breadcrumbs.
Then, from Enfold “Page / Post> Layout> Title Bar Settings”:– By setting “Display Title and breadcrumb” -> the above error is displayed
– By setting “Show title only” -> the error is not displayedAt the moment the error is not displayed cause the site is online and we have set “Show title only” as breadcrumb. However, we need you to fix the bug above cause we would like to go back to the “Display title and breadcrumb” option for SEO reasons.
So, obviously at the moment the site is not in error, because we have deactivated the breadcrumbs (the site is not in staging but it is online). No longer having a test environment, are you able to verify this problem independently on your own environment?
Hope that you understand better the situation
Waiting for you replay, best regardsOctober 27, 2022 at 10:01 am #1370416Hi,
Thank you for the clarification.
We are not getting the same error on our end using Polylang and the latest version of the theme. Is there a staging version of the site? We would like to check the issue further and we would like to avoid breaking anything in the live site while testing.
Best regards,
IsmaelOctober 27, 2022 at 11:56 am #1370438This reply has been marked as private.October 27, 2022 at 12:20 pm #1370443 -
AuthorPosts
- You must be logged in to reply to this topic.