Support Forum

I have three empty divs ID spNotificationCenter showing.

LH Lee H
Lee H
Member

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

8 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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…

LH Lee H
Lee H
Member

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.

LH Lee H
Lee H
Member

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!

CF Conrad_Farlow
Conrad_Farlow
Member

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

LH Lee H
Lee H
Member

Conrad_Farlow said

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

Busted! 🙂

MP Mr Papa
Mr Papa
Member

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…

LH Lee H
Lee H
Member

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

Odd

Thanks Steve 🙂

MP Mr Papa
Mr Papa
Member

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