The Article is posted as normal.
Ideas?
The 675 line is
Code: Select all
if(stripos($base, JURI::base()) !== 0 && !empty($host)) {
Moderator: General Support Moderators
Code: Select all
if(stripos($base, JURI::base()) !== 0 && !empty($host)) {
Code: Select all
function stripos($haystack, $needle){
return strpos($haystack, stristr( $haystack, $needle ));
}
Code: Select all
if(stripos($base, JURI::base()) !== 0 && !empty($host)) {
Code: Select all
if(strpos($base,stristr($base,JURI::base())) !== 0 && !empty($host)) {
A simple search for strpos would have found you the solution in minutes.ausref wrote:Thanks for the solution. Also rather annoyed that this still hasn't been updated on the main page with any kind of warning... it's all well and good that mistakes will be made but unless prompt action is taken to rectify them, people will lose patience. In my case this problem just took down my only income-producing site for over 12 hours.
http://forum.joomla.org/viewtopic.php?f=430&t=324441mcsmom wrote:I'm looking for other threads on the login issue but not seeing them. Can you give me some links?
Will do. I patched the stripos() code because I was specifically trying to beta test a component on PHP4 on J1.5.7, so I'll create a new perfectly clean occurrence of J1.5.7 and see if I can reproduce it, with no components installed etc. Give me a couple of hours and I'll be back.Also please run forum post assistant and paste the results.
Also say what extensions you have installed
Will do but the error message was appearing on my standard config of error reporting (it is a dev server so is fairly high) as: Fatal error: Call to undefined function: stripos() in /home/.../www/joomla/libraries/joomla/environment/uri.php on line 675Please turn error reporting to maximum and do some tests..
OK the situation I can tell you about is: login module, no-login redirection, this was when it produced the above error.Please explain EXACTLY what happens when you try to log in.
Please do this for using the login module and using the component (menu link). Also try it without any redirect on login and with a redirect.
I tried this correction but it didn't work instead it through up parse errors.MarkCII wrote:Replace line 675 in /libraries/joomla/environment/uri.phpWithCode: Select all
if(stripos($base, JURI::base()) !== 0 && !empty($host)) {
Code: Select all
if(strpos($base,stristr($base,JURI::base())) !== 0 && !empty($host)) {