Weird Behavior from SMF on our Site...

Started by xiphirx, October 09, 2010, 01:20:12 PM

Previous topic - Next topic

xiphirx

Hello SMF users and developers,

I have been a long time user of SMF, and I recently took a job to help develop a website. I chose SMF for our forum, and started to develop with it. Everything has been great so far with the ssi and all, but I'm noticing some odd behavior...

I'll list them:

1) When you login using the home page (not the forum index, but a custom portal) it always states that your password is wrong, even if it is right...
2) The recent posts ssi include on the homepage indicates that topics you've seen are new, and topics you haven't seen are not new...
3) When you view "unread replies", nothing appears, while there should be posts appearing. Similarly, the unread link returns nothing, when, in fact it should. Adding onto this, I have to click "Click here to try all unread topics" to get the results that unread should have garnerd...

I may be missing a ssi include that sets up base variables... not sure. The custom portal is a page within SMF, as in, you access it by visiting forum/index.php?action=home

The website url is fortheswarm (dot) org (I can't post links, good spam measure ;) ) if that's needed.

Any help is appreciated.

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

xiphirx

Quote from: xenovanis on October 09, 2010, 04:48:41 PM
Hello :)

Where's the SMF copyright?
http://www.simplemachines.org/about/copyright.php
http://www.simplemachines.org/about/license.php

Quote from: xiphirx on October 09, 2010, 01:20:12 PM
The website url is http://fortheswarm.org (I can't post links, good spam measure ;) ) if that's needed.

At the bottom, where it usually is...

I believe you aren't seeing it because of the toolbar that appears, clicking on the bottom right button collapses it ;)

xenovanis

Yeah, well it should be visible at all times.
"Insanity: doing the same thing over and over again and expecting different results."


xenovanis

Thank you :) I must say your theme is awesome.

Now, I noticed that the url for the frontpage is http://fortheswarm.org/
The link to the forum refers to http://www.fortheswarm.org/

However, all links on the forum refer to http://fortheswarm.org/

In Admin -> Server Settings -> Feature Configuration, is the option "Use subdomain independent cookies" enabled?
"Insanity: doing the same thing over and over again and expecting different results."

xiphirx

Quote from: xenovanis on October 09, 2010, 05:28:10 PM
Thank you :) I must say your theme is awesome.

Now, I noticed that the url for the frontpage is http://fortheswarm.org/
The link to the forum refers to http://www.fortheswarm.org/

However, all links on the forum refer to http://fortheswarm.org/

In Admin -> Server Settings -> Feature Configuration, is the option "Use subdomain independent cookies" enabled?

Yes it is checked.

xenovanis

Does this behaviour also happen when using the default theme?
"Insanity: doing the same thing over and over again and expecting different results."

xiphirx

I can't really test all of the problems with the default theme since most of them are caused by theme specific things...

I was able to test the unread and unread reply problems, and they work normally using the default theme...

EDIT: I just reverted back to the normal theme... they function normally on that theme as well... I have a feeling I have messed up cookies.

Jakob Fel

Try clearing those cookies anyways; maybe that will help.

Also, if the SMF copyright is hidden, doesn't it render your forum dysfunctional?
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

xiphirx

Quote from: Jaekob Caed on October 09, 2010, 08:24:10 PM
Try clearing those cookies anyways; maybe that will help.

Also, if the SMF copyright is hidden, doesn't it render your forum dysfunctional?

It wasn't hidden through code, the view of it was obscured by the toolbar on the site.

Anyway, I have cleared cookies, but I am still getting the same problems...

Jakob Fel

Okay, I thought you meant that the code made it invisible.

Also, sorry that I can't think of anything else to help you, other than if you have a script blocker such as NoScript, make sure your site is on the trusted list, as I had to add it to the list, or else it didn't look quite right.
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

xiphirx

Quote from: Jaekob Caed on October 09, 2010, 09:09:08 PM
Okay, I thought you meant that the code made it invisible.

Also, sorry that I can't think of anything else to help you, other than if you have a script blocker such as NoScript, make sure your site is on the trusted list, as I had to add it to the list, or else it didn't look quite right.

I do not have an extension like that...

Jakob Fel

Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

xenovanis

What are your cookie and sessions settings, apart from having subdomain independent cookies being enabled?
"Insanity: doing the same thing over and over again and expecting different results."

xiphirx

Quote from: Jaekob Caed on October 09, 2010, 10:33:30 PM
What browser are you using?

Firefox 3

Quote from: xenovanis on October 10, 2010, 02:41:32 PM
What are your cookie and sessions settings, apart from having subdomain independent cookies being enabled?

Enable local storage: false
Cookie name: SMFCookie46

Those are all of the settings I found...

I am using SSI's on custom forum action pages (?action=mypage) ... Could this be the cause?

Jakob Fel

It could be either, but I wouldn't think it would be Firefox. I am now leaning more towards your cookie settings rather than the browser. I would assume (Not sure) that you would want to put:

Enable local storage: true

I don't think your SSIs are the issue, but I may be wrong.
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

xiphirx

Quote from: Jaekob Caed on October 11, 2010, 05:30:31 PM
It could be either, but I wouldn't think it would be Firefox. I am now leaning more towards your cookie settings rather than the browser. I would assume (Not sure) that you would want to put:

Enable local storage: true

I don't think your SSIs are the issue, but I may be wrong.

Quote from: Admin Panel
Enable local storage of cookies
(SSI won't work well with this on.)

Is it safe to turn it on? Won't all of my SSI's stop working?

And it seems like I need local storage to be off in order to use subdomain independent cookies...

Jakob Fel

Oh right, I forgot about that. :P Well, sorry, but I'm out of suggestions at the moment. I'll come back if I think of anything. ;)
Freelance writer and advocate for security, privacy & DRM-free distribution
Support and Community Management at SMFNew Free Forum Hosting

xiphirx

I have just thought of something.

I'm not too savvy on the method modifications use to modify files, but I believe it is based on a fixed line number. I created a custom theme, and then installed around 3 different modifications... Could this be the cause? Off the top of my head, I installed the custom profile fields mod, the stop forum spammer mod, and the aeva mod. The forum wasn't rendered dysfunctional, but it may have replaced an important line... I will update this topic with my theme templates if anyone is willing to go through and see if there's anything missing... (probably not)

Advertisement: