VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: joseph_2 on November 15, 2014, 22:05:14 PM

Title: bug in the migration users, only when there a userfield of type age_verification
Post by: joseph_2 on November 15, 2014, 22:05:14 PM
Joomla 2.5.27
PHP 5.5.6



hello developpers,

I found a bug in the migration of users, only when there a userfield of type age_verification,
a fatal PHP error occurs.


location:
backend/com_virtuemart/tables/userfields.php - function formatFieldType()  case: age_verification

PHP Fatal error:  Cannot use object of type stdClass as array


I solved it this way:

I replaced this line ...
$this->params = 'minimum_age='.(int)$_data['minimum_age']."\n";

with ...
$this->params = 'minimum_age='.(int)$_data->minimum_age."\n";



regards,
Joep Winters
Title: Re: bug in the migration users, only when there a userfield of type age_verification
Post by: GJC Web Design on November 15, 2014, 23:43:03 PM
You don't mention what VM version?
Title: Re: bug in the migration users, only when there a userfield of type age_verification
Post by: joseph_2 on November 17, 2014, 10:33:28 AM
Virtuemart version 2.6.10