svn[1730] - memberslist.php - Undefined index: url_path

Posts from previous Beta sessions

svn[1730] - memberslist.php - Undefined index: url_path

Postby AnthonyB » Wed Mar 12, 2008 4:40 pm

Just updated from 1729 to 1730 and had the following error introduced:

Code: Select all
PHP Errors
addons\memberslist\inc\memberslist.php
  Notice line 68: Undefined index: url_path


Line 67-68 was:
Code: Select all
// Set the js in the roster header
$roster->output['html_head'] .= '<script type="text/javascript" src="' . ROSTER_PATH . 'addons/' . $basename . '/js/sorttable.js"></script>'


Line 67-68 changed to:
Code: Select all
// Set the js in the roster header
$roster->output['html_head'] .= '<script type="text/javascript" src="' . $addon['url_path'] . 'js/sorttable.js"></script>';
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia

svn[1730] - memberslist.php - Undefined index: url_path

Postby zanix » Wed Mar 12, 2008 9:42 pm

url_path is set in functions.lib.php in the function getaddon()

What page is this on?
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

svn[1730] - memberslist.php - Undefined index: url_path

Postby Diska » Thu Mar 13, 2008 4:31 am

I've got this on the main page, and the "+" symbols (for decollapsing alts) don't trigger anything
http://blazeofglory.game-host.org/roster
User avatar
Diska
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 179
Joined: Tue Jul 04, 2006 2:05 pm

svn[1730] - memberslist.php - Undefined index: url_path

Postby zanix » Thu Mar 13, 2008 6:52 am

Change $addon in the line to $this->addon
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

Re: svn[1730] - memberslist.php - Undefined index: url_path

Postby AnthonyB » Thu Mar 13, 2008 8:08 am

Yep - that fixed it.

Have committed change to SVN [1731]
Roster 2.0.2 svn [latest] latest trunk SVN svn [latest] running on IIS7/Windows Server 2008 SP2 | MySQL 5.0.85 | PHP 5.2.10 | Yes, Roster and PHP rocks on IIS! Even run as FastCGI extension!
User avatar
AnthonyB
Gimpy Developer
Gimpy Developer
 
Posts: 346
Joined: Tue Jul 04, 2006 2:44 pm
Location: Sydney, Australia


Return to Archived

Who is online

Users browsing this forum: No registered users and 0 guests

cron