Joomla admin login problem - authentication

I've been having this problem on one of my Joomla sites for a while....when trying to login at the backend, the page just refreshes to the login form again. The same thing happens for the login at the frontend.
After some searching, I came across this link but I've tried all the suggestions there and none work for me. Plus my database tables are all OK. On my local setup, the site works just fine...I just imported the database to the hosting server. Then used SSH to restore the zip file from my computer.
Any ideas?

This time, for me to fix the issue, I had to change a line in the config.php file.
I changed
var $session_handler = 'database';
to
var $session_handler = 'none';
I'm not sure if it makes a difference to this particular task, but I also have a non-standard
var $lifetime = '60';
Thank you very much. Had a tough time before I found this solution, thank you.

We are a small uk Web Design agency, Joomla is our CMS of choice.
I/We've had this problem a few times. Actually, yes this problem does occur most noticably during server migrations.
This time, for me to fix the issue, I had to change a line in the config.php file.
I changed
var $session_handler = 'database';
to
var $session_handler = 'none';
Im not sure if it makes a difference to this particular task, but I also have a non-standard
var $lifetime = '60';
I can remember that last time, I had to empty the session table also (probably jos_session for you , unless you have picked a different prefix)
And this is how Jim fixed it for me, hope it works for you.

I had a problem very similar to this a while back. PHP wasn't able to write to it's session directory (or it didn't exist), so it just kept dropping sessions on login.
You can find this directory in the PHP.ini file. I think it's called session.save_path On Ubuntu it was in /var/lib/php5.

I too, have had this issue in Joomla 2.5 when using SSL. The admin panel will be working fine, and suddenly I could not login.
Turning off SSL (which is not an acceptable fix) worked, but I tried adding
public $cookie_domain = 'yourDomainHere.com';
in configuration.php and it seems to be working correctly for now.

I found this:
session.cookie_secure must be set to 0
add this to you server php.ini
session.cookie_secure = 0
or local php.ini
restart apache

f you are on Joomla 1.7 or 3.4 then here's my research and solution:
The admin doesn't works when you accidently disables the plugins related to user authentication or login.
Joomla 1.7 and 3.4 doesn't have jos_users table, and instead it stores all plugins in jos_extensions table for 1.7 and init_extensions for 3.4
Solution except if you are using a different prefix for your tables
Go to jos_extensions or init_extensions table and look for plugins like plg_authentication_joomla, plg_authentication_ldap, plg_user_joomla, com_login and com_users.
Once you find them then make sure they are enabled in jos_extensions or init_extensions table.
Update the enabled column from '0' to '1' for all above columns (plugins) in jos_extensions table, and make sure you hit the 'Go' button to save the updates to database.
Voila, and you are now back to the login admin form.
The post was helpful to me since it gave me enough pointers to find the exact root cause. However the original solution of this post was for Joomla 1.5 and 1.7 but I had to dig in for Jooma 3.4 and managed to fix my problem.
Thanks everyone for sharing and good luck!

Related

PHPBB 3.0.1 website migrating to new hosting service

I am trying to find some guidance on where to go next on the issue I am having migrating a phpbb3 site from one hosting service to another.
I have checked to make sure the config.php file has been changed to work on the new server, as well as the common.php file. I am getting a HTTP 500 error when I try to search for the forum. The main site is working normally, just the message board is having a problem.
Nothing about the structure of the sites pages has changed, only the hosting server. (I downloaded a copy of the website before moving it so I have everything in the exact way it was before, just on the new server.)
Do I need to install phpbb onto the server itself with Softaculous?
Anything would help, I need to get the site back up and running soon.
Thanks in advance.
Jacob
This post would have been better addressed on phpBB.com support section...
In any cases most hosting companies out there will perform the migration for you for free.
Did you ask about handling a migration for you?
There are many things that need to be done when migrating to a new hosting.
here a couple of pointers for you:
-PHP version in use should be PHP 5.6.x as phpBB 3.0.x does not support higher PHP versions
-config.php might need updating, for example these two fields:
$dbhost = '';
$dbport = '';
-check your error logs in your cPanel as they will reveal the cause of the 500 error
Also, NO you do not need Softaculous
I'll be happy to help you with this if you PM me on:
https://www.phpbb.com/community/memberlist.php?mode=viewprofile&u=1428301
-SiteSplat
The php version on the new hosting services server was above what phpBB 3.0.x needed. I upgraded phpBB to version 3.2.9 and the issue was resolved.

Apache won't stop using old project files / refuse to remove old cache

I am using Apache httpd on localhost to connect to the project I'm working on, I have been deleting web cache when website is showing the old project instead of the new one. However recently the project is stuck on an outdated version and restarting/clearing cookies won't work with the user I'm assigned.
I tried using another user with my project and it works just fine. I recently did use svn revert which may have caused my user to get stuck with old project, but I'm not sure that's the problem.
Commands I use to start and stop:
sudo service httpd start
sudo service httpd stop
Any advice or tips are greatly appreciated.
Update: I managed to get the page to update the html, however my JavaScript won't load which I suspect is due to another user being stored and thus not accessing the database I use which leads to nothing being generated.
(Posted on behalf of the OP).
I got everything to "work" again by accident, I made some edits to PHP and my PHP crashed because of a syntax error. When I fixed it back to original stage it was working again. It most likely is related to a user the previous owner created that caused the problem.
Just clear Temporary files
In windows CTRL+R and type %temp% and delete all the files it will help to you

WAMP Phpmyadmin Login Still Don't Display

Okay, I know it may sound stupid but I really need your opinions or suggestions about something. A computer has an older WAMP version (5 1.7.0) installed in it (I'm not the one who installed it) and running on Windows XP. Whenever I go to its Phpmyadmin page, it automatically gives me access to anything what are in it. That's a security hole that must be solved. I want it to ask me or prompt a login page first. I still have no success from the following steps that I've tried:
I have set the username as root and the password as
samplepass from the Priveleges section in the Phpmyadmin page - Still no success!
I also modified the config.inc.php file. I put the said password in $cfg['Servers'][$i]['password'] and changed the "cookie" as "config" in $cfg['Servers'][$i]['auth_type'] - Still no success!
Already restarted the connection of all WAMP services after the changes made - Still no success!
I also cleared the histories, caches, cookies, etc. in the browsers just incase - Still no success!
One thing I've noticed is that the file has no $cfg['Servers'][$i]['AllowNoPassword'] nor $cfg['Servers'][$i]['AllowNoPasswordRoot'] in it. I tried including that into the file and providing it the value as "YES" but still, no login page is displaying.
I don't want to reinstall the WAMP or install new one. I'm afraid to destroy what was already there. So what do you think why the login page is still not displaying? Am I forgetting something or missed to do? (Sorry for sometimes I'm forgetful).
Alright, just after trying the things out again with still no success, I came up with this:
I changed back the value of $cfg['Servers'][$i]['auth_type'] from "config" to "cookie"
Then I added a random text value for $cfg['blowfish_secret']
After the (2) changes I made, I restarted the all the services again and poof! Login page is now displaying! But I'm still confused why my first tries didn't work. I'm not a know-it-all person about this particular area and sure there's more things to know about database thing. That's all.

Wordpress posts showing in SQL database but not in Dashboard

I transfered my site and I have a problem:
I cannot see any Worpdress posts that I had, and when I go inside my phpMyAdmin they are there, in wp-posts table.
All of the URLs are correct and the rest of the URL paths and everything is fine.
Does anyone have an idea how to restore that posts from SQL?
Did you change the database connection credentials in wp-config.php? If you transferred to another host, you would most likely need to change these credentials.
I was having a similar problem, and solved it by using the export/import tools included in WP (tools > export from old site; tools > import > install WPimporter > import on new site)
Old issue, but just happened to me. Between dev and production.
Production had a lot of content updates, but dev had latest code, so i imported only the posts and postmeta along with taxonomy etc. The posts did not appear in wp-admin and would return 404 if accessed in frontend.
The solution was to iterate through all posts and call wp_update_post(array('ID'=>$postID)) and it worked.

Cannot login in Joomla

I'm having some trouble getting a Joomla 1.5 installation to work on my computer.
When I login, it seems to work as JApplication::login() returns true. Also when I debug and var_dump the response, I can see the user.
However, when I reload the page, I'm still not logged in so it seems Joomla didn't save the current session.
I've looked in the framework and can't find how sessions are saved. Also the log is empty.
Does anybody know what could be the problem?
Do you have the same problem in the administrator and in the frontend? If you do have access to your administrator, it might be a frontend problem. You can check the file "configuration.php" in your joomla root, and look for this line:
var $session_handler = 'database';
If it's empty, it means you've had some problem saving your configuration. The usual values for "session_handler" are 'database' or 'file', and you might have some others depending on your setup.
If your session_handler is ok, then check this value too:
var $lifetime = '15';
It's the session lifetime if I'm not wrong.
If you're still having problems, you should check in a separate script (not Joomla) if you can use sessions, just to make sure you haven't problems with your local set up.
I hope it helped!