Rev [449] Cannot use string offset as an array

View planned events from the WoW AddOn GroupCalendar

Moderator: Ulminia

Rev [449] Cannot use string offset as an array

Postby AnthonyB » Fri Jul 17, 2009 3:42 pm

Just tried an upload and got the following error:
Fatal error: Cannot use string offset as an array in C:\inetpub\wwwroot\roster\addons\GroupCalendar\inc\update_hook.php on line 119


Live 119
Code: Select all
if (isset($calendar_data[$eid]['GuildOnly']) && $calendar_data[$eid]['GuildOnly'] == $roster->data['guild_name'] OR $calendar_data[$eid]['Attendance'][0]['Guild'] == $roster->data['guild_name'] ){


Attached is my GroupCalendar.lua
Attachments
GroupCalendar.zip
GroupCalendar.lua
(23.42 KiB) Downloaded 86 times
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

Re: Rev [449] Cannot use string offset as an array

Postby Ulminia » Fri Jul 17, 2009 4:46 pm

change "$calendar_data[$eid]['Attendance'][0]['Guild']" to "$calendar_data[$eid]['Attendance']['0']['Guild']"

should do it i think....
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: Rev [449] Cannot use string offset as an array

Postby AnthonyB » Fri Jul 17, 2009 4:53 pm

Thanks Ulminia. Just tried that - same result.
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

Re: Rev [449] Cannot use string offset as an array

Postby Ulminia » Fri Jul 17, 2009 9:56 pm

remove like 119 and the closing } after $id_counter++; ... guild only is no longer used in GC anymore ... its some other veriable now that i dont know of..
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: Rev [449] Cannot use string offset as an array

Postby AnthonyB » Sat Jul 18, 2009 9:34 am

OK, so commented out Lines 119 and 207.
Did upload
Parsing files

Parsed GroupCalendar in 0.14 seconds

Processing Files

Guild Group Calendar
Data Uploaded
Updated 43 Records in the Calendar


Successful upload :)
http://anthonyb.dyndns.org/roster/index ... dar&a=g:17

So, quick glace still shows following outstanding issues:

* there are some missing raid/instance icons missing (because we've introduced lots of new WotLK raids)
* The instance reset icon pathing is wrong and/or the icons are missing. So, with the GroupCalendar path variable set to "/Roster/addons/Groupcalendar/" my resultant icon path is "http://anthonyb.dyndns.org/roster/addons/GroupCalendar/images/icons/nax.gif" but there is no icons directory...
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

Re: Rev [449] Cannot use string offset as an array

Postby Ulminia » Sun Jul 19, 2009 12:33 am

ial make a patch next day or so...
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com


Return to Group Calendar

Who is online

Users browsing this forum: No registered users and 0 guests

cron