News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

error when creating product review

Started by eric_v, September 26, 2018, 18:50:47 PM

Previous topic - Next topic

eric_v

Hi,

I'm using VM 3.4.0 and Joomla 3.8.12 and T3 template.

I'm getting this error when creating a product review:

Fatal error: Cannot use object of type stdClass as array in E:\Apache24\htdocs\www\www.APApneu.ca\v4\components\com_virtuemart\helpers\shopfunctionsf.php on line 641

The review is created, but the user is stuck with the error message.

Thank you!

Eric

StefanSTS

--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.

eric_v


Milbo

the new core will have

if(is_object($view->user)){
$replyTo[0] = isset($view->user->email)? $view->user->email:false;
$replyToName[0] = isset($view->user->name)? $view->user->name:false;
} else {
$replyTo[0] = isset($view->user['email'])? $view->user['email']:false;
$replyToName[0] = isset($view->user['name'])? $view->user['name']:false;
}


it would be good, when you directly test it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

eric_v


Milbo

nice, so we  can set a check on that :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/