Forum Moderators: coopster
I got Apache/php/mysql installed on my Redhat9 linux platform. I got the similar error message when i intended to instal:l phpNuke & Mombo CMS on this linux box. I got osCommerce installed and looked running quite well. Hence, I,m not sure if it's related to php as I'm newbie to php. Could someone help to advise if I missed to do something in the config file to make it works.
Error messages are:
Warning: Failed opening'language/lang-.php'for inclusion(include_path='.:/usr/share/pear')in /usr/www/html/mainfile.php on line 172.
Warning: Failed opening.....(similar but on other line..)
Thanks in advance /kennethckk
$lang-file = "language-" . $_SESSION['lang'] . ".php";
but $_SESSION['lang'] is empty.
You would assume it would default to something, but check your setup.
Try this:
echo "<pre>";
print_r($_SESSION);
echo "</pre>";
That will give you a nice listing of all active session variables.
Also, look at the line were the script fails (line 172) and look at how the file is being included. Is it something like
include($variable_name);
If so, try to find out where/how that variable is being defined (i.e. when it's on the left side of the equals, what's on the right side?).