Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 807

    We 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

    #1368857

    Hey,

    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,
    Yigit

    #1369123

    Good 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?

    #1369318

    Hi,

    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,
    Ismael

    #1369545
    This reply has been marked as private.
    #1369755

    Hi,
    Please include admin login details, so we can examine.

    Best regards,
    Mike

    #1369945
    This reply has been marked as private.
    #1370256

    Hi,

    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,
    Ismael

    #1370273

    Hi
    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 displayed

    At 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 regards

    #1370416

    Hi,

    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,
    Ismael

    #1370438
    This reply has been marked as private.
    #1370443

    Hi,
    We will leave this thread open to hear back from you after you have created a staging site.

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.