Wiccle.com in Facebook Wiccle.com in Twitter Wiccle.com in LinkedIn Wiccle.com in Youtube RSS from Wiccle.com Wiccle.com in Atom
 
 
 

Thread: 404 error when logging in. Refresh link is incorrect [Solved]

Started: January 27, 2010, 10:54 PM  ⋅  Zone: Public Forums  ⋅  Category: Bugs & Troubleshooting  ⋅  Posts: 7  ⋅  Views 482
Started by: antifmradio  ⋅  Description: I think i found the problem but not the solution.
Post #1
Member: antifmradio  ⋅  Date: January 27, 2010, 10:54 PM  ⋅ Subject: "404 error when logging in. Refresh link is incorrect"

Ok so heres the deal

when i close my browser after logging OUT of my iWiccle
i go back to my home page and click the LOG IN link at the top

Little window opens for my details.

i enter the info and its correct.

Now it wants to refresh via THIS link which is incorrect..well i think its incorrect

javascript:parent.refreshPage(1)

Because it wants to load this page

/index.phpindex.php

i think its supposed to be

javascript:parent.refreshPage()

or

javascript:parent.refreshPage(0)

i dont remember exactly but i think there supposed to be NOTHING inside the parenthesis.

I got that link from the message

Click here if this takes too long

inside the little login window

I simply rightclicked the CLICK HERE link and thats what i get.

I see a (1) when trying it on my site

i see a () when doing it here.

This might be hte cause of my login error

Now if i get a failed screen but type in the url for my installation anyway, It shows as i am now logged in.

If i log out and then try to go in again right away ( no browser closing )

it usualy works just fine

 

 

What id LIKE to do is remove the whole installation

and do a completly fresh install instead of using the upgrade
I could have done something wrong

 

Post #2
Member: antifmradio  ⋅  Date: January 28, 2010, 12:56 AM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

ok here we are a couple hours later... i think

and i redownloaded the iWiccle files

emptied my database

deleted all files

re-uploaded and installed all fresh and clean.

 

Now i have a whole different problem

i cant log in

When i click LOGIN, nothing happens.

When i click REGISTER nothing happens

the page doesnt do anything.. no change. nothing

 

Its like Javascript isnt working... Odd

Post #3
Member: Markus  ⋅  Date: January 28, 2010, 06:51 AM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

refreshPage() is actually a custom function, where you can feed an optional parameter "1" that causes your settings to reload. This fixes the permission issue people had when they logged in. Obviously there is now some environment where it breaks. I remember battling with this very issue between 1.20 and .1 releases, but believe I got it nailed down.

Looking at your site now. I have successfully registered, logged in and logged out a couple of times now. (So please double check that you have JavaScript on in your browser, and try a hard refresh of the page and clearing your browser cache.)

I get the error at your site when I log in from an URL saying only "index.php". Whenever there's a query string in the URL, it works. Testing and fixing up.

Post #4
Member: Markus  ⋅  Date: January 28, 2010, 07:21 AM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

There is a confirmed page redirection bug in the login feature that occurs in some situations.

The problem is in the browser.js file and the refreshPage function, that fails to detect that the URL is only "index.php" and assumes null URL in absence of a query string. It has now been fixed.

You can use this batch file, or otherwise change it to look like follows. Remember to hard-refresh your browser after uploading this to make sure the new file gets loaded into your browser.

---

function refreshPage(reload)
{
  
    var url = parent.window.location.toString();
    var anchor_index = url.indexOf('#');
    if (anchor_index != -1) {
        url = url.substring(0, anchor_index);
    }
    var urlAppend = '';
    if (reload && url.indexOf('=')>0) var urlAppend = '&reload=1';
    else if (reload) var url = 'index.php?reload=1';


    goTo(url + urlAppend);
    return;
}

Post #5
Member: antifmradio  ⋅  Date: January 28, 2010, 04:18 PM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

where does this file get uploaded

Post #6
Member: Markus  ⋅  Date: January 28, 2010, 07:44 PM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

You can now look up locations and download files for all patched bugs at: Patch Files - Bug Fixes

File: /templates/javascript/browser.js

 

Post #7
Member: antifmradio  ⋅  Date: January 29, 2010, 12:20 AM  ⋅ Subject: "Re: 404 error when logging in. Refresh link is incorrect"

if anyone DOESNT know what "HARD REFRESH" means or it seems to not work when you do it,

please go into your browser options

and CLEAR CACHE..... then either refresh of CLOSE / OPEN your browser.

 

Bugs & Troubleshooting

Add to Favorites
Public Forums
Category  ⋅  Please report all bugs and discuss any problems in this forum.
 

Public Forums

Add to Favorites
Public Forums
Zone  ⋅ Public forum sections for support and discussions. Available for everyone.
 

Zone Categories

 
Questions? Ask us!
Back to Top