UBB.Dev
Posted By: Shalazar Private messages, 5.1.2b - 11/22/2000 4:56 AM
I'm into the install of 5.1.2b PHP, and when reading private messages, I get the following error:

Fatal error: Failed opening required '/my/path/to/wwwthreads/languages//viewmessage.php'

Notice that the language directory portion of the path is left empty. It's almost as if the query is not selecting, or passing the proper language to the require function.

That line reads:
// -----------------------------
// Switch to the proper language
if (!$Language) {
$Language = $config[language];
}
require "$config[path]/languages/$Language/viewmessage.php";

If I manually code it to english, I get the same error for line 210 which is similar in its coding. Changing both lines manually to english allows the script to run unhindered.

I notice that, in the w3t_Users table, you either have a language the user has selected, or NULL. Now, NULL will leave the $Language variable declared, so I'm curious if the if statement is inherently flawed becaues the $Language variable will never NOT exist.

I've tried using isset($Language) and its various permutations in the if statement, but can't seem to get around the error.

Any ideas?

---------
Shalazar
http://www.charisma-carpenter.com
© UBB.Developers