The wall is crashing for no reasons !

charles ed Posted in Technical Support 7 years ago

Hi everybody !

My wall is crashing : I see partial template without CSS... But profiles works. I have to disable the wall component so as it can work perfectly but it is not the good solving for me. I didn't change anything since the last time it worked !

The log file told me : [22-Jun-2017 14:17:07 Europe/Paris] PHP Fatal error: Call to a member function profileURL() on boolean in /home/***/ Fakebook/components/OssnWall/plugins/default/wall/templates/wall/user/item.php on line 41

What is happening ? Is it a known bug ? I cannot use my Social network anymore ='(

Thanks for your answers

Replies
French Charles ed Replied 7 years ago

Thank you for the answers, no it works I deleted the post for the member 6 manually in the DB and everything is ok now ! I think it is more a question of bad timing and an unexpected error because I was unable to reproduce the same error again !

Thanks you, now I have others questions in new topics !!

German Michael Zülsdorff Replied 7 years ago

It'll be hard to track down what happend in your case...

Actually Ossn has many in-built mechanisms which recursively delete all items which are chained to each other if the one element gets deleted.
Thus, deleting a member from the admin panel normally would delete all postings, comments, images, etc. of that member, too. And currently I have no idea what went wrong with member No. 6.

Maybe there's a chance to ask your co-admin if he remembers what steps he exactly did from creating the member until deleting?

French Charles ed Replied 7 years ago

No and I am very surprised !! It doesn't exist in mySQL database. An other admin create a profile and posted something, and deleted his profile via the admin panel of OSS.

Will it bug when everybody will delete their profile after they posted something ?

Another thing : I activated DisableSignup component few hours and I suspected he succeeded to create his profile during that moment, maybe it is linked ?

German Michael Zülsdorff Replied 7 years ago

Thank you.
So please use your provider's PHPMyAdmin tool
and check the table named ossn_users
The column guid is representing the member ids. Is the member with guid 6 existing?

Besides all that: Please disable all add on components and switch back to the goblue theme.

French Charles ed Replied 7 years ago

The new error report :

[22-Jun-2017 16:03:55 Europe/Paris] post owner: 6
[22-Jun-2017 16:03:55 Europe/Paris] PHP Fatal error: Call to a member function profileURL() on boolean in /home///components/OssnWall/plugins/default/wall/templates/wall/user/item.php on line 42

French Charles ed Replied 7 years ago
  • This is the last version : 4.4
  • I didn't delete any user since it's a new installation and I just test it with few users.
  • These are my system-info ! Do you see something ?

Thank you for your help !

Ossn System Info

Server Environment

Operating System Linux webd371.90.ha.ovh.net 4.4.67-ovh-vps-grsec-zfs-classid #1 SMP Thu May 11 18:47:35 CEST 2017 x86_64
PHP Environment

Version 5.6.30
Server APi fpm-fcgi
display_errors off

memorylimit 512M
register
globals
postmaxsize 64M
uploadmaxfilesize 128M
default_charset UTF-8
MySQL Environment

Server Info 5.5.55-0+deb7u1-log
Host Info ***.mysql.db via TCP/IP
Protocol Version 10
Ossn Environment

Version 4.4
Site URL http://***
Install Dir /home///
Install Dir Owner [Perms] *** [0705]
Data Dir /home//_data/
Data Dir Owner [Perms] *** [0705]
Site Notification Email ***
Cache State 0
Members 8
Error Reporting off
Ossn Components

Component Active Checksum
OssnProfile 1 4dbc06ea92a10a55016cdaebbc0a5d02
OssnWall 1 5be86824357b61e84dd10c40c7aae71c
OssnComments 1 2d1f0c17f57eda06944271dc4840c29f
OssnLikes 1 b9efd0379629cdd2a0988131cbc13d4e
OssnPhotos 1 302e74705c7a70a2bb83b2920ed59c22
OssnNotifications 1 e07785d78a091ba27b14a0038928eee6
OssnSearch 1 4ebdbf51e113e245abf3b6dab30da5d5
OssnMessages 1 79939471915ef51101c11872c1342d3b
OssnAds 1 6bfbbcbb81dd6727fddf44b70415864f
OssnGroups 1 6f1941e1770967f2499ffc4a62d2d321
OssnSitePages 1 42cfdedb434c9acd5bec6a77223aa387
OssnBlock 1 3b5dffccf12827e52a217497e6245b5e
OssnChat 1 12625b89bc6c1e800972f967191b91c1
OssnPoke 1 1b2ca93ce77ab176bfecff8e19592bff
OssnInvite 1 2ee96ba8cd78a51fa6aaf61e1288762b
OssnEmbed 1 72f12a05af54e92deca6be5306930153
OssnSmilies 1 6651fb3b67d2f76d0af400b5a0d3f46b
signupfields 0 b6399d30e2a2a5e237f01c542a3aee85
aboutuser 0 c251789bb2d80b0f2b4990fe6754596a
userautovalidate 1 4deccc0d5070edd9632ffe381987057e
Blog 0 55fbc1b433d8763bbd03c24e9225ffac
footer-links 0 b5a6866d8d71f61fdc13e67a0599fed3
LatestMembers 1 1491d363ee24dd72b0415765d9691236
ReadMore 0 489b039a65c5f684effa5f4244d3946d
ProfanityFilter 0 3671d5b7d24e0889bf003bf8a7049cf3
Members 0 0b8da5058dff13d55b873c65754bb655
HelloWorld 0 584faeefb05de6c7d53905a973722071
ProfAccess 1 7ab1924fa9acefa2586a1f0b74ff9969
PrivateNetwork 1 8e60bca741f41e070a42fae943a93990
DisableSignup 0 43116c8c15c85c4cc8b66082758436ec
system-info 1 391f99e0fcc8d12da04889172fc60bfb
Ossn Themes

Theme Active Checksum
facebook 1 61e18169a51b7d92029349aed4087c3b
goblue 0 8b0bda5dddd2160a1f982cda855a9943
Ossn Core

Division Checksum
actions 7bd7e84a474d580fe4cba80509b9b01d
classes f6d986e6edbe92264ab2ec8909025c5e
libraries b4f6e35b3c9f28aead011377ca1dbff9
locale f20b4fbf80c814df03860ae3a3d09b0b
system ff69f0b1bf36a22c469cddf7ac2495e1
upgrade e87635f7c7e77c944905e128563ceec0
vendors b00fe05eb5302d596f66125f74d6d16d

German Michael Zülsdorff Replied 7 years ago

Did you delete a member recently?
If so, did you delete the member from your admin panel or manually from the database?
Because it looks like the owner of a wall post no longer exists ...

As you have error logging already enabled, we can start checking the responsible member id like:

<?php error_log('post owner: ' . $params['post']->owner_guid); ?>

Please add that line right before line 41 of

components/OssnWall/plugins/default/wall/templates/wall/user/item.php

and provide new error log.

Indonesian Arsalan Shah Replied 7 years ago

Please give us more information,
1. Which version you are using?
2. if you delete any user, how did you deleted it?
3. Please install this component : https://www.opensource-socialnetwork.org/component/view/1963/system-info and enable it from components page.

French Charles ed Replied 7 years ago

This is the result :

http://imgur.com/a/5HYsJ