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
- This topic has 7 replies, 2 voices, and was last updated 3 years ago by Elise Noromit.
-
AuthorPosts
-
December 30, 2021 at 3:19 pm #342741
haggaiParticipantHi, 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:4315Attachments:
You must be logged in to view attached files.December 30, 2021 at 3:28 pm #342745
Elise NoromitMemberHello,
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 SVGIf 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
December 30, 2021 at 4:32 pm #342760
haggaiParticipantHi, 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
December 30, 2021 at 10:23 pm #342787
haggaiParticipantUpdate: 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
December 30, 2021 at 11:47 pm #342801
Elise NoromitMemberHello,
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
December 31, 2021 at 11:13 am #342854
haggaiParticipantyes, but the support is going to expire soon. Can you extend the support for me due to the circumstances?
January 1, 2022 at 11:25 pm #343004
haggaiParticipanthere’s the credentials thank you
January 3, 2022 at 11:00 pm #343266
Elise NoromitMemberHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register