White page - error with OssnMessages

Franck Masson Posted in Technical Support 8 months ago

If using OSSN:
OSSN version: 8.1
Website URL (optional):

If facing any bug:
PHP Version : 8.2
Error Log if any:

[29-May-2025 21:03:35 Europe/Paris] PHP WARNING: 2025-05-29 21:03:35 (CEST): "Undefined property: stdClass::$wwww" in file /home/txbvgje/www/system/handlers/errors.php (line 30)
[07-Jul-2025 07:05:06 Europe/Paris] [#1751864706|24FDAF1CCB0140A10DDEECC7DD614C81] Error: Class "OssnMessages" not found in /home/txbvgje/www/components/OssnChat/classes/OssnChat.php:11
Stack trace:
#0 /home/txbvgje/www/components/OssnChat/ossn_com.php(13): require_once()
#1 /home/txbvgje/www/classes/OssnComponents.php(254): include_once('/home/txbvgje/w...')
#2 /home/txbvgje/www/libraries/ossn.lib.components.php(70): OssnComponents->loadComs()
#3 /home/txbvgje/www/system/start.php(40): include_once('/home/txbvgje/w...')
#4 /home/txbvgje/www/index.php(12): require_once('/home/txbvgje/w...')
#5 {main}
[07-Jul-2025 07:05:06 Europe/Paris] PHP WARNING: 2025-07-07 07:05:06 (CEST): "Undefined property: stdClass::$wwww" in file /home/txbvgje/www/system/handlers/errors.php (line 30)

When I disable (renaming) OssnMessages, the site appears, but showing an error:
ossn:exception:title
#1751864706|24FDAF1CCB0140A10DDEECC7DD614C81

Renaming OssnChat to -OssnChat gives again a white page.

/!\ I reuploaded a backup of all php files from when it worked 3 weeks ago: same issue.

Browser: all
OS (Window/Linux/Android/iOS/Mac): all

Replies
us Angelica Rhodes Replied 3 months ago

The errors suggest the component load order is breaking, not the files themselves. If OssnMessages isn’t being detected, OssnChat will fail every time since it depends on it. I’d check whether the component folder names and ossn_com.xml files still match exactly geometry dash lite, because a small mismatch can cause OSSN to skip loading a component even if the PHP files are present. Have you already tried clearing the OSSN cache and regenerating it?

Byelorussian Franck Masson Replied 7 months ago

OMG there was something indeed in the cache that was blocking the site!!!!
Thanks a lot man! Where is your buy me a coffee link!?

German Michael Zülsdorff Replied 8 months ago

Ok,
most likely you applied code changes with Ossn cache still enabled, you did a mistake and that mistake gets cached.
So step 1 is to asure that cache is off in the database
Start PhpMyAdmin, enter the ossn_site_settings table and make sure the cache value looks like in my screenshot
Image
If not, then change it from 1 (one) to 0 (zero)

Step 2 is to disable the component (DisableMemberSelfValidating) that most likely was causing the initial crash
So enter the ossn_components table, find the corresponding row and set it to 0 the same way (as i did in my example here)
Image

If you are not sure if other components may be involved too, then disable them the same way...

Now try to call your site again. If it's still crashing, check and provide the error_log again

Byelorussian Franck Masson Replied 8 months ago

Ow ok I understand.
So 2 days ago, it suddenly gave a white page when I was editing texte displayed into another component.
Step 1: I reverted my changes in this plugin but still white page.
Step 2: troubleshooting by disabling one by one the components and then I realized that by renaming OssnMessages to -OssnMessages, white page changed to an OSSN page with the error code. Ok.
Step 3: I looked into the changes performed in the php pages and nothing found
Step 4; so what I did is reupload a full backup of pages to my sftp from the date I had no issue bit didn't resolve
Step 5: I restored a 3 days le DB and even with this, site is still down

So here I am.

German Michael Zülsdorff Replied 8 months ago

Franck,
you sent us that error_log
and you wrote you renamed OssnMessages and OssnChat

I was just trying to understand,
so I did it as you did, and voila: got the same error - my site was down and of course I had NO access to my admin panel any more.

Okay, the reason for that error is explained now.

So you need to undo the renaming (make sure that OssnMessages and OssnChat are back in place
as any other file you may have renamed.

But I'm still confused because you wrote: "I reuploaded a backup of all php files from when it worked 3 weeks ago: same issue."

So actually, OssnMessages and OssnChat should be back in place already. Or did you do that renaming after uploading your backup?
Next question: Did you restore the PHP files only, or did you restore a backup of your database, too?

Byelorussian Franck Masson Replied 8 months ago

Thanks for the input Michael.
Is your OSNS also down or do you also get the error?

on renaming/deleting OssnMessages while this component is still marked as ENABLED on my administrator/components page.

Do you mean you have an access to your admin panel, even with this error(s)? I DON'T even have :-(

Please explain what you're trying to achieve.

I have a doubt: you talk to me?
Because, when this happened, I was editing the DisableMemberSelfValidating component and then something made that the website went all white. And the modification I made was about text displayed after creating an account.

This makes me think: is there somewhere a file where it's coded if a component is activated or disactivated? Maybe I can try to fix this way?

And, nobody from OSSN team available for any help?

Thx-

German Michael Zülsdorff Replied 8 months ago

I can confirm getting exactly the same issue

Error: Class "OssnMessages" not found in /components/OssnChat/classes/OssnChat.php:11

on renaming/deleting OssnMessages while this component is still marked as ENABLED on my administrator/components page.

But why the hell would I do that?

ALL files of an Ossn component are expected to be in place as long as this component has been enabled from your adminstrator->components page. Some components even rely on other components to be in place and enabled.
Please explain what you're trying to achieve.