Support Forum

Last Guests Post details being held and visable to next guest that posts

33 Answers

New Answer

KE Kenn
Kenn
Member

I have seen WP-Optimize and once used it to remove old post revisions on my customers site and it cleared over 100MB of data, its a good tool. I don’t leave it activated though so they don’t click on some of its other settings.

I am confident your issue is with Total Cache not WP-Optimize. Once I have turned off the caching plugin and then then cleared all the browser cache in chrome it isn’t populating the information any more. I tried using supercache before but it definately didn’t work with our site thats why we moved to total cache which now doesn’t seem to work with SimplePress.

I will monitor to see if it still happens here.

CP Craig Pimbley
Craig Pimbley
Member

The latest as far as I am aware? I think it is 5.1.4

YS Yellow Swordfish
Yellow Swordfish
Member

So assuming the cache is now cleared when I reply I see the guest name of ‘Hedi’. Is that what everyone sees?

I was hoping you might be on an earlier version as I know we had an issue at one time but let’s see if everyone sees the same user name…

CP Craig Pimbley
Craig Pimbley
Member

Yeah. Well depending on what post you are on. It’s always the last person who posted.

KE Kenn
Kenn
Member

Yellow Swordfish said
The site – your wp theme or another plugin – is loading an old, out-dated copy of the jQuery library from the google cdn. This codex article explains what this means and what to look for:

http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

It is probably the theme – well it usually is these days anyway. And it is usually pretty easy to correct. A good theme will give you the option!

Worth noting also that you have some javascript somewhere making ajax call to facebook. It makes 3 calls for every page load but only one of them ever gets resolved – the other two keep hanging there at the server. Probably not causing interference but would be worth trying to resolve.

Hi both,

We have been monitoring the forum and it seems that all the pages I have been checking have only had member posts, like Craig said it seems to remember the last person that posted but only within each topic not forum wide.
So even though I also have deactivated all caching plugins this is still happening.

Further to the reply above I have tested the forum running on the default twenty eleven theme and the front end forum toolset still wasn’t working, the forum is slowly filling with posts that we are unable to approve, edit or delete without the toolset, hope you can offer some further advice.

YS Yellow Swordfish
Yellow Swordfish
Member

Kenn & Craig: Sorry to be slow to respond here but I have been checking code and trying to replicate things. I know you have both stated this but can we make this 100% sure we are correct. I don’t want to dive in and try and solve the wrong problem! So can you both do a little testing for me please:

  1. Can you confirm 100% that the guest name and email that pops up in the REPLY form is the same name and email of the LAST post in the topic being replied to. Or at least the last Guest name and email within that topic? Is this the consistent pattern – every time?
  2. Do you see any such behaviour on the NEW TOPIC form at all?

Appreciate your help so we can get to the bottom of this.

Kenn: So if it is not the theme mis-loading jQuery it will be another WP plugin doing so. Have you checked those?

KE Kenn
Kenn
Member

This topic is a good example:

http://www.landlordreferencing.co.uk/discuss/community-forum/government-are-telling-us-that-direct-payment-to-landlords-is-working-didnt-we-already-know-that/

On this topic the last guest that poted was @DeltaFireSafety there have been 2 member posts since yet it is the @DeltaFireSafety details that appear in the reply box when you are not logged in.

 

This topic

http://www.landlordreferencing.co.uk/discuss/community-forum/tenants-deposits/#p5674

Has only had posts from members no guests have replied yet so the reply form appears with no details in it.

 

I have tried creating a new topic and currently doesn’t appear to be pre populating with the last guests that made a topic information.

Hope this helps

——–

With reference to the front end forum toolset it is made more complicated by the lack of consistency.

This topic http://www.landlordreferencing.co.uk/discuss/community-forum/tenants-deposits/#p5676

The top two posts have a full expanding toolset with all icons and links eg.users email and ip etc.

Posts after that point the toolset appears blank, it’s as if it isn’t capturing the information correctly when the post is made. This topic was created after I ran the updates so doesn’t make sense that the top two posts are fine I would expect a new conflict to affect all posts.

CP Craig Pimbley
Craig Pimbley
Member

The name and email that pops up is always the last comment made by a guest (no problems with members). If a guest posts and then a member does, it will be the guests name and email that shows (examples below).

Last post guest: http://www.searchbodyart.com/forum/general-tattoo-discussion-1/why-does-my-tattoo-itch/
Shows guests name (tony) and email.

Last post member: http://www.searchbodyart.com/forum/general-tattoo-discussion-1/which-hurts-more-tattoos-or-piercings/
Last post by Dave (member). Shows last guests name (Hedi) and email.

The new topic seems fine.

YS Yellow Swordfish
Yellow Swordfish
Member

Odd. I can see no actual flaw in the logic but would either or both of you be willing to make a small code edit to a core SP file?

YS Yellow Swordfish
Yellow Swordfish
Member

No guarantees on fixing it. I am really trying to find out where it is happening and this is the most likely spot even if the logic looks sound to me. But this change will do no harm…

OK – the file you need to look at is: /simple-press/sp-api/sp-api-class-user.php.

Right at the bottom is function named sp_get_user().

Locate this line of code right at the top:

if(!array_key_exists($userid, $USERS)) {

And replace it with this line please:

if(!array_key_exists($userid, $USERS) || $userid==0) {

Let’s find out of that makes any difference!

KE Kenn
Kenn
Member

I agree seems to working. Thanks very much.

 

Would you be able to offer any further suggestion son the front forum toolset.

MP Mr Papa
Mr Papa
Member

odd. not sure we fully understand it, but the change wont hurt anything so we will get it in the next update.

thanks for the update!