modolabs / Kurogo-Mobile-Web

Kurogo is a PHP framework for delivering high quality, data driven customizable content to a wide range of mobile devices. Its strengths lie in the customizable system that allows you to adapt content from a variety of sources and easily present that to mobile devices from feature phones, to early generation smart phones, to modern devices and tablets
http://kurogo.org
GNU Lesser General Public License v2.1
198 stars 99 forks source link

v1.4 RC1: Creating new schedule in Athletics module does not correctly populate schedule.ini #48

Closed farkasp closed 12 years ago

farkasp commented 12 years ago

When creating a new schedule entry in the Athletics module (via the Admin GUI) an incomplete entry is written to schedule.ini as follows: [m-crew] RETRIEVER_CLASS = "CSTVDataRetriever" BASE_URL = "http://www.guhoyas.com/data/gu-event-info-2011.xml" Please note the missing entry that should have been included: SPORT = "m-crew" This results in the following error when loading the page for that sport: Sport must be defined Fatal error: Uncaught exception 'KurogoConfigurationException' with message 'Sport must be defined' in /GU/modolabs-Kurogo-Mobile-Web- e040489/lib/Athletics/CSTVDataRetriever.php:18 Stack trace:

0 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/DataRetriever.php(237):

init(array)

1 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/DataModel.php(110):

factory(string, array)

2 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/Calendar/

CalendarDataModel.php(151): init(array)

3 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/Athletics/

AthleticEventsDataModel.php(15): init(array)

4 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/DataModel.php(148):

init(array)

5 /GU/modolabs-Kurogo-Mobile-Web-e040489/app/modules/athletics/

AthleticsWebModule.php(264): factory(string, array)

6 /GU/modolabs-Kurogo-Mobile-Web-e040489/app/modules/athletics/

AthleticsWebModule.php(534): getScheduleFeed(string)

7 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/WebModule.php(1434):

initializeForPage()

8 /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/WebModule.php(1539):

setPageVariables()

9 /GU/modolabs-Kurogo-Mobile-Web-e040489/www/index.php(286):

displayPage()

10 {main}

thrown in /GU/modolabs-Kurogo-Mobile-Web-e040489/lib/Athletics/ CSTVDataRetriever.php on line 18 This is corrected by adding the appropriate entry in the config file, but it would be preferred to have the entry made properly when it is inserted. Regards, Peter Farkas