Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 06:29:00 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155464 Posts in 21707 Topics by 7732 Members
Latest Member: DarrellDD
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Installation works... login doesn't  (Read 629 times)
websanity

Offline Offline

Posts: 10


« on: November 16, 2008, 03:10:21 PM »

Just created a brand new test installation of the WebsiteBaker within my existing website area.

Follow instructions. All fine.

Come to admin login screen - type in user details and it just clears and shows the login again: until you run out of login attempts.
Try to ask for password reminder: just returns to the password reminder screen.

Checked databases and user name and password are all set up OK.

Shows 'website coming' on public page.


Any ideas: looked through forums and this seems to have happened to other people, but didn't seem to be any fixes.


Cheers,
G
Logged
websanity

Offline Offline

Posts: 10


« Reply #1 on: November 16, 2008, 04:02:11 PM »

Interesting (?) none of the forms seem to be getting anything back from get_post( as if the form isn't submitting correctly.
Logged
websanity

Offline Offline

Posts: 10


« Reply #2 on: November 16, 2008, 04:24:00 PM »

Session variables are working elsewhere on the existing site and it is perfectly happy getting the results of a form posted back to itself... but not in the wb installation??!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #3 on: November 16, 2008, 05:03:51 PM »

Have you cleared your browsercache?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

websanity

Offline Offline

Posts: 10


« Reply #4 on: November 17, 2008, 09:57:02 AM »

Yep!

It appears crazy: when the form gets posted there just seem to be no $_POST values coming across to it. Yet sessions are enabled and other forms I have elsewhere on the same web server are working just right.

Does WebsiteBaker set an explicit directory for session variables for itself (which has got confused because I installed it into a subdirectory, i.e. /test/wb not /wb or which hasn't got the correct rights associated with it?) Doubt the latter because I just set everything to rights: 777 and still no joy.


Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #5 on: November 17, 2008, 11:28:25 AM »

Can you please check, what the errorlog of the server "says"?

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

websanity

Offline Offline

Posts: 10


« Reply #6 on: November 17, 2008, 08:32:11 PM »

Hi Klaus,

Thanks for the help and suggestion. I couldn't see anything in the error log file, but then inspiration struck. I have a .htaccess file set up to deal with some general issues and SEO things (canonicalization, url rewriting etc.). Here is an excerpt:


RewriteEngine On
RewriteCond %{HTTP_HOST} ^websanity\.co\.uk [NC]
RewriteRule ^(.*)$ http://www.websanity.co.uk/$1 [L,R=301]

RewriteCond %{THE_REQUEST} (index\.php) [NC]
RewriteRule ^(.*)index\.php$ http://www.websanity.co.uk/$1 [L,R=301]

RewriteRule ^index\.htm$ /index.php [R=301,L]
RewriteRule ^index\.html$ /index.php [R=301,L]


I temporarily killed the .htaccess file and then suddenly the system sprung into life again. So, I just put overriding .htaccess file in the WB directory turning off the rewrite engine and that sorted it out on a permanent basis. Yipeee!!    smiley

Now, I'm no expert in .htaccess, and to some of you there might seem to be something stark staringly stupid about the above snippet, but it's something I've grabbed out of an SEO book at some point in the past, and this is the killer line that has never before caught me out:
RewriteRule ^(.*)index\.php$ http://www.websanity.co.uk/$1 [L,R=301]
Seems to coming into effect a bit too aggresively, so
RewriteRule ^index\.php$ http://www.websanity.co.uk/$1 [L,R=301]

sorts it out.


fairly obscure, but one to look out for.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!