LoudBlog - Podcasting-Software for PHP - Forum

You are not logged in.

Announcement

Unfortunatelly, we received lots of spam in the LoudBlog forum. We closed registrations so far. Please check again later.

#13 Jun 13th 2007 14:18

petercarter
Administrator

Re: I cannot login to the admin area

The problem of being sent back repeatedly to the log-in page seems to be connected to whether Loudblog can set and read session cookies properly.
The first things to try are those suggested by Gerrit in the first posting in this thread. In particular, if you log out correctly from the admin pages (click on "log me out" at the bottom of the page) this will clear the session cookies, and allow Loudblog to set cookies for a new session.
If this doesn't work it may be worth checking your error log, or asking your hosting service to do so. Look in particular for information about errors relating to the setting or reading of session cookies. Jeff Dyson and I recently had the "log-in page" problem while he was trying to set up Loudblog on a new server. The problem turned out to be that the session save path specified in php.ini pointed to a non-existent directory. The hosting service created the directory manually, and this solved the problem.

Offline

 

#14 Nov 27th 2007 01:39

nhenryberends
Member

Re: I cannot login to the admin area

I have attempted all of the suggested fixes in order to log in, to no avail.

My attempted installation is at http://media.nateberends.com

I checked, and my session data is directed to save to an actual location in the temp directory on my server.

I am noticing, however, that when I attempt to login for the first time after I have cleared cookies, a session file appears in the directory: public_html/nateberends/media.  There have been as many as eight of these session files.  Now, these two are there:

sess_5aea0debbb1e8269d32e2a982af15e69
sess_1a8b73ec7459384b93983bbc7c93dbe6

Is there something in the application that is overriding my php.ini file, in terms of where session data is stored?  Is this even the problem?  How do I fix this?

Any help would be much appreciated.  The "wrong login or password" message is getting a tad bit stale at this point, sadly.

Thanks, in advance.

Offline

 

#15 Nov 27th 2007 02:07

petercarter
Administrator

Re: I cannot login to the admin area

What version of Loudblog are you using? The latest version (0.7.1) checks whether the session save path in php.ini is in fact writable, and if it isn't Loudblog looks for an alternative writable location. The relevant bit of code is lines 19 to 26 of loudblog/index.php.

Code:

// check if session_save_path is writable and test some other paths...
$session_save_path = session_save_path();
if (!is_writable($session_save_path)) {
    if (is_writable("/tmp/")) $session_save_path = "/tmp/";
    if (is_writable("modules/cgi-bin/")) $session_save_path = "modules/cgi-bin/";
    if (is_writable("../")) $session_save_path = "../";
    session_save_path($session_save_path);
}

We included this feature in LoudBlog 0.7.1 to remove the possible problem of session.save_path pointing to a non-writable or non-existent directory, so I would be disappointed if it is causing problems. If you like, try commenting out these lines in loudblog/index.php - put // at the beginning of each line - and see if it solves your problem. Then please let us know, so that we can consider what has gone wrong.

And are you sure that the problem is in fact the session data, and not - for instance - a wrong password or user-name?  You can check your username with phpMyAdmin - look at the authors table. The password is encrypted in the database, however, so if you fear you mistyped your password you will need to delete evrything (including the tables in your database) and start again.

Offline

 

#16 Feb 3rd 2008 13:40

MsSchool
Member

Re: I cannot login to the admin area

I have the same login problem.
I have just installed the latest version (0.8a) and I always get the 'wrong username or password' . I have reinstalled everything again, deleted cookies, tried different browsers, but I cannot login as Admin. Any ides, what could be wrong?

Thanks

Offline

 

#17 Feb 3rd 2008 14:34

petercarter
Administrator

Re: I cannot login to the admin area

If you are getting the "wrong username or password" message, the problem is almost certainly a wrong username or a wrong password!
I wrote a little script a couple of months ago to solve the problem of how to get into your LoudBlog site when you had forgotten your user name or password.(OK you can find your "nickname" i.e. username by looking in the authors table of your database, but the password is encrypted in the database and there is no easy way of retrieving it).
Copy and paste the code below into WordPad, save it as a text only document with the name "newpassword.php". You can put in your new username/nickname and a new password by changing the bits indicated, otherwise the new user name is "newnickname" and the new password "newpassword". Load the file to the root directory of your Loudblog site i.e. the directory where install.php, get.php etc are. Then run [yoursiteurl]/newpassword.php. It will return "success!" if the rewriting is successful, or "failure!" if it isn't. Assuming "success", go to [yoursiteurl]/loudblog and log in.

Code:

<?php

//include database stuff and functions
include "loudblog/custom/config.php";
include "loudblog/inc/database/adodb.inc.php";
include "loudblog/inc/connect.php";
//insert your new password in the line below between the quotes
$newpassword = "newpassword";
//insert your new nickname/username below between the quotes
$newnickname = "newnickname";
$dosql = 
"UPDATE lb_authors SET
    password = '".md5($newpassword)."',
    nickname = '".$newnickname."'
WHERE id = '1'";

$GLOBALS['lbdata']->Execute($dosql);

$dosql = "SELECT * FROM lb_authors WHERE id = '1'";

$result = $GLOBALS['lbdata']->GetArray($dosql);

if (($result[0]['password']) == md5($newpassword)) {

echo "Success!";
}
else {
echo "Failure!"; }

?>

Then DELETE NEWPASSWORD.PHP from your site, otherwise we will all have fun changing your password!

Offline

 

#18 Feb 4th 2008 08:41

MsSchool
Member

Re: I cannot login to the admin area

Thanks a lot for the code. It worked great and I can log in

Offline

 

#19 Feb 20th 2008 23:48

ltx11
Member

Re: I cannot login to the admin area

axyris wrote:

problem solved! I just deleted the databases on my php server, made the loudblog setup again and filled on the required directory field for the podcast www.sitename/podcast instead of only www.sitename .
i don't know, what the problem was.. but it works now. fine

congratulations,now i'll try to solve my problem with you method!

download youtube

Offline

 

#20 Mar 5th 2008 11:34

ecofriend
Member

Re: I cannot login to the admin area

I was having the same problem with the latest version (as of Mar 5, 2008). I KNOW I was using the correct userid and password.

I deleted the LoudBlog database tables and did a reinstall and everything started work OK.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson