Blog
Website Design News
I upgraded my site & users can't log into the front end!
Website Design News
I upgraded my site & users can't log into the front end!
From Joomla! version 1.5.7 onwards, security has been tightened with regards to login redirection which means that if the server on which you are hosting your websites is running an out-of-date version of PHP (i.e. version 4x or earlier www.php.net) you will get an error message occur similar to this when you try to log into the front end:Fatal error: Call to undefined function: stripos() in /libraries/joomla/environment/uri.php on line 675
To resolve this, a simple change needs to be made to the following file:
Use an FTP client to navigate to the following file, which you will find inside your joomla root directory (e.g. if your Joomla site is installed to a folder called "Joomla" then look inside that folder for one called Libraries, then inside that, look for a folder called joomla, then utilities, then compat):
/libraries/joomla/utilities/compat/php50x.php
At the end of this file, you need to add in a small bit of code to make the compatibility work:
function stripos( $haystack, $needle, $offset = 0 ) {
return strpos( strtolower( $haystack ), strtolower( $needle ), $offset );
}

