• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Deprecated: trim(): error after upgrade to PHP 8.1

geekowl

New member
Feb 19, 2020
19
3
3
Hi guys,
I have a huge problem with php since upgrading to php version 8.1. on my wordpress.
Since I am using many of the nulled plugins and I am afraid to go to any other help forum

The error message appears when I go to the wp-admin page:
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /mnt/web210/e3/53/511737053/htdocs/STRATO-apps/wordpress_05/app/wp-includes/class-wp-user.php on line 211 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web210/e3/53/511737053/htdocs/STRATO-apps/wordpress_05/app/wp-includes/class-wp-user.php:211) in /mnt/web210/e3/53/511737053/htdocs/STRATO-apps/wordpress_05/app/wp-includes/pluggable.php on line 1435 Warning: Cannot modify header information - headers already sent by (output started at /mnt/web210/e3/53/511737053/htdocs/STRATO-apps/wordpress_05/app/wp-includes/class-wp-user.php:211) in /mnt/web210/e3/53/511737053/htdocs/STRATO-apps/wordpress_05/app/wp-includes/pluggable.php on line 1438

The line 211 in the class-wp-user.php file is attached as image (cannot find anything wrong)
The line 1438 in the pluggable.php is attached also

The website is sanfranciscopark.com

I have no knowledge of php and I am lost :(

Can you please help me?
 

Attachments

  • Screenshot 2024-02-03 at 15.42.26.png
    Screenshot 2024-02-03 at 15.42.26.png
    28.2 KB · Views: 7
  • Screenshot 2024-02-03 at 15.43.26.png
    Screenshot 2024-02-03 at 15.43.26.png
    72.1 KB · Views: 7
the only ways is downgrade or search newest plugin so they works on newer php

if you want to waste some money, maybe i can help you with cloning current plugin to support newest php
 
the only ways is downgrade or search newest plugin so they works on newer php

if you want to waste some money, maybe i can help you with cloning current plugin to support newest php
Where do you get the info from that it is a plugin causing the problem?
 
Where do you get the info from that it is a plugin causing the problem?
well i cant tell yet since i didn't touch the system myself...

but on past back where i just run all my sites on php 7.2 and 7.4 only
when i upgrade on php 8 (and now new 8.1 appear)
it's always broken

my WP sites is worse... the main source of money from safelink
i can't even login
and the sites error

after realizing the issue
i fix it one by ones
takes me 2 days, and it's woking as it used before......

learning note is
don't upgrade system if the apps didn't support it
 
Sorry but I guess your translation is not the best and of what i understand you replies are not the most helpful

Does anyone else have an idea?
 
You need to rewrite your code, example:

PHP:
$var2 = '';

if(!empty($var)) $var2 = trim($var);
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock