Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Trying to get property of non-object in Error log relating to Smileys
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2013 - 9:38 am

My error log is full of  

file: /simple-press/forum/content/forms/sp-form-components.php
line: 469
function: sp_post_editor_smileys_options
Notice | Trying to get property of non-object

 

Could you offer any advice as to why this might be there as all smileys seem to be working fine when in a post but I've noticed when a post is quoted in the next post, instead of the smiley in the quote it says:

title="Laugh" alt="Laugh" src="http://www.sitename.co.uk/wp-content/blogs.dir/1/files/forum-smileys/sf-laugh.gif" />

 

Line 469 of sp-form-components.php is:

if (sp_get_auth('can_use_smileys', $spThisForum->forum_id)) $display['smileys'] = true;

Thanks for any help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2013 - 12:46 pm

The notice is pretty unimportant - just a nuisance. Can I ask that you clear the error log and then also go to the forum admin > Toolbox > Housekeeping and run the task to reset the user authorisations. See if that stops the notice message appearing...

I didn't know about the quoted smileys. Haven't seen that or had it reported before. I will open a bug report on that straight away to make sure we get it fixed. Thanks for the info.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2013 - 1:22 pm

Thanks for the reply, done a suggested and by the time I've refreshed the page there are 6 entries in the error log.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2013 - 3:10 pm

6? What version are you using please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2013 - 3:55 pm

Hi,

I am a couple of versions behind, we tried to update a week ago and had to resort to restoring a backup because it wouldn't update correctly. We have several custom made plugins and they require so much testing before an update to check nothing breaks that we have fallen behind. We are running SP5.3.1 on WP3.6

Apologies if this has been resolved in your update, I should have thought of that first.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2013 - 4:02 pm

Well I can not really confirm if that is the case. We DO clean these up whenever we can and we or a user reports them. Mostly - as i say - they are just nuisance value. I asked about the version more because the error log has changed and we no longer create duplicate entries for a notice but consolidate all the instances into one entry.

The permission to enable users to use smileys was added a few versions back and should have initialised itself upon upgrade. Clearly in your case it did not and I was rather hoping the auths reset would perform the same task. You may need to go through the permission sets and re-save each one for this to take effect,

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 14, 2013 - 5:02 am

We are unable here to replicate the problem you mentioned with a smiley in a quoted post. Can you give us any further information? Like which editor for example. Is this every time you try it?

It is just possible that this is because of the older version you are using - there were one or two changes made to quoting an update or two ago. But I was not aware that this was a problem then either.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17344
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79600