I have been trying to understand the problem a little more. One thing that I have learned is that my previous comments were not quite right, indicating that I do not fully understand $live_site myself! However:
If you have something in $live_site the block of code referencing PHP_SAPI is not executed. So that might indicate there is something amiss with your $_SERVER['PHP_SELF'] and/or $_SERVER['SCRIPT_NAME'] variables or that Joomla is using the wrong one. Could you tell us what is in those two variables and the value of PHP_SAPI? I realise you said both are set to the same value, but what happens in the cleanup line?
If you have something in $live_site the block of code referencing PHP_SAPI is not executed. So that might indicate there is something amiss with your $_SERVER['PHP_SELF'] and/or $_SERVER['SCRIPT_NAME'] variables or that Joomla is using the wrong one. Could you tell us what is in those two variables and the value of PHP_SAPI? I realise you said both are set to the same value, but what happens in the cleanup line?
Statistics: Posted by ceford — Fri Nov 29, 2024 7:43 am