Previous Thread
Next Thread
Print Thread
Rate Thread
#208601 02/23/2001 12:26 PM
Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
After creating the first user (admin) and attempting the Admin link I recieve the following error:

Fatal error: Failed opening required 'languages/english/online.php' in ../main.inc.php on line 121

Line 121 in main.inc.php is this:

require ("languages/$lang[THIS_FILE]/online.php");

I checked my directories and languages/english/online.php is present. I'm guessing this is a 'path' problem. I checked my path variables, everything seems fine. Where shall I look? Any suggestions?
Thanks



Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
First place to probably look at the $thispath variable in main.inc.php. This needs to be configured to the main installation directory for the admin scripts to work.


UBB.threads Developer
Sally #208603 02/23/2001 12:57 PM
Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
Almost certain my $thispath variable is correct since if I change it to anything else I recieve this different error:

Warning: Failed opening '/home/sweetle/public_html/wwwthreads/admin/config.inc.php' for inclusion in ../main.inc.php on line 13

Warning: Failed opening '/home/sweetle/public_html/wwwthreads/admin/.inc.php' for inclusion in ../main.inc.php on line 14

Warning: Failed opening '/home/sweetle/public_html/wwwthreads/admin/theme.inc.php' for inclusion in ../main.inc.php on line 15

Warning: Failed opening '/home/sweetle/public_html/wwwthreads/admin/languages//generic.php' for inclusion in ../main.inc.php on line 41

Fatal error: sql is not a class in ../main.inc.php on line 43



Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
here's my absolute path:

/home/sweetle

path to html tree:

/home/sweetle/public_html

path to wwwthreads php installation:

/home/sweetle/public_html/wwwthreads

Here's what my $thispath variable is set in main.inc.php

$thispath = "/home/sweetle/public_html/wwwthreads";

And here is the error I recieve when trying to access the Admin section:

Fatal error: Failed opening required 'languages/english/online.php' in ../main.inc.php on line 121

Am I overlooking something obvious?


Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Can you try doing this:

Line 121 of main.inc.php currently looks like this:

require ("languages/$lang[THIS_FILE]/online.php");

Can you change that, to this:

require ("$config[path]/languages/$lang[THIS_FILE]/online.php");


UBB.threads Developer
Sponsored Links
Joined: Feb 2001
Posts: 31
User
User
Offline
Joined: Feb 2001
Posts: 31
That did the trick. Thank you.



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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)