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
I have three empty divs ID spNotificationCenter showing.
Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2011 - 6:49 pm

When doing a view source earlier I noticed a rogue div right before my doctype??

Then I noticed I had two others. I believe the one at the beginning of the forum output is the only one that should be there.

Here's the one at the top

<div id="spNotificationCenter"></div><!DOCTYPE html> 
<html dir="ltr" lang="en-US"> 
<head> 
<meta charset="UTF-8" />

Then this one at the start of SP display

<!-- Simple:Press display start --> 
<div id="spMainContainer">
<a id="spForumTop"> </a>
<div id="spNotificationCenter"></div><div class='spPlainSection'>

and finally this one at the beginning of my stats

<div class='spColumnSection spLeft spOnlineStats' style='width: 40%; min-height: 0;'> 
<div id="spNotificationCenter"></div>
<p class='spMostOnline'><span>Most Users Ever Online: </span>

I added newlines for easier reading.

The last one can be eliminated if I comment out sp_OnlineStats in spFoot.php in the default template.

I've tried nailing this down before reporting but I'm at a loss. I'm suspecting javascript since something is inserting the div at the top of the page even before the doctype. sp-forum.js maybe? jQuery is messing with spNotificationCenter a bit.

Heck I dunno LOL

Let me know what I can do to help.

 

Edit:

This is occurring in this environment:

WP plugins: none other then SP

SP plugins: none

WP Theme: Twenty-Ten

SP Theme: Default

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2011 - 10:53 pm

how are you seeing these??  the empty div is needed, its where the green (or red) notification messages come up when needed... they are empty because not used until a message...

the second one is the 'proper' location for it...

I ask how you are seeing them because I cannot see that here or on my test sites...

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Sep 16, 2011 - 10:59 pm

I couldn't see them here either. I snuck over to Conrads test site and didn't see them. But didn't know how current he is. I'm seeing them while viewing source on any forum page of my test site. But not on regular pages. I've disabled all plugins SP and WP with the exception of Simple Press itself.

I dunno.

I'll play with it more tomorrow and see. I'm running out of steam so tonight is out.

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 2:11 am

Just past 3:00 am here and I found the deal. Hate this tunnel vision, messes with my beauty sleep cool

 

It's caused from a couple database queries that are crapping out. Apparently the recent changes in sp-db-statistics.php are causing this. I don't have a column "pageview" in my wp_sftrack table so the empty divs are from error/debug notifications that I guess I'm not seeing.

Here's the errors from my SP log:

Sep 17th, 2011

2:39 am

database file: /problem-with-post-edit-buttonome/leeh/public_html/wp-content/plugins/simple-press/forum/content/sp-common-view-functions.php

line: 1835

function: sp_get_members_online

error: Unknown column 'pageview' in 'field list'

SELECT trackuserid, display_name, user_options, forum_id, topic_id, pageview FROM wp_sftrack JOIN wp_sfmembers ON wp_sftrack.trackuserid = wp_sfmembers.user_id ORDER BY trackuserid

Sep 17th, 2011

2:39 am

database file: /problem-with-post-edit-buttonome/leeh/public_html/wp-content/plugins/simple-press/sp-startup/forum/sp-forum-support-functions.php

line: 157

function: sp_track_online

error: Unknown column 'pageview' in 'field list'

INSERT INTO wp_sftrack (trackuserid, trackname, forum_id, topic_id, trackdate, pageview) VALUES (0, '192.168.0.103', 0, 0, '2011-09-17 02:39:39', 'group')

I can go to bed now. wink

Goodnight!

Avatar
Conrad_Farlow
Sheffield, UK
Member
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 3:33 am

I would have been on 7091 when you last logged in Lee so fairly up to date.

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 8:22 am

Conrad_Farlow said

I would have been on 7091 when you last logged in Lee so fairly up to date.

Busted! 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 8:59 am

an upgrade for build 7022 added the column to the track table...  so not sure how you would have missed that upgrade...

I would either go look at the upgrade script for that build and do it manually...  or go to forum - toolbox - toolbox and manually change the build number to 7021 (remember the checkbox too) and let the upgrade run again noting any issues...  the two upgrades that will run wont matter if already done...

Avatar
Lee H
Coastal New England (USA)
Member
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 9:46 am

I was skeptical, but I changed the build number and it upgraded. All seems well now.

Odd

Thanks Steve 🙂

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 17, 2011 - 12:23 pm

yeah, would be interested in why the original upgrade didnt take?  it was around the time of the manual build number update so its possible that interacted some way...  one of the hazards of alpha, I guess... wink

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: 17364
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625