Problems running some new addons

Here you can find plenty of help with your general coding needs and projects
If it is about a specific program, use the corresponding forum
DO NOT ask basic questions such as "How do I print a variable", use Google for that

Problems running some new addons

Postby Tango » Thu Apr 12, 2007 8:15 am

When I try to load several of the addons I keep getting an error that basically states that there was a failure opening a file. This typically looks like the following:
Warning: main(functions.php): failed to open stream: No such file or directory in /home/duntao/public_html/wow/roster/addons/factionrewards/index.php on line 18
Fatal error: main(): Failed opening required 'functions.php' (include_path='') in /home/duntao/public_html/wow/roster/addons/factionrewards/index.php on line 18

The files are all in the correct directories. They seem to have the correct name. The line numbers reference the file that the error says is missing.

I have asked in the specific addon forums and have not recieved a response. I've searched the boards but I have not seen anything similar. At this point I'm thinking it might be something on my end that I'm doing wrong.

The version of Roster that I'm running is: 1.7.3
Apache Version: 2.0.54
PHP Version: 4.4.0
SQL Version: 4.0.25

When I go to rosterdiag.php is shows that safe_mode, open_basedir, and allow_url_open are all turned off. At the bottom of that page is a message which reads, "fopen_url is NOT Supported by your Web Server."

My test copy of the Roster can be found here. I've deleted most of the addons that gave this error, but it can still be seen with ArmorySynch, Craft Specialization, and Faction Rewards.

Is there any other information you need from me to assist with this?

Thanks in advance!
Tango
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Wed Apr 11, 2007 3:35 am

Problems running some new addons

Postby zanix » Thu Apr 12, 2007 8:58 am

You have a password protecting your Roster

Remove the password so we can help
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

Problems running some new addons

Postby PleegWat » Thu Apr 12, 2007 5:40 pm

Rosterdiag works. Nearly all files have been modified (md5 does not match). Can't do diffs cause allow_url_fopen is disabled.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Problems running some new addons

Postby Tango » Fri Apr 13, 2007 1:50 am

Sorry, forgot about the password. It's been removed.
Tango
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Wed Apr 11, 2007 3:35 am

Problems running some new addons

Postby zanix » Fri Apr 13, 2007 8:24 am

You are on a linux server, so files and directory names are case sensative

Make absolutely this path is correct
Code: Select all
/home/duntao/public_html/wow/roster/addons/factionrewards/index.php
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

Problems running some new addons

Postby PleegWat » Fri Apr 13, 2007 3:54 pm

Include path is empty. My first bet is, the addon specified

Code: Select all
require('functions.php'); 


Try modifying it to

Code: Select all
require($addonDir.'functions.php'); 


if that's the case.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Problems running some new addons

Postby Tango » Sat Apr 14, 2007 2:53 am

Thank you PleegWat! Making that change fixed the problem :)

I appreciate the help, everyone!
Tango
WR.net Apprentice
WR.net Apprentice
 
Posts: 11
Joined: Wed Apr 11, 2007 3:35 am


Return to General Code Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron