VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: bytelord on August 07, 2012, 19:43:28 PM

Title: Vendor logon from Frontend - Account Details error
Post by: bytelord on August 07, 2012, 19:43:28 PM
Hello,

There is a small bug when you are logging as a vendor from the frontend and you try to access account details page. The error is:

Fatal error: Class 'VmHTML' not found in \administrator\components\com_virtuemart\helpers\mediahandler.php on line 1111

I think that VmHTML does not exist anymore, so i just comment the line to resolve the issue.


updated: As milbo suggested add a line before line 1111 with
if(!class_exists('VmHTML')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');


Could please someone else confirm that the issue exist, so be fixed on next version.

Thanks
Title: Re: Vendor logon from Frontend - Account Details error
Post by: Wapsel on August 13, 2012, 22:44:40 PM
I'm having the same problem.
I'm getting the error when I edit my account details and hit the save button.

Kind regards
Title: Re: Vendor logon from Frontend - Account Details error
Post by: bytelord on August 14, 2012, 00:13:34 AM
Hello Wapsel,

i just comment that line for the error to get fixed, but unfortunately i am not sure if the produces conflicts or break the core. I think not, but ...
Title: Re: Vendor logon from Frontend - Account Details error
Post by: Milbo on August 14, 2012, 14:36:14 PM
No, this is a wrong fix. The correct fix is just to add

if(!class_exists('VmHTML')) require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');


The reason for this is that we do not support multivendor atm and what you see is a kind of multivendor feature (edit your store from the FE) and therefore we just did not tested it, but now it is added.
Title: Re: Vendor logon from Frontend - Account Details error [SOLVED]
Post by: bytelord on August 14, 2012, 14:48:06 PM
Thanks Milbo,

i test it and works, vmHTML is working.

Title: Re: Vendor logon from Frontend - Account Details error
Post by: Milbo on August 14, 2012, 20:27:27 PM
Check the new version 2.0.9 https://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Vendor logon from Frontend - Account Details error
Post by: bytelord on August 14, 2012, 23:54:25 PM
That was fast Milbo! I didn't except the new version so quickly :)

It will be tested on the on my svn installation.

Thanks!