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
Subforum Notice
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 5:03 am

I noticed a lot of these notices in the log, anything I can do to stop them?

file: /simple-press/forum/content/classes/sp-forum-view-class.php
line: 557
function: sp_forumview_build_subforums
Notice | Object of class spUser could not be converted to int

Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 5:12 am

This one comes with it.... they occur when I click into a subforum.. I am using sp 5.3.1

file: /simple-press/forum/content/classes/sp-forum-view-class.php
line: 557
function: sp_forumview_build_subforums
Notice | Use of undefined constant _newposts - assumed '_newposts'

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 2, 2013 - 6:14 am

The first one makes no sense to me at all as there is no variable/object named 'spUser' - only one named 'spThisUser'.

The second one however is definitely incorrect and oddly, has been for a little while now. Would only be noticed by those with sub-forums I believe, which probably explains why it has been missed.

Are you up for a small code edit? If so then the plugin file you need is /simple-press/forum/content/classes/sp-forum-view-class.php - and the code line 557 in the function sp_forumview_build_subforums().

See this line of code (557):

if($spThisUser-_newposts && $spThisUser->newposts['forums']) {

That underscore in front of 'newposts' should be a right angle bracket as in:

if($spThisUser->newposts && $spThisUser->newposts['forums']) {

and I will make sure this is fixed up in the next update. Apologies fore that. It is odd how some of these things sit there for months unnoticed!

andy-signature.png
YELLOW
SWORDFISH
Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 8:45 pm

No prob and thanks for the code, that stopped both of the notices from occurring :) . I am having another strange issue with subforums, after I upgraded from 5.3 to 5.3.1 I noticed if I am in group view it doesn't display the last post author and title... maybe I edited something wrong in my sp theme...

subforum.pngImage Enlarger

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 10:00 pm

there wasnt anything in 5.3.1 that affected how subforums behaved (at least not intentionally)...

what does your template function usage look like in group view?  Should be something like this:                                sp_ForumIndexSubForums('unreadIcon=sp_SubForumUnreadIcon.png', __sp('Sub-Forums'), __sp('Browse topics in %NAME%'))

but I will run a quick test and see if I can replicate your look...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 2, 2013 - 10:04 pm

you said group view... but looking at your image, that wouldnt be what group view looks like...

can you elaborate where you are looking?  forum view or subfroum view?

Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 7:08 pm

That's the main forum page (homepage), I have the links that display the sub forums set to display:none;. I'm not sure how to recreate this because it happened upon upgrade but now if I have a forum with subforums and I post to the sub forum no user info appears on main page, I should mention the forum contains sub forums with topics but the forum itself has no topics....

Avatar
js
Member
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 8:58 pm

I recreated the problem on a test site, I will PM credentials so you can take a look if you want. I also have dead link when clicking the icon for "most recent topics with unread posts" on the main forum page but on all the inner forum pages clicking it does open the pop up.... weird.... I am using a new wp theme with sp and have had some bugs so I am assuming the dead "most recent topics with unread posts" is a javascript conflict? Maybe my subforum issue has to do with a wp theme conflict...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 9:09 pm

well the subforum on group view shouldnt look anything like that... but it would look like that on forum view...  and didnt make it back last night to update but can see a problem on forum view and a ticket is open...

as to most recent, better to have different topic... multtiple issues in a single topic will confuse and get lost...  but are you using new page for it or popup?  if latter, probably a js conflict...

see:  http://codex.simple-press.com/.....-conflict/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 3, 2013 - 9:29 pm

if you are going to send something, make sure its to BOTH yellow swordfish and mr papa... AND link back to this topic so we know what its about...

but not sure we need it since I ahve opened a ticket for the subforum view issue...

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625