VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Slavomir on January 12, 2025, 11:31:17 AM

Title: My Account - /index.php/my-account?layout=edit in VM 4.4.4
Post by: Slavomir on January 12, 2025, 11:31:17 AM
Hello
My Account - /index.php/my-account?layout=edit no longer works after upgrading VirtueMart from 4.4.0 to 4.4.4. Users can no longer register. The page just reloads after the user fills out the form and clicks the save button. The same happens when existing users try to edit their information and save. I had to downgrade VirtueMart back to 4.4.0. Then the form works again. Is this a bug in VirtueMart 4.4.4?

Joomla 5.2.3
Virtuemart 4.4.4
PHP 8.2.16
Best Slavomir

Found what was wrong.

[12-Jan-2025 18:51:40 Europe/Berlin] PHP Warning:  Undefined variable $ret in /Applications/XAMPP/xamppfiles/htdocs/mysite/components/com_virtuemart/controllers/user.php on line 276

VM 4.4.0
Line 236 if($currentUser->guest!=1 or !$cartObj or ($currentUser->guest==1 and $register) ){

VM 4.4.4
Line 236 if(/*$currentUser->guest!=1 or !$cartObj or */ ($currentUser->guest==1 and $register) ){

Removed comments /*......*/. Users can register again.

Got also following warning with VM 4.4.4. How can I fix this?

[12-Jan-2025 20:44:04 Europe/Berlin] PHP Warning:  Undefined array key "username" in /Applications/XAMPP/xamppfiles/htdocs/mysite/administrator/components/com_virtuemart/models/user.php on line 673