SSI problem, getting different from localhost

Started by floridaflatlander, April 26, 2011, 04:52:26 PM

Previous topic - Next topic

floridaflatlander

I getting ready to start my forum and on my localhost my ssi looks like the below which is what I want when a guest views a file.
Welcome, Guest. Please login or register.


However when I put my main index page online I get the below adding to the above "Did you miss your activation email?" which is what I don't want.
Welcome, Guest. Please login or register.
Did you miss your activation email?

I'm using echo '<h5>';ssi_welcome(); echo' '; ssi_logout();echo '</h5>';

Any ideas about what is happening or what I could have done to cause this?

Thanks
S

Kays

Hi, did you change the path to SSI.php when you uploaded that file to your site?

Something to check/set  is to go into the Admin CP> Server Settings > Cookies and Sessions and verify the following:

Enable local storage of cookies - unchecked
Use subdomain independent cookies - checked
Use database driven sessions - checked

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

floridaflatlander

Thanks for the reply

Quote from: Kays on April 26, 2011, 05:14:34 PM
... did you change the path to SSI.php when you uploaded that file to your site?

No and the ssi works as far as logging in and out. I made my localhost site with the same file structure as my online site.

Quote from: Kays on April 26, 2011, 05:14:34 PM
Enable local storage of cookies - unchecked
Use subdomain independent cookies - checked
Use database driven sessions - checked

Done

It didn't work, the "Did you miss your activation email?" is still there.

Thanks again

Kays

Yah, ignore that that first question since it's sotra working.

You are not being recognised as being logged in and normally those settings should do it.

Which version SMF 2.0?

Where is that file located in relation to the forum?

If you go to the ssi_examples.php page for your forums. What shows there? Are you shown as  logged in or not?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

floridaflatlander

I'm using 2.0 R5

It doesn't show when I'm logged in, only when I'm not logged in and I'm a guest.

However the "Did you miss your activation email?" doesn't show on my localhost when I'm not logged in.

I can see my ssi_examples.php whether or not I'm logged in.

Thanks

Kays

I misunderstood your question

Quote
However the "Did you miss your activation email?" doesn't show on my localhost when I'm not logged in.

That is not normal behaviour. "Did you miss your activation email?" shouldn't be a part of the message when not logged in.

On the ssi_examples.php page. On the left under "Authentication" click on "Welcome, Login & Logout" Does it show it like that also there?

Can you please post the code you are using?

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

floridaflatlander

Quote from: Kays on April 26, 2011, 06:26:01 PM
On the ssi_examples.php page. On the left under "Authentication" click on "Welcome, Login & Logout" Does it show it like that also there?

No, that's what it looks like on my localhost.

At the top of my page/file I have
include_once('forum/SSI.php');

Further below in the header under the above I have
<?php
echo '<h5>';ssi_welcome(); echo' '; ssi_logout();echo '</h5>';
?>

That's it, that's the only thing I have on the page

Kays

Does the ssi_examples page on your site display the same as the one on your localhost? Without the "Did you miss your activation email?" line?

That line is a $txt string which isn't used in SSI.php so I'm wondering where it's coming from.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

floridaflatlander

The ssi_examples are the same for both my local host and the online site.

I uploaded a new ssi.php and the "Did you miss your activation email?" is still there, I also am wondering where it's coming from.

floridaflatlander

#9
Ok it must be something I've done, something in my headers and I have no idea right now what that is.

I made a test page with just  echo '<h5>';ssi_welcome(); echo' '; ssi_logout();echo '</h5>'; here and it works like it's suppose to.

I'll play with it more tomorrow and get back to you.

Thanks

Kays

Yes, that is curious.

If you remove either or both of the functions. Does it disappear? Try to see which one is causing it.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

floridaflatlander

#11
Thank God you guys allow edits of post, the above post that I said looked ok was originially on my localhost.


This is  here a test file with nothing but the basics and the "Did you miss your activation email?" is still there

This is the whole file, nothing is left out.

<?php
include_once('forum/SSI.php');
// ssi login test
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<!-- <link rel="shortcut icon" type="image/x-icon" href=""> -->
<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<link rel="stylesheet" type="text/css" href="" />
<style type="text/css">
</style>
</head>
<body>
This is a test of the ssi_welcome() & ssi_logout()
<?php
echo '<h5>';ssi_welcome(); echo' '; ssi_logout();echo '</h5>';
?>
</body>
</html>

floridaflatlander

#12
Update: I keep getting a statement " Did you miss your activation email?" when I use smf ssi_welcome() function. It appears before someone logs in. After they log in everything is fine. You can see what I mean here. This is to the real forum.

I have down loaded a new copy of 2.0 r5 and replaced all the files, even the Settings.php file on both the on-line forum and my computers localhost test forum. No problem with localhost only the on-line forum.
I have made a test forum with the same 2.0 r5 files. The ssi_welcome() works fine on this forum seen here.

I then down loaded my database of the forum with the above problem to my computer and then found the problem on my computer too, soooo the problem must be in my database.

Does anyone know where to look in the database to solve this problem or what table to look at in the db?

Thanks
S


floridaflatlander

Okay a little update - I found the problem more or less.

I started moving all the tables of the forum with the problem ssi to the mywebsite/test forum.

I slowly changed the names of the tables until I got the " Did you miss your activation email?" in the ssi function. The problem table is the smf_settings table.

When I changed the name of the new smf_settings table to the old settings table name I got the " Did you miss your activation email?" .

When I changed the names of the tables back the " Did you miss your activation email?" disappeared.

Soo my new question now that the problem is narrowed down to the settings table is, what would I change in my settings table to make the " Did you miss your activation email?" disappear ?

Thanks


Aleksi "Lex" Kilpinen

#14
http://simplemachines.org/community/ssi_examples.php

<?php ssi_welcome(); ?>

Quote
Welcome, Guest. Please login or register.
Did you miss your activation email?

EDIT:
Actually, now that I think about it - It's probably dependant on the activation method of the forum using it. SMF requires users to activate their accounts through the e-mail notification, if I remember correctly - Does your test forum have e-mail activation on? Does your live site have e-mail activation on?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: