require_once( 'settings.php' );

Dragonfly integration forum

require_once( 'settings.php' );

Postby DiscoWay » Thu Feb 15, 2007 3:49 am

After installing WoWRosterDF I configure roster and then goto click on the update profile link and I get this error.

Fatal error: main() [function.require]: Failed opening required 'settings.php' (include_path='.:') in /var/www/vhosts/nomad-legacy.net/httpdocs/modules/WoWRosterDF/update.php on line 34

So i tried other links in the menu like Honor or key or Guild Info, they all give me the same error above.

Seems it can't get past this line

require_once( 'settings.php' );

I did all the configuration, so im not sure what it is im missing. Im sure i forgot something though, i always do...
User avatar
DiscoWay
WR.net Apprentice
WR.net Apprentice
 
Posts: 25
Joined: Mon Feb 12, 2007 11:40 pm

require_once( 'settings.php' );

Postby zanix » Thu Feb 15, 2007 4:05 am

I think perhaps every file must be updated to use the full path to include settings.php

Almost every file would need to be changed
Either anaxent or I will fix this for RosterDF 1.7.3.1
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

require_once( 'settings.php' );

Postby DiscoWay » Thu Feb 15, 2007 4:13 am

Oh, yea your right,

I changed it to

require_once( 'modules/WoWRosterDF/settings.php' );

And it proceeded to the updates page, think ill just go through it and make all the changes, maybe ill learn something or two about coding =p
User avatar
DiscoWay
WR.net Apprentice
WR.net Apprentice
 
Posts: 25
Joined: Mon Feb 12, 2007 11:40 pm

require_once( 'settings.php' );

Postby zanix » Thu Feb 15, 2007 4:19 am

Nice

The way we'll will fix it is to get the current path to the file and prepend that the the include

Code: Select all
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'settings.php'); 


This is assuming the settings.php file is in the same directory as the file you are editing

This was if you move the directory, it will still work
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

require_once( 'settings.php' );

Postby Anaxent » Thu Feb 15, 2007 4:51 am

I have updated the all the files in the current download fixing this issue.
User avatar
Anaxent
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 642
Joined: Tue Jul 04, 2006 6:27 am
Location: Phoenix, Az


Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron