Forum Moderators: coopster

Message Too Old, No Replies

Failed to install php CMS on linux

Failed to install CMS appn

         

kennethckk

2:01 pm on Jul 28, 2004 (gmt 0)

10+ Year Member



Hi all,

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

vincevincevince

9:43 am on Jul 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are your sessions working properly?

Warning: Failed opening'language/lang-.php'for inclusion

It looks like a session variable which relates to which language you are using isn't being set / being lost.

ergophobe

8:21 pm on Jul 31, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Like VVV said, it's probably building the filename with something like

$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?).