Symfony, in remote host: Error 500. Unknown record property / related component "algorithm" on "sfGu
Posted
by user248959
on Stack Overflow
See other posts from Stack Overflow
or by user248959
Published on 2010-04-15T11:48:06Z
Indexed on
2010/04/15
11:53 UTC
Read the original article
Hit count: 524
Hi,
after deploying, i get the error below after loggingin.
Sf 1.3, sfDoctrineGuardPlugin. And i have this schema.yml in config/doctrine:
Usuario:
inheritance:
extends: sfGuardUser
type: simple
columns:
username:
type: string(128)
notnull: false
unique: true
nombre_apellidos: string(60)
sexo: string(5)
fecha_nac: date
provincia: string(60)
localidad: string(255)
email_address: string(255)
fotografia: string(255)
avatar: string(255)
avatar_mensajes: string(255)
relations:
Usuario:
local: user1_id
foreign: user2_id
refClass: AmigoUsuario
equal: true
500 | Internal Server Error | Doctrine_Record_UnknownPropertyException Unknown record property / related component "algorithm" on "sfGuardUser" stack trace
* at ()
in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php line 55 ...
52. */
53. public function filterGet(Doctrine_Record $record, $name)
54. {
55. throw new Doctrine_Record_UnknownPropertyException(sprintf('Unknown record property / related component "%s" on "%s"', $name, get_class($record)));
56. }
57. }
* at Doctrine_Record_Filter_Standard->filterGet(object('sfGuardUser'), 'algorithm')
in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1382 ...
1379. $success = false;
1380. foreach ($this->_table->getFilters() as $filter) {
1381. try {
1382. $value = $filter->filterGet($this, $fieldName);
1383. $success = true;
1384. } catch (Doctrine_Exception $e) {}
1385. }
* at Doctrine_Record->_get('algorithm', 1)
in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 1337 ...
1334. return $this->$accessor($load);
1335. }
1336. }
1337. return $this->_get($fieldName, $load);
1338. }
1339.
1340. protected function _get($fieldName, $load = true)
* at Doctrine_Record->get('algorithm')
in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/record/sfDoctrineRecord.class.php line 212 ...
209. return call_user_func_array(
210. array($this, $verb),
211. array_merge(array($entityName), $arguments)
212. );
213. } else {
214. $failed = true;
215. }
* at sfDoctrineRecord->__call(array(object('sfGuardUser'), 'get'), array('algorithm'))
in n/a line n/a ...
* at sfGuardUser->getAlgorithm('getAlgorithm', array())
in SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php line 96 ...
93. */
94. public function checkPasswordByGuard($password)
95. {
96. $algorithm = $this->getAlgorithm();
97. if (false !== $pos = strpos($algorithm, '::'))
98. {
99. $algorithm = array(substr($algorithm, 0, $pos), substr($algorithm, $pos + 2));
* at PluginsfGuardUser->checkPasswordByGuard()
in SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php line 83 ...
80. }
81. else
82. {
83. return $this->checkPasswordByGuard($password);
84. }
85. }
86.
* at PluginsfGuardUser->checkPassword('m')
in SF_ROOT_DIR/lib/sfGuardValidatorUserByEmail.class.php line 28 ...
25. {
26. // password is ok?
27.
28. if ($user->checkPassword($password))
29. {
30.
31. //die("entro");
* at sfGuardValidatorUserByEmail->doClean('m')
Any idea?
Javi
© Stack Overflow or respective owner