A A A
Forum Scope


Match



Forum Options



Min search length: 3 characters / Max search length: 84 characters
Forum Login
Lost password?
general-topic
Trying to get property of non-object in Error log relating to Smileys
...View Related Tags
Avatar
Kenn
Somerset, UK
171 Posts
(Offline)
1
Dec 12, 2013 - 9:38 am
Print

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

16436 Posts
(Offline)
2
Dec 12, 2013 - 12:46 pm
Print

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
171 Posts
(Offline)
3
Dec 12, 2013 - 1:22 pm
Print

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

16436 Posts
(Offline)
4
Dec 12, 2013 - 3:10 pm
Print

6? What version are you using please?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Kenn
Somerset, UK
171 Posts
(Offline)
5
Dec 12, 2013 - 3:55 pm
Print

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

16436 Posts
(Offline)
6
Dec 12, 2013 - 4:02 pm
Print

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

16436 Posts
(Offline)
7
Dec 14, 2013 - 5:02 am
Print

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: America/New_York
All RSSShow Stats
Administrators: Blues Dancer, Simple Press, SP Community Support, Marcus (Simple:Press)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 630
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Newest Members:
Lorena Affleck
samantardh
PatrickAlawl
Hannelore Gaither
Margarito Nowacki
Elwood Mcclendon
samantaerx
Larue Cordeaux
Jerrold Stockman
Forum Stats:
Groups: 7
Forums: 17
Topics: 10071
Posts: 79393

 

Member Stats:
Guest Posters: 608
Members: 16976
Moderators: 0
Admins: 4

Most Users Ever Online
1170
Currently Online
Guest(s)
1
Currently Browsing this Page

1 Guest(s)