korvak
Forum Replies Created
-
I think I found the culprit. Are you using this plugin?
WooCommerce Google Ads Conversion Tracking
If so, update to the new Version 1.8.15
That seems to have solved it for me.Same issue in WooCommerce 5.0. Here’s my server log:
2021/02/18 21:18:45 [error] 9167#9167: *3301049 FastCGI sent in stderr: “PHP message: PHP Warning: ltrim() expects parameter 1 to be string, object given in /www/swiftglobal/public/wp-includes/formatting.php on line 4314PHP message: PHP Warning: ltrim() expects parameter 1 to be string, object given in /www/swiftglobal/public/wp-includes/formatting.php on line 4314PHP message: PHP Warning: ltrim() expects parameter 1 to be string, object given in /www/swiftglobal/public/wp-includes/formatting.php on line 4314” while reading response header from upstream, client: 104.60.28.199, server: https://www.swiftglobal.com, request: “GET /?gclid=Cj0KCQiAvbiBBhD-ARIsAGM48bxAj_ldccjHZ-pasxJMOAblyDEJj9ikvid2SKVtyM46PjS4B_ExZC8aAuFrEALw_wcB HTTP/1.0”, upstream: “fastcgi://unix:/var/run/php7.4-fpm-swiftglobal.sock:”, host: “www.swiftglobal.com”, referrer: “https://www.google.com/”
Forum: Fixing WordPress
In reply to: PHP Warning: ltrim() Problem in WordPress (formatting.php)@organikbesin — Do you mean WooCommerce itself causes that issue? If this is a bug with WooCommerce, I guess it needs to be reported to the WooCommerce team.
Forum: Fixing WordPress
In reply to: PHP Warning: ltrim() Problem in WordPress (formatting.php)Anyone know which plugin is causing this issue? I have the same issue and couldn’t figure it out yet.
But with the user still active as an “administrator” in WordPress, doesn’t that mean they could simply use the “password reset” option to regain administrative access?
Thank you. This is a very popular plugin used by most eCommerce stores. The fix is usually just changing one line of code to pull the correct order number generated by plugin.
Yes, problem solved. Thanks!
For most plugins this is an easy process, simply replace the post-id order number (ie $order->id) with $order->get_order_number() anywhere that the order number is displayed.