Chat App Enable Error

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
JAYM
User
Posts: 31

Chat App Enable Error

Post by JAYM »

When enabling chat on client side I get this Error.
D:\xampp\htdocs\bio\src\Entity\SimcUser.php(327): Typed property PHPMaker2024\AttSheetv2024\Entity\SimcUser::$profile must not be accessed before initialization
please help thank you ..


arbei
User
Posts: 9384

Post by arbei »

You need to post code near line 327 in SimcUser.php.


JAYM
User
Posts: 31

Post by JAYM »

this is the line 327

public function getProfile(): ?string
    {
        return HtmlDecode($this->profile);
    }

arbei
User
Posts: 9384

Post by arbei »

You may enable Debug and post the complete stack trace.

If you use "proudction" environment, delete the Doctrine cache under "<YourLogFolder>/cache/doctrine".


Post Reply