Ticket #559 (closed defect: fixed)

Opened 21 months ago

Last modified 21 months ago

Broken config parsing in SVN from 6th March

Reported by: drigolin Owned by: xue
Priority: urgent Milestone: 3.1 Beta
Component: Prado Framework v3 Version: 3.1
Severity: block Keywords:
Cc:

Description

Description

Application configuration <module id="users"> must have a "class" attribute. Source File

/home/drigolin/public_html/prado-latest/framework/TApplication.php (1260)

1249: } 1250: 1251: // application modules 1252: if(($modulesNode=$dom->getElementByTagName('modules'))!==null) 1253: { 1254: foreach($modulesNode->getElementsByTagName('module') as $node) 1255: { 1256: $properties=$node->getAttributes(); 1257: $id=$properties->itemAt('id'); 1258: $type=$properties->remove('class'); 1259: if($type===null) 1260: throw new TConfigurationException('appconfig_moduletype_required',$id); 1261: $node->setParent(null); 1262: if($id===null) 1263: $this->_modules[]=array($type,$properties->toArray(),$node); 1264: else 1265: $this->_modules[$id]=array($type,$properties->toArray(),$node); 1266: $this->_empty=false; 1267: } 1268: } 1269: 1270: // services 1271: if(($servicesNode=$dom->getElementByTagName('services'))!==null) 1272: {

Stack Trace

#0 /home/drigolin/public_html/prado-latest/framework/Web/Services/TPageService.php(569): TApplicationConfiguration->loadFromXml(Object(TXmlElement), '/home/drigolin/...') #1 /home/drigolin/public_html/prado-latest/framework/Web/Services/TPageService.php(557): TPageConfiguration->loadApplicationConfigurationFromXml(Object(TXmlElement), '/home/drigolin/...') #2 /home/drigolin/public_html/prado-latest/framework/Web/Services/TPageService.php(241): TPageConfiguration->loadFromXml(Object(TXmlElement), '/home/drigolin/...') #3 /home/drigolin/public_html/prado-latest/framework/Web/Services/TPageService.php(140): TPageService->loadPageConfig('Posts.ListPost?', Object(TXmlElement)) #4 /home/drigolin/public_html/prado-latest/framework/TApplication.php(966): TPageService->init(Object(TXmlElement)) #5 /home/drigolin/public_html/prado-latest/framework/TApplication.php(934): TApplication->startService('page') #6 /home/drigolin/public_html/prado-latest/framework/TApplication.php(369): TApplication->initApplication() #7 /home/drigolin/public_html/prado-latest/demos/blog/index.php(21): TApplication->run() #8 {main}

2007-03-07 10:02 Apache/2.2.3 (Fedora) PRADO

Change History

Changed 21 months ago by xue

  • status changed from new to closed
  • resolution set to fixed

Please update your SVN copy. This issue should already be fixed.

Note: See TracTickets for help on using tickets.