Home Forums WoodMart support forum Compare Bug: ( ! ) Warning: ltrim() expects parameter 1 to be string, array give

Compare Bug: ( ! ) Warning: ltrim() expects parameter 1 to be string, array give

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #342741

    haggai
    Participant

    Hi, I clicked the compare button and received this error message.

    Please advise.

    ( ! ) Warning: ltrim() expects parameter 1 to be string, array given in C:\wamp64\www\DrVitamin\wp-includes\formatting.php on line 4315
    Call Stack
    # Time Memory Function Location
    1 0.0001 412968 {main}( ) …\index.php:0
    2 0.0002 413240 require( ‘C:\wamp64\www\DrVitamin\wp-blog-header.php’ ) …\index.php:17
    3 1.1664 32514464 require_once( ‘C:\wamp64\www\DrVitamin\wp-includes\template-loader.php’ ) …\wp-blog-header.php:19
    4 1.1819 32676656 include( ‘C:\wamp64\www\DrVitamin\wp-content\themes\woodmart\page.php’ ) …\template-loader.php:106
    5 2.6839 39386872 woodmart_get_the_content( ) …\page.php:28
    6 2.6842 39452432 apply_filters( ) …\template-tags.php:475
    7 2.6842 39452832 WP_Hook->apply_filters( ) …\plugin.php:189
    8 2.6852 39456712 do_shortcode( ) …\class-wp-hook.php:303
    9 2.6852 39460896 preg_replace_callback ( ) …\shortcodes.php:228
    10 2.6853 39461528 do_shortcode_tag( ) …\shortcodes.php:228
    11 2.6853 39461528 woodmart_compare_shortcode( ) …\shortcodes.php:356
    12 2.6853 39478040 woodmart_get_compared_products_table( ) …\compare.php:23
    13 2.7453 39530128 woodmart_compare_display_field( ) …\compare.php:355
    14 2.7464 39530648 esc_url( ) …\compare.php:471
    15 2.7464 39530648 ltrim ( ) …\formatting.php:4315

    Attachments:
    You must be logged in to view attached files.
    #342745

    Hello,

    Please deactivate all the plugins except these ones:

    Slider Revolution
    WPBakery Page Builder or Elementor
    Woodmart Core
    Contact Form 7
    MailChimp for WordPress
    WooCommerce
    Safe SVG

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.

    Best Regards

    #342760

    haggai
    Participant

    Hi, the site has no other plugins other than the ones you mentioned. However, by looking at the screenshot you could see that the site is installed locally via WAMP, so I believe you cannot access it.

    I’ve just started working with Woodmart and already drowning in bugs an issues, which cannot be resolved due to the circumstances.

    Please advise whether you can extend my support, as I have not used the theme to date, and now that I’ve started using it, we have multiple unresolved issues which require that I upload the site to a hosting service.

    Thank you in advance

    #342787

    haggai
    Participant

    Update: The field which causes the compare to crash is the field which is assigned as the brand attribute.

    Does this give any clue?

    Thank you

    #342801

    Hello,

    I cannot give you any suggestions without checking the settings. Could you postpone this issue till the site is alive and I can check it?

    Best Regards

    #342854

    haggai
    Participant

    yes, but the support is going to expire soon. Can you extend the support for me due to the circumstances?

    #343004

    haggai
    Participant

    here’s the credentials thank you

    #343266

    Hello,

    I requested admin rights for the user you provided, however, I got no response from you. I need full access to the admin panel to test and detect the reason.

    Best Regards

Viewing 8 posts - 1 through 8 (of 8 total)