Warning: ltrim() expects parameter 1 to be string
-
I get similar messages on some records and I don’t understand what the problem is.
You can see it here:У Центрі реабілітації бурих ведмедів встановлюють промислові холодильні камери
If you change the language to English, this warning will disappear, but it is there on the Ukrainian section.
The message says that the error is on line 4379 on the path wp-includes/formatting.php
in this section the code is:
$url = str_replace( ‘ ‘, ‘%20’, ltrim( $url ) );WP.com: Unknown
Jetpack: Yes
Correct account: YesThe blog I need help with is: (visible only to logged in users)
-
Hi there,
http://iers.org.ua/ appears to use the WordPress software and is hosted with another company than WordPress.com. In order to get help with your website, we do suggest contacting either your host’s own customer support, or alternatively the community forums of WordPress.org:
To clarify, there are two ways to use WordPress, you can either use the WordPress software downloaded from WordPress.org onto a web host (also known as self-hosted), or you may host your site with us here at WordPress.com. For reference, you can learn more about the differences between WordPress.com and WordPress.org here:
https://support.wordpress.com/com-vs-org/As your site isn’t connected to our system we don’t have a great way of knowing what the issue is, but in general the symbol
20%in code represents a space – since you mention this is only on the Ukrainian pages then it’s possible this is relating to your language switcher plugin! I’d definitely recommend checking in with the WordPress.org community forums, and potentially also any support forum for your language switcher plugin.
- The topic ‘Warning: ltrim() expects parameter 1 to be string’ is closed to new replies.