Some of my members fo my forum are complaining they can't log in
server times out ?? I kept getting locked out of my forum yesterday , but when i changed themes everything was ok.
How to I remove or un-install two themes.. I have a total of four - two that came with the script and I tried to add two more and that is when my prblems began
I am using SMF 2.0.15
I was able to delete the two themes that were causing me problems
Everything has been working GREAT for two weeks no problems now all of a sudden people are having log in issues
but a member sent me this massage could you see why I'm unable to login? I received a notification that stated something about changing my password. And when I tryed to login, something about try later, then something about my user name doesn't exist?
URL?
mods installed?
what theme(s) are you using?
Didyou apply the 2.0.14/2.0.15 login fix?
Did you convert from another forum software or do a recent upgrade from SMF 1.1.x?
The forum is 2.0.15 it is two weeks instaled
but members are sending me e-mails that they can't log in
I have the two default themes Core & Curve
The other two themes I deleted
I have very few mods installed
simple image uploaded
Highlight text
And which of these are you using on your site?
I am currently using Curve but I much prefer core
why would I need a log in fix from 2.0.14
I don't understand
https://majikimaje.com/smf
Because Core didn't get the fix.
Quote from: Arantor on August 16, 2019, 02:30:59 AM
Because Core didn't get the fix.
Absolutely. This does make me wonder though, why don't they fix it? Or remove the theme from the package, why distribute something which is broken. This issue has cropped up a few times.
Quote from: lurkalot on August 16, 2019, 02:48:42 AM
Quote from: Arantor on August 16, 2019, 02:30:59 AM
Because Core didn't get the fix.
Absolutely. This does make me wonder though, why don't they fix it? Or remove the theme from the package, why distribute something which is broken. This issue has cropped up a few times.
Same reason login via SSI was broken in 2.0.14: it was simply forgotten about. That said, I don't know why it wasn't fixed in 2.0.15.
I can understand it could have been forgotten, but I mean why can't one of the team grab the damn thing and repackage it with the fix? It would probably take them less time than it would to answer one of these support topics.
Quote from: Kindred on August 15, 2019, 11:27:48 AM
URL?
mods installed?
what theme(s) are you using?
Didyou apply the 2.0.14/2.0.15 login fix?
Did you convert from another forum software or do a recent upgrade from SMF 1.1.x?
Do you have a link for this fix ??
Quote from: lurkalot on August 16, 2019, 02:58:18 AM
I can understand it could have been forgotten, but I mean why can't one of the team grab the damn thing and repackage it with the fix? It would probably take them less time than it would to answer one of these support topics.
No idea, but this decision was in no small part what led to StoryBB's creation.
Quote from: Majik_Imaje on August 16, 2019, 03:09:05 AM
Quote from: Kindred on August 15, 2019, 11:27:48 AM
URL?
mods installed?
what theme(s) are you using?
Didyou apply the 2.0.14/2.0.15 login fix?
Did you convert from another forum software or do a recent upgrade from SMF 1.1.x?
Do you have a link for this fix ??
https://wiki.simplemachines.org/smf/Login_error_2.0.14
Quote from: Arantor on August 16, 2019, 03:14:36 AM
Quote from: lurkalot on August 16, 2019, 02:58:18 AM
I can understand it could have been forgotten, but I mean why can't one of the team grab the damn thing and repackage it with the fix? It would probably take them less time than it would to answer one of these support topics.
No idea, but this decision was in no small part what led to StoryBB's creation.
Quote from: Majik_Imaje on August 16, 2019, 03:09:05 AM
Quote from: Kindred on August 15, 2019, 11:27:48 AM
URL?
mods installed?
what theme(s) are you using?
Didyou apply the 2.0.14/2.0.15 login fix?
Did you convert from another forum software or do a recent upgrade from SMF 1.1.x?
Do you have a link for this fix ??
https://wiki.simplemachines.org/smf/Login_error_2.0.14
Wonderful, Now can you translate this for me? I have only made one install using the package 2.0.15 So from what I could understand about that link you sent me, I have to add some code to a<form> in the pages mentioned
Is that about right ?????
Yes, that's exactly right, you have to look for some code in Themes/core/index.template.php and add some code to it so it will function correctly.
Thank you for answering so promptly.. I've never done this before and it is way over my head but I think I can understand what to do..
Done deal. I found the file index-template.php I found the </form> tag
and right above that I inserted the code...........so that's It ??
Is there any way to test this ?? How do I know ?
Thanks for your expert help!
if you can log in without issue, the fix has worked.
I thought this was fixed..........but I guess not......some people still can't log in
I found the index template php and placed the line of code right above the </form
but when I went back to the forum.. I noticed a person was trying to log in for 1/2 hour and never got logged in
The install was installed two weeks ago from a 2.0.15 package
https://majikimaje.com/smf
I have the two default themes............. core & curve core is the theme that locks people out.
I have no idea what to do......and if I don't get this fixed soon I am going to loose all my members.
Quote from: Arantor on August 16, 2019, 02:30:59 AM
Because Core didn't get the fix.
so what do I do ?? the fix didnt fix anything and I know i inserted the line of code properly and in the right place.
There's two closing form tags in that index.template file, you sure you added it to the correct one ?
This is the one you want, around line 293
Find
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
Change to,
echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>';
}
Quote from: lurkalot on August 16, 2019, 12:41:21 PM
There's two closing form tags in that index.template file, you sure you added it to the correct one ?
This is the one you want, around line 293
Find
echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
Change to,
echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>';
}
I did not close that <form tag when I posted, I didin't want to lose the text........I purposely left it open but yes I did insert that single line of code in the right place.
Now you give me two lines of CODE.............wonderful !!!
Now I noticed I have two files that say Index.template.php 20k
the other file is Index.template.php~ 20k
So I am supposed to go to Line 293 and insert this ?
echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Ok.......I will give that a try once I hear back from you
I hope this is the correct place. I don't have an editor that shows line numbers
Please post code in [code][/code] tags.
Core index.template.php -
{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
', $txt['login_or_register'], '<br />
<input type="text" name="user" size="10" class="input_text" />
<input type="password" name="passwrd" size="10" class="input_password" />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
', $txt['quick_login_dec'];
if (!empty($modSettings['enableOpenID']))
echo '
<br />
<input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>';
}
Quote from: Sir Osis of Liver on August 16, 2019, 01:30:14 PM
Please post code in [code][/code] tags.
Core index.template.php -
{
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form class="windowbg" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
', $txt['login_or_register'], '<br />
<input type="text" name="user" size="10" class="input_text" />
<input type="password" name="passwrd" size="10" class="input_password" />
<select name="cookielength">
<option value="60">', $txt['one_hour'], '</option>
<option value="1440">', $txt['one_day'], '</option>
<option value="10080">', $txt['one_week'], '</option>
<option value="43200">', $txt['one_month'], '</option>
<option value="-1" selected="selected">', $txt['forever'], '</option>
</select>
<input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
', $txt['quick_login_dec'];
if (!empty($modSettings['enableOpenID']))
echo '
<br />
<input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';
echo '
<input type="hidden" name="hash_passwrd" value="" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</form>';
}
Ok copy all of the text and everything from code to code with all the other stuff and where do I insert this ??
Wouldn't it be easier to just send me index.template.php ???
I am so lost and confused first I have to insert one line of code, then it is two, now it is a huge paragraph?
I have 3 strands of hair left from pulling my hair out over this issue.
Quote from: Majik_Imaje on August 16, 2019, 01:36:40 PM
Wouldn't it be easier to just send me index.template.php ???
Do you have any mods installed, or is this a clean install of 2.0.15?
Only use this if you have no mods installed,
I have four mods instaled..............I can easily delete them and put them back later how would that work out ??
Quote from: Majik_Imaje on August 16, 2019, 02:44:34 PM
I have four mods instaled..............I can easily delete them and put them back later how would that work out ??
Thing is some mods might make edits to that file when they install, so it depends on if they do or not. If you uninstall them first, then upload the file, then re-install those mods you should be ok.
That seems easier than trying to add of those other lines of code.. I don't know which choice is right #1 ? #2? or #3 all of them ??
I will un-install all of the mods.....refresh the page and then change index.template.php
I will be back to let you know what happened in a couple hrs
Thanks a whole heap for your help
I'm trying to convince my friends to join but they are busy distributing 70 TONS of food !!
I live with ESKIMO'S
Would it be wise for me to put the board in Maintainance Mode while I remove the mods.... I have more than I thought (avatars 1/2 dozen sets) A couple of security mods..
that way there is no activity that might interfere (I dunno)
Actually just attach your file here and I'll edit it for you, then you won't have to remove the mods. ;)
You are genius, what a great idea.....
HERE IS THE FILE (https://majikimaje.com/File.zip)
Quote from: Majik_Imaje on August 16, 2019, 04:03:51 PM
You are genius, what a great idea......
https://majikimaje.com/smf/Themes/core/index.template.php
You need to attach the actual file to your reply..
I'm sending you a PM.
lOOK ABOVE YOUR POST FILE IS HERE
That file should be correct, according to the instructions. Are you saying it still doesn't work?
If it's no good, that means they must be trying to log in via one of the other forms in the software. For example, the Login button on the menu takes you to Login.template.php, and that would need editing too if that is what they are doing.
The edit to index.template.php only works if they are trying to log in via the "quick log in" form in the theme header (the one that is visible on all pages).
I have to wait to see what happens.
Personally I think it is an issue with firefox.
Every time, I am denied access or kicked out and can't get back in. server timme outs etc
EVERY TIME I switch to Chrome ............EVERYTHING IS FIXED
Recently 10 Java menus on the top of my home page would not work.
Once I un-installed firefox and downloaded a new copy they were all fixed.
So I will advise my users to use Chrome if they run into any problems.......
If Not, I'll repeat Arnold...........I'LL BE BACK
Quote from: Majik_Imaje on August 16, 2019, 06:48:07 PM
I have to wait to see what happens.
Personally I think it is an issue with firefox.
Every time, I am denied access or kicked out and can't get back in. server timme outs etc
EVERY TIME I switch to Chrome ............EVERYTHING IS FIXED
Recently 10 Java menus on the top of my home page would not work.
Once I un-installed firefox and downloaded a new copy they were all fixed.
So I will advise my users to use Chrome if they run into any problems.......
If Not, I'll repeat Arnold...........I'LL BE BACK
The edits have been made to your Core theme now, so like you said, wait and see if it plays up. Hopefully it'll be ok.
Shouldn't have any problems with Firefox. Disable forum caching in
Admin -> Server Settings -> Caching, clear forum cache, and clear browser history. I'm sure you know that Chrome is spyware, don't you?
Hmm, that whale looks a lot like one of my old girlfriends.
https://majikimaje.com Those menu's up top would not work. They have been there 15 years and one day suddenly none of them were even there, I checked using Chrome and everything was fine.. I despise I.E. I checked my site, everything was fine
I uninstalled Fire Fox Upon the new install. Everything was fine. spyware? HA HA HA HA I have nothing to hide. Google is the least of my worries. I have a few alphabet agencies that live on my comptuer.
Thanks for the info........Your girlfriend weighed 70 TONS ?
Top menus work in FF68 and IE11, but there are some 404 links.
Quote from: Majik_Imaje on August 16, 2019, 10:31:50 PM
I have nothing to hide.
Everyone has something to hide.
https://www.washingtonpost.com/technology/2019/06/21/google-chrome-has-become-surveillance-software-its-time-switch/?noredirect=on&utm_term=.34bd6a77e05a
Quote
Your girlfriend weighed 70 TONS ?
Not quite, but she could eat that much, long as I was paying.
The 404 links are from web sites that went down and are no longer.
If I had something to hide.........I would have been in jail 20 years ago - I am Mr. Squeeky Kleen
We stay home and carve Ivory.
We work with FOSSIL ivory, it's very rare and people pay through the nose for this stuff
Walrus ivory?
You might find this forum (http://www.lapidaryforum.net/group) interesting (or not). They work with gemstones, don't know if they sell them.
If you have javascript disabled in FF, top menu disappears.
Yeah I know that about java.. my menu's were collapsed 1/8 of an inch thick.
Yeah I live with Eskimo's in the Arctic
Kivalina Alaska 90 miles above the Arctic circle
Does sound like you're having a js problem with FF. It installs out-of-box with js enabled, you'd have to do something deliberate to disable it. SMF uses js, but disabling it in FF doesn't affect login.
https://en.wikipedia.org/wiki/Kivalina,_Alaska
"The island on which the village lies is threatened by rising sea levels and coastal erosion. As of 2013, it is predicted that the island will be inundated by 2025."
Well I sure thanks for your help, I am afraid to dump my cashe will that effect all of my sites. All my sites know my log on details and passwords.. I don't want all that erased
by the way........I love..............your name. (chuckle)
If you clear all browser history in FF or IE, you have to login to all sites again, but there's an option to select which history you want cleared, so you can save cookies. Don't use Chrome, but I believe it has the same option. One of the problems we sometimes see here is login failure due to corrupt cookies. The usual advice is to change cookie name in Server Settings, that logs out everyone and drops clean cookie when they log back in. This only affects the forum, does not require clearing history. Your original login problem was due to missing session check in Core theme, that should be fixed.
I was just going to ask you if there is any way I can test it.. so you want me to change the theme to core ? Ok I can do that, but usually that is when I get e-mails saying they can't log in
I will try it and see if people show up..
Quote from: Antechinus on August 16, 2019, 06:36:18 PM
That file should be correct, according to the instructions. Are you saying it still doesn't work?
If it's no good, that means they must be trying to log in via one of the other forms in the software. For example, the Login button on the menu takes you to Login.template.php, and that would need editing too if that is what they are doing.
The edit to index.template.php only works if they are trying to log in via the "quick log in" form in the theme header (the one that is visible on all pages).
For reference: I changed the one in index.template.php, This one I just tidied up because the code was already there and added by Majik_Imaje. There was another which I also added the session check, in boardindex.template.php this one is for the login bar which resides below the Info Center at the bottom of forum index.
echo '
<div class="infocenter_section">
<h4 class="titlebg">', $txt['login'], ' <a href="', $scripturl, '?action=reminder" class="smalltext">', $txt['forgot_your_password'], '</a></h4>
<div class="windowbg">
<p class="section">
<a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/icons/login.gif', '" alt="', $txt['login'], '" /></a>
</p>
<div class="windowbg2 sectionbody">
<form id="infocenter_login" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
<ul class="reset horizlist clearfix">
<li>
<label for="user">', $txt['username'], ':<br />
<input type="text" name="user" id="user" size="15" class="input_text" /></label>
</li>
<li>
<label for="passwrd">', $txt['password'], ':<br />
<input type="password" name="passwrd" id="passwrd" size="15" class="input_password" /></label>
</li>
<li>
<label for="cookielength">', $txt['mins_logged_in'], ':<br />
<input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" class="input_text" /></label>
</li>
<li>
<label for="cookieneverexp">', $txt['always_logged_in'], ':<br />
<input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="input_check" /></label>
</li>
<li>
<input type="submit" value="', $txt['login'], '" class="button_submit" />
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
</li>
</ul>
</form>
</div>
</div>
</div>';
}
Both those files need the session check added. ;)
I have no idea what a sessions check is
I am starting to wonder if my site is even working....
No one has been logged in since yesterday morning.
Quote from: Majik_Imaje on August 17, 2019, 12:29:58 PM
I have no idea what a sessions check is
I am starting to wonder if my site is even working....
No one has been logged in since yesterday morning.
Nothing for you to worry yourself over. ;)
That info was just for others thinking about fixing the Core theme for 2.0.15. Just pointing out you have to add the fix to both those files.
As for no one logging into your site, well that's par for the course, mine are dead too. ;)
Just registered, forum is running 2.0.15 Curve, no problem logging in/out.
I can't thank you enough... Are you Krash ??
Whoa wowza I just been to your web site ........I am super impressed and speechless
Yeah, that's me. Can you switch to Core theme, or make me admin and I'll play with it.
I just switched to core...
How do I make you admin (just asking) This is our first date - I'm not THAT easy.
Login works fine in Core. Do yourself a favor and pick a nice shiny responsive theme (https://custom.simplemachines.org/themes/index.php?action=search;basic_search=responsive). Core is a legacy, it was default theme for 1.1 branch, over 10 years old, some mods will not install in it and it's not responsive. Couple of my guys are still using it, basically because their forums go back that far and their members are comfortable with it. Doing some customizing with SychO's Nightbreeze here (https://www.ancientgreecereloaded.com/files/ancient_greece_reloaded_website/forum/index.php), he's put up several nice responsive themes.
Going offline shortly. Do Eskimos play guitar? Here's something for you -
https://www.youtube.com/watch?v=LTseTg48568
https://www.youtube.com/watch?v=LyBjrX8jOHw
Where do I get "responsive" themes ? this is over my head.
https://custom.simplemachines.org/themes/index.php?action=search;basic_search=responsive
I just installed a GORGEOUS THEME (responsive)
I dunno why everything crashed
How do I make you admin ...I know how to make a moderator
do the same thing but add admin or administrator in your profile
Quote from: Sir Osis of Liver on August 18, 2019, 01:30:27 AM
Login works fine in Core. Do yourself a favor and pick a nice shiny responsive theme (https://custom.simplemachines.org/themes/index.php?action=search;basic_search=responsive). Core is a legacy, it was default theme for 1.1 branch, over 10 years old, some mods will not install in it and it's not responsive. Couple of my guys are still using it, basically because their forums go back that far and their members are comfortable with it. Doing some customizing with SychO's Nightbreeze here (https://www.ancientgreecereloaded.com/files/ancient_greece_reloaded_website/forum/index.php), he's put up several nice responsive themes.
Going offline shortly. Do Eskimos play guitar? Here's something for you -
https://www.youtube.com/watch?v=LTseTg48568
https://www.youtube.com/watch?v=LyBjrX8jOHw
Yes quite a few Eskimo's play guitar, The Patkotak sisters are very famous
Quote from: Sir Osis of Liver on August 18, 2019, 12:59:50 AM
Yeah, that's me. Can you switch to Core theme, or make me admin and I'll play with it.
I've already done that exactly that. Added the session checks. Core theme works as expected.
The fact that Curve was set to default from the start means that wasn't the issue in the first place, but as Majik_Imaje expressed an interest in Core, I went ahead and fixed it.
Quote from: Sir Osis of Liver on August 18, 2019, 01:30:27 AM
Login works fine in Core. Do yourself a favor and pick a nice shiny responsive theme (https://custom.simplemachines.org/themes/index.php?action=search;basic_search=responsive). Core is a legacy, it was default theme for 1.1 branch, over 10 years old, some mods will not install in it and it's not responsive.
That I can agree with. Why anyone would want to use Core nowadays is beyond me. A responsive theme, or at the very least the "Responsive Curve Mod" would be on my shopping list. ;)
Some of us find the design aesthetic of Core more pleasing the current trends of "flat" design.
I should make a responsive version sometime.
Quote from: Arantor on August 18, 2019, 04:50:52 AM
Some of us find the design aesthetic of Core more pleasing the current trends of "flat" design.
I should make a responsive version sometime.
That's fair enough, I can understand that everyone's taste differs immensely. I was going to say it's a bit like cars, but they are starting to all look the same. lol..
It doesn't do it for me at all, not in its current state. That said a responsive version of it would make it more attractive user wise, so would be interested to see that. ;)
What means "Responsive" ?? it responds faster ??
99% of the themes i have sorted through are all FLAT
I like the core theme a lot but I want a theme that is not so white.
Darker themes are easier on my eyes.
A responsive theme is designed to vary presentation so it displays correctly on mobile devices. If you view a non-responsive theme on a phone, it will be scrambled and difficult to use. Sadly, many people use phones to view websites, and this has imposed an additional burden on developers. Remember the good old days when you only had to worry about different rendering engines? <sigh>
When you get around to it, register at thekrashsite, can't keep track of support issues via email.
I did register @ Krashsite I am waiting for my verify my e-mail message or to get approved.
I am stuck with trying to install that new theme that is responsive and it installed and then gave me an error message.
I have no idea what to do now
Which theme?
Karanik - Lord it is gorgeous responsive theme .. can you fix that. that is the best looking theme I have ever seen.
It's installed. Don't really like it, but that's a just a personal preference.
I am tired of white all day......it's too harsh on my eyes........I have the brightness turned down to zero
Thanks.. Now let me see if I can do what I had in mind. Thanks so much