プロジェクト

全般

プロフィール

Bug(バグ) #1245

アルバムを作成するとき、エラーが発生

rong yanほぼ14年前に追加. 13年以上前に更新.

ステータス:
New(新規)
優先度:
Normal(通常)
担当者:
-
対象バージョン:
-
開始日:
2010-07-01
期日:
進捗率:

0%

3.6 で発生するか:
No
[QA]バグ通知済:
いいえ
3.8 で発生するか:
Unknown (未調査)

説明

こちらの開発環境:
OpenPNE 3.0
Symfony 1.2 (デフォルトORMはPropelです)

今私は「opAlbumPlugin 0.9.4」をインストールしました、アルバムpluginをホームページに追加しました。

ホームページをアクセスする時、アルバムpluginが表示できます。

しかし、アルバムを新規追加するとき、下記のエラーは発生しまった:

500 | Internal Server Error | Doctrine_Table_Exception
Class "BaseObject" must be a child class of Doctrine_Record
stack trace

  • at ()
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Table.php line 288 ...
    285. } while ($class = get_parent_class($class));
    286.
    287. if ($class === false) {
    288. throw new Doctrine_Table_Exception('Class "' . $name . '" must be a child class of Doctrine_Record');
    289. }
    290.
    291. // reverse names
  • at Doctrine_Table->initDefinition()
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Table.php line 228 ...
    225. $this->_parser = new Doctrine_Relation_Parser($this);
    226.
    227. if ($initDefinition) {
    228. $this->record = $this->initDefinition();
    229.
    230. $this->initIdentifier();
    231.
  • at Doctrine_Table->__construct('Member', object('Doctrine_Connection_Mysql'), 1)
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine\Connection.php line 1128 ...
    1125. in_array('Doctrine_Table', class_parents($class))) {
    1126. $table = new $class($name, $this, true);
    1127. } else {
    1128. $table = new Doctrine_Table($name, $this, true);
    1129. }
    1130.
    1131. $this->tables[$name] = $table;
  • at Doctrine_Connection->getTable('Member')
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine\Doctrine.php line 922 ...
    919. /
    920. public static function getTable($componentName)
    921. {
    922. return Doctrine_Manager::getInstance()->getConnectionForComponent($componentName)->getTable($componentName);
    923. }
    924.
    925. /
    *
  • at Doctrine::getTable('Member')
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\routing\sfDoctrineRoute.class.php line 81 ...
    78.
    79. protected function getObjectsForParameters($parameters)
    80. {
    81. $this->options['model'] = Doctrine::getTable($this->options['object_model']);
    82.
    83. $variables = array();
    84. $values = array();
  • at sfDoctrineRoute->getObjectsForParameters(array('module' => 'album', 'action' => 'listMember', 'id' => '1'))
    in SF_ROOT_DIR\symfony1.2\lib\plugins\sfDoctrinePlugin\lib\routing\sfDoctrineRoute.class.php line 57 ...
    54.
    55. protected function getObjectForParameters($parameters)
    56. {
    57. $results = $this->getObjectsForParameters($parameters);
    58.
    59. // If query returned Doctrine_Collection with results inside then we
    60. // need to return the first Doctrine_Record
  • at sfDoctrineRoute->getObjectForParameters(array('module' => 'album', 'action' => 'listMember', 'id' => '1'))
    in SF_ROOT_DIR\symfony1.2\lib\routing\sfObjectRoute.class.php line 109 ...
    106. }
    107.
    108. // check the related object
    109. if (!($this->object = $this->getObjectForParameters($this->parameters)) && (!isset($this->options['allow_empty']) || !$this->options['allow_empty']))
    110. {
    111. throw new sfError404Exception(sprintf('Unable to find the %s object with the following parameters "%s").', $this->options['model'], str_replace("\n", '', var_export($this->filterParameters($this->parameters), true))));
    112. }
  • at sfObjectRoute->getObject()
    in SF_ROOT_DIR\plugins\opAlbumPlugin\lib\action\opAlbumPluginActions.class.php line 24 ...
    21. {
    22. if (is_callable(array($this->getRoute(), 'getObject')))
    23. {
    24. $object = $this->getRoute()->getObject();
    25. if ($object instanceof Album)
    26. {
    27. $this->album = $object;
  • at opAlbumPluginActions->preExecute()
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfExecutionFilter.class.php line 89 ...
    86. protected function executeAction($actionInstance)
    87. {
    88. // execute the action
    89. $actionInstance->preExecute();
    90. $viewName = $actionInstance->execute($this->context->getRequest());
    91. $actionInstance->postExecute();
    92.
  • at sfExecutionFilter->executeAction(object('albumActions'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfExecutionFilter.class.php line 76 ...
    73. return sfView::SUCCESS;
    74. }
    75.
    76. return $this->executeAction($actionInstance);
    77. }
    78.
    79. /**
  • at sfExecutionFilter->handleAction(object('sfFilterChain'), object('albumActions'))
    in SF_ROOT_DIR\lib\filter\sfOpenPNEExecutionFilter.class.php line 34 ...
    31.
    32. try
    33. {
    34. $result = parent::handleAction($filterChain, $actionInstance);
    35. }
    36. catch (opRuntimeException $e)
    37. {
  • at sfOpenPNEExecutionFilter->handleAction(object('sfFilterChain'), object('albumActions'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfExecutionFilter.class.php line 42 ...
    39. {
    40. $timer = sfTimerManager::getTimer(sprintf('Action "%s/%s"', $actionInstance->getModuleName(), $actionInstance->getActionName()));
    41.
    42. $viewName = $this->handleAction($filterChain, $actionInstance);
    43.
    44. $timer->addTime();
    45. $timer = sfTimerManager::getTimer(sprintf('View "%s" for "%s/%s"', $viewName, $actionInstance->getModuleName(), $actionInstance->getActionName()));
  • at sfExecutionFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfCommonFilter.class.php line 29 ...
    26. public function execute($filterChain)
    27. {
    28. // execute next filter
    29. $filterChain->execute();
    30.
    31. // execute this filter only once
    32. $response = $this->context->getResponse();
  • at sfCommonFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\lib\filter\opEmojiFilter.class.php line 29 ...
    26. */
    27. public function execute($filterChain)
    28. {
    29. $filterChain->execute();
    30.
    31. $response = $this->getContext()->getResponse();
    32. $request = $this->getContext()->getRequest();
  • at opEmojiFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfBasicSecurityFilter.class.php line 62 ...
    59. }
    60.
    61. // the user has access, continue
    62. $filterChain->execute();
    63. }
    64.
    65. /**
  • at sfBasicSecurityFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\lib\filter\opCheckEnabledApplicationFilter.class.php line 39 ...
    36. }
    37. }
    38.
    39. $filterChain->execute();
    40. }
    41. }
    42.
  • at opCheckEnabledApplicationFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfRenderingFilter.class.php line 33 ...
    30. public function execute($filterChain)
    31. {
    32. // execute next filter
    33. $filterChain->execute();
    34.
    35. // get response object
    36. $response = $this->context->getResponse();
  • at sfRenderingFilter->execute(object('sfFilterChain'))
    in SF_ROOT_DIR\symfony1.2\lib\filter\sfFilterChain.class.php line 53 ...
    50. }
    51.
    52. // execute the next filter
    53. $this->chain[$this->index]->execute($this);
    54. }
    55. }
    56.
  • at sfFilterChain->execute()
    in SF_ROOT_DIR\symfony1.2\lib\controller\sfController.class.php line 245 ...
    242. }
    243.
    244. // process the filter chain
    245. $filterChain->execute();
    246. }
    247. else
    248. {
  • at sfController->forward('album', 'listMember')
    in SF_ROOT_DIR\symfony1.2\lib\controller\sfFrontWebController.class.php line 48 ...
    45. }
    46.
    47. // make the first request
    48. $this->forward($moduleName, $actionName);
    49. }
    50. catch (sfException $e)
    51. {
  • at sfFrontWebController->dispatch()
    in SF_ROOT_DIR\symfony1.2\lib\util\sfContext.class.php line 159 ...
    156. /
    157. public function dispatch()
    158. {
    159. $this->getController()->dispatch();
    160. }
    161.
    162. /
    *
  • at sfContext->dispatch()
    in SF_ROOT_DIR\web\pc_frontend_dev.php line 14 ...

解決方法を教えていただけますでしょうか?
よろしくお願いいたします。

履歴

#1 Rimpei Ogawa13年以上前に更新

  • 3.6 で発生するかNo にセット

他の形式にエクスポート: Atom PDF