Author Topic: error when creating product review  (Read 733 times)

eric_v

  • Beginner
  • *
  • Posts: 3
  • A beginner
error when creating product review
« on: September 26, 2018, 18:50:47 pm »
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

  • Global Moderator
  • Full Member
  • *
  • Posts: 520
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: error when creating product review
« Reply #1 on: September 27, 2018, 13:30:49 pm »
Hello,

which PHP version are you using?

--
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

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: error when creating product review
« Reply #2 on: September 27, 2018, 14:42:18 pm »

PHP Version 5.6.35

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10000
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: error when creating product review
« Reply #3 on: September 27, 2018, 20:53:04 pm »
the new core will have
Code: [Select]
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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

eric_v

  • Beginner
  • *
  • Posts: 3
  • A beginner
Re: error when creating product review
« Reply #4 on: September 28, 2018, 00:38:51 am »
Thank you! that did it! :)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10000
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: error when creating product review
« Reply #5 on: September 28, 2018, 10:30:54 am »
nice, so we  can set a check on that :-)
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/