Today I suddenly meet an error for my syfmony project, this is symfony 1.0 project, the error message is as follows:
******************* [sfParseException] You must specify a "moduleName" stack trace * at () in SF_ROOT_DIR\lib\symfony\generator\sfCrudGenerator.class.php line 52 ... 49. $error = 'You must specify a "%s"'; 50. $error = sprintf($error, $entry); 51. 52. throw new sfParseException($error); 53. } 54. } 55. * at sfCrudGenerator->generate(array('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/template.css', array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array ('name' => 'GD')), array('title' => 'New Registrations', array('id', 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', 'i_agree', 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' => '20', array(array(), array(array('admin'))), array (array(array('admin')))), array(array(array(array('admin')), '_list' => '', array(array('admin')), array(array('admin')))))) in SF_ROOT_DIR\lib\symfony\generator \sfGeneratorManager.class.php line 56 ... 53. { 54. $generator = new $generator_class(); 55. $generator->initialize($this); 56. $data = $generator->generate($param); 57. 58. return $data; 59. } * at sfGeneratorManager->generate('sfPropelAdminGenerator', array ('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/ template.css', array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array('name' => 'GD')), array('title' => 'New Registrations', array('id', 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', 'i_agree', 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' => '20', array(array(), array(array('admin'))), array(array(array ('admin')))), array(array(array(array('admin')), '_list' => '', array (array('admin')), array(array('admin')))))) in SF_ROOT_DIR\lib\symfony\config \sfGeneratorConfigHandler.class.php line 75 ... 72. $generatorParam['moduleName'] = $match[1]; 73. } 74. 75. $data = $generatorManager->generate($config ['class'], $generatorParam); 76. 77. // compile data 78. $retval = "<?php\n". * at sfGeneratorConfigHandler->execute(array('D:\websites\aes \config/../data/symfony/config/generator.yml', 'D:\websites\aes\apps \admin/modules/registrations/config/generator.yml')) in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 103 ... 100. if ($handlerToCall) 101. { 102. // call the handler and retrieve the cache data 103. $data = $handlerToCall->execute($configs); 104. 105. $this->writeCacheFile($handler, $cache, $data); 106. } * at sfConfigCache->callHandler('modules/registrations/config/ generator.yml', array('D:\websites\aes\config/../data/symfony/config/ generator.yml', 'D:\websites\aes\apps\admin/modules/registrations/ config/generator.yml'), 'D:\websites\aes\cache\admin\dev\config/ modules_registrations_config_generator.yml.php') in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 190 ... 187. if (!is_readable($cache) || $mtime > filemtime ($cache)) 188. { 189. // configuration has changed so we need to reparse it 190. $this->callHandler($configPath, $files, $cache); 191. 192. // clear process cache 193. if ('config/config_handlers.yml' != $configPath && sfConfig::get('sf_use_process_cache') && ! $process_cache_cleared) * at sfConfigCache->checkConfig('modules/registrations/config/ generator.yml', '1') in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 248 ... 245. */ 246. public function import($config, $once = true, $optional = false) 247. { 248. $cache = $this->checkConfig($config, $optional); 249. 250. if ($optional && !$cache) 251. { * at sfConfigCache->import('modules/registrations/config/ generator.yml', '1', '1') in SF_ROOT_DIR\lib\symfony\controller\sfController.class.php line 194 ... 191. } 192. 193. // check for a module generator config file 194. sfConfigCache::getInstance()->import (sfConfig::get('sf_app_module_dir_name').'/'. $moduleName.'/'.sfConfig::get('sf_app_module_config_dir_name').'/ generator.yml', true, true); 195. 196. if (!$this->actionExists($moduleName, $actionName)) 197. { * at sfController->forward('registrations', 'list') in SF_ROOT_DIR\lib\symfony\controller \sfFrontWebController.class.php line 48 ... 45. $actionName = $request->getParameter ('action'); 46. 47. // make the first request 48. $this->forward($moduleName, $actionName); 49. } 50. catch (sfException $e) 51. { * at sfFrontWebController->dispatch() in SF_ROOT_DIR\web\admin_dev.php line 10 ... ****************************************************** I never meet this error before. The strange thing is even I used symfony propel-init-admin admin registrations registrations to regenerate the same module backend, the same error happened. It is pretty weird. Please help with some of your ideas. Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---