Previous Thread
Next Thread
Print Thread
Rate Thread
#206293 11/21/2000 9:56 PM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
Joined: Mar 2000
Posts: 84
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

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)