The Forestry Forum

Forum Help => Technical Support Topics => Topic started by: warren46 on February 05, 2018, 06:16:49 AM

Title: Login difficulties
Post by: warren46 on February 05, 2018, 06:16:49 AM
I have recently had difficulty with login.  When I attempt to login normally I receive an error message that the forum is unable to identify the URL that has originated the login.  I am logging in from my home computer over a wireless internet connection that is secured with a password.

I am able to login from the same connection if I change my forum password.

Can anyone help me find out what is causing this difficulty?
Title: Re: Login difficulties
Post by: Jeff on February 05, 2018, 06:54:54 AM
You must NOT use previous bookmarks/favorites created before we changed servers. Closeout of the Forestry Forum. Delete all bookmarks, empty all browser cache and cookies related to the forestry forum then come back to the Forestry Forum by typing in the address. You chould be able to login as normal. then you can create a new bookmark.
Title: Re: Login difficulties
Post by: warren46 on February 05, 2018, 03:25:19 PM
Thanks,

I got it fixed.

Warren
Title: Re: Login difficulties
Post by: 69bronco on February 06, 2018, 03:47:44 AM
Same problem, deleted bookmarks and anything else I could find. Says session timed out when I try to log in from tablet. Logged in from phone no problem.
Title: Re: Login difficulties
Post by: 69bronco on February 06, 2018, 04:03:12 PM
I got it, just takes me awhile  :P
Title: Re: Login difficulties
Post by: lurk on February 09, 2018, 04:01:26 AM
Theme needs the login security check added to the login form by the look of it.
Title: Re: Login difficulties
Post by: Jeff on February 09, 2018, 08:14:17 AM
Quote from: lurk on February 09, 2018, 04:01:26 AM
Theme needs the login security check added to the login form by the look of it.

Ya know what, you got me thinking. I knew that I had added it, but did I add it everywhere? I went looking. Nope. It was added in the smf4mobile theme, it was added on the index.template.php file, but guess what? It was not there on the login.template.php

Thanks for the heads up!
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 08:29:56 AM
Quote from: Jeff on February 09, 2018, 08:14:17 AM
Quote from: lurk on February 09, 2018, 04:01:26 AM
Theme needs the login security check added to the login form by the look of it.

Ya know what, you got me thinking. I knew that I had added it, but did I add it everywhere? I went looking. Nope. It was added in the smf4mobile theme, it was added on the index.template.php file, but guess what? It was not there on the login.template.php

Thanks for the heads up!

I can log in from the login box top left of the theme (Login2), but if I try to log in from the login button in the main menu (login), I keep getting, "You didn't enter your password."

There's also some strange stuff coming from the notications if you view it in Chrome webtools Console.  And something from a countdown script

Uncaught TypeError: Cannot set property 'innerHTML' of null
    at index.php:545


<script>
// Set the date we're counting down to
var countDownDate = new Date("Aug 4, 2018 00:01:00").getTime();

// Update the count down every 1 second
var x = setInterval(function() {

    // Get todays date and time
    var now = new Date().getTime();
   
    // Find the distance between now an the count down date
    var distance = countDownDate - now;
   
    // Time calculations for days, hours, minutes and seconds
    var days = Math.floor(distance / (1000 * 60 * 60 * 24));
    var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
    var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
    var seconds = Math.floor((distance % (1000 * 60)) / 1000);
   
    // Output the result in an element with id="demo"
    document.getElementById("demo").innerHTML = days + " days " + hours + " hours "
    + minutes + "m " + seconds + "s Until the Pigroast";
   
    // If the count down is over, write some text
    if (distance < 0) {
        clearInterval(x);
        document.getElementById("demo").innerHTML = "EXPIRED";
    }
}, 1000);
</script>
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 08:39:54 AM
@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348) the countdown script is for the Forestry Forum pigroast. It is over in the left hand column, been there for many years. it just get's reset every year.
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 09:02:18 AM
@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348) can you try and use the main login form again and report back?  I  replaced the login form with a backup and then installed Arantor's login patch. It seems to have fixed the issue.

I'm not sure what is going on with Uncaught TypeError: Cannot set property 'innerHTML' of null
    at index.php:545


Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 09:08:53 AM
Quote from: Jeff on February 11, 2018, 09:02:18 AM

@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348) can you try and use the main login form again and report back?  I  replaced the login form with a backup and then installed Arantor's login patch. It seems to have fixed the issue.


That's better Jeff, works now with both logins.   8)
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 09:24:48 AM
Regarding the other error, ok to upload attachments, or do I need to use the gallery, I ask only because I have a couple of screenshots of what I see in error console. and it says.

DO NOT USE THIS FACILITY FOR UPLOADING PHOTOS!
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 09:59:19 AM
Quote from: Jeff on February 11, 2018, 09:02:18 AM
@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348)

I'm not sure what is going on with Uncaught TypeError: Cannot set property 'innerHTML' of null
    at index.php:545


(https://forestryforum.com/gallery/albums/userpics/48348/tfferror2.jpg?easyrotate_cache=1518360914)
 
(https://forestryforum.com/gallery/albums/userpics/48348/tfferror.jpg?easyrotate_cache=1518360914)
 

Jeff, in error console it adds this error every time the alerts refresh at the top left of page (next Good morning, lurk *)  See second screenshot above,

Clicking the link on that error it takes me to that countdown script. and highlights the line with assumed problem.  first screenshot,
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 10:02:54 AM
Yea, I found it. It was all the countdown script.  I tried implementing it in a different way and it still produces the errors. For now I've just removed it.  All it was was for show anyhow. I doubt if anyone referred to it. I'll find a different way when pigroast time gets closer.

I wish the consol would show me something for that members map error!
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 10:05:07 AM
by george it did!

XML Parsing Error: no root element found
Location: http://forestryforum.com/board/index.php?action=googlemap;sa=.xml
Line Number 1, Column 1:
index.php:1:1
TypeError: xmldoc is null
[Learn More]
index.php:146:6
Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 10:13:48 AM
Quote from: Jeff on February 11, 2018, 10:05:07 AM

by george it did!


Thought I'd already mentioned that somewhere.  Perhaps I didn't hit the post button..  :)
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 10:15:02 AM
Not sure if this is the cause, but it least it is a clue. Trying to figure out the remedy
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 10:25:06 AM
@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348) a little googling and I find that the xml parse error could be permissions related. SO, I changed the themes directory permissions from 777 to 775 and wallah!  The map stays loaded! However no pins load....
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 10:26:32 AM
DRAT!  IT was only a temporary thing. Must be google was asleep.
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 10:47:25 AM
Yes a strange one.  The map pin shown in your profile though, which makes me wonder why it won't show on the map.  Not that I've used the google maps thing for several years, think I tried it once. lol..

I'll keep looking for clues, though it's suggesting a server config problem with the 500 error
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 11:18:42 AM
Quote from: Jeff on February 11, 2018, 10:25:06 AM
@lurk (http://forestryforum.com/board/index.php?action=profile;u=38348) a little googling and I find that the xml parse error could be permissions related. SO, I changed the themes directory permissions from 777 to 775 and wallah!  The map stays loaded! However no pins load....

Actually, talking of themes, I noticed in IE11 this forum page no longer fits the screen and gives a horizontal scroll bar at the bottom.  Sure it wasn't like that before.

Also are you sure there's no js conflicts ajax or other?  Because it's strange how the map page loads and after a few seconds disappears.
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 11:26:05 AM
This second page is ok, fits screen perfectly.

I now think it's a problem when you use the [code][/code] tags It breaks out of the side of the theme giving you the scroll bar at the bottom.
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 01:33:33 PM
It is the code links.   They wreak havoc. Long links too. And youtube embedded videos.    The Map. It worked perfectly until we switched servers. I am pretty certain it worked when I was testing after the moved as well. It quit working when I upgraded the forum software to 2.0.15. That is when all the login issues started as well
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 02:26:55 PM
Quote from: Jeff on February 11, 2018, 01:33:33 PM
It is the code links.   They wreak havoc. Long links too. And youtube embedded videos.    The Map. It worked perfectly until we switched servers. I am pretty certain it worked when I was testing after the moved as well. It quit working when I upgraded the forum software to 2.0.15. That is when all the login issues started as well

Login issues started with 2.0.14.  The latest SMF updates have caused havoc with many mods and themes to be honest, it's created a bit of a mess.  Not all mods, although they say compatible with SMF2, unfortunately some aren't even if the package parser says they are.  Because there's several code changes in SMF 2.0.14 up.

We only had to update our Tinyportal mod to cure the login fix, so we were quite lucky.

A couple of questions I'm curious about.  Isn't the portal you're using supposed to be responsive? And what mod do you use to embed YT video's ?
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 02:43:25 PM
Yes, ezportal is what I've used for ever now, and it is supposed to be responsive now. Well, I guess I don't know if it is responsive or not, only that you can choose to hide or view blocks depending for mobile or desktop.

The embed mod is the "simple audio video embedder".  I have been in search of a substitute, but have not found anything.  I know full well you can embed a video that is responsive putting the iframe in <div> tags and use css, as I have done it on other websites I work on, but it is a manual process, not an automated one that we need here. I'm guessing it would have to be done with javascripting, I don't think pure css can so it.
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 03:05:36 PM
Thanks, yes I see your banner adds at the top must be running independently to the portal, that's what's throwing the theme out when I zoom in. They don't resize to given space.  Are you running them in some kind of random images script?

Video's, I think, Ohara YouTube Embed is the one I use, it's responsive providing you're using a responsive theme. 
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 03:10:00 PM
Yes, some of them are running random image scripts.  Send me a PM about your portal. I've never used it and really never knew about it.  I'm wondering if you can sell me on switching :D   I know this system, but if I can change to something better without having a stroke, I'd do it.
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 03:36:38 PM
Quote from: Jeff on February 11, 2018, 03:10:00 PM
Yes, some of them are running random image scripts.  Send me a PM about your portal. I've never used it and really never knew about it.  I'm wondering if you can sell me on switching :D   I know this system, but if I can change to something better without having a stroke, I'd do it.

Jeff, do have a test site, either live or local that you could try it on.  I don't think the portal is causing your layout problem, more the way the banners are added I guess.  Not that I'm good with responsive stuff.  I'll shoot you a pm.
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 03:40:39 PM
On mine, all the banners resize using max-width style attributes, unless I missed one.    They seem to resize on anything I have here.
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 04:08:21 PM
Quote from: Jeff on February 11, 2018, 03:40:39 PM
On mine, all the banners resize using max-width style attributes, unless I missed one.    They seem to resize on anything I have here.

You're right.  I was testing in IE11, which is why I'm not seeing it.. 
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 04:13:38 PM
I've been getting to a point as I get older, that I gotta know when to say when. Trying to please every stinkin browser can really get to a guy that knows not much of anything about coding other than what I pick up by looking at source code. :D  So, I try to do the best I can for most, and for some, OH WELL!! :D :)
Title: Re: Login difficulties
Post by: lurk on February 11, 2018, 04:21:46 PM
Quote from: Jeff on February 11, 2018, 04:13:38 PM
I've been getting to a point as I get older, that I gotta know when to say when. Trying to please every stinkin browser can really get to a guy that knows not much of anything about coding other than what I pick up by looking at source code. :D  So, I try to do the best I can for most, and for some, OH WELL!! :D :)

You do a great job, much better than I could even attempt. It looks great in firefox, chrome, and edge.  IE11 I'm still in the habit of testing with, handy fr spotting broken images etc.. 

I'm currently about to release our new portal version to the world, glad I have people who can code it for me, otherwise it would be a complete mess. lol..  You should see it announced over at SMF very soon. 
Title: Re: Login difficulties
Post by: Jeff on February 11, 2018, 04:23:34 PM
Quote from: lurk on February 11, 2018, 04:21:46 PM

You do a great job

Thank you sir. Much appreciated!