Author Topic: Frontend product edit doesn't work  (Read 2247 times)

Gruz

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 159
  • Copyleft (є) all rights reversed
Frontend product edit doesn't work
« on: October 19, 2011, 00:46:13 am »
SOLVED in newer versions.

----------------------------------

VM 1.9.8 i (updated from 1.9.8 G->H->I)
Sample data installed

J! 1.7.1
Linux
PHP 5.3.5

When trying to edit a product (my localhost uses a fake domain http://multitorg.com.uk) http://multitorg.com.uk/index2.php?option=com_virtuemart&view=productdetails&task=edit&virtuemart_product_id=1 I get a notice and an error:

Quote
Notice: Undefined index: product in /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/view.php on line 371

Call Stack:
    0.0436     649880   1. {main}() /mnt/work/www/multitorg.com.uk/www/index.php:0
    0.5260    3830136   2. JSite->dispatch() /mnt/work/www/multitorg.com.uk/www/index.php:43
    0.5524    3924944   3. JComponentHelper::renderComponent() /mnt/work/www/multitorg.com.uk/www/includes/application.php:191
    0.6238    4160232   4. require_once('/mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/virtuemart.php') /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/helper.php:156
    0.7429    5445848   5. JController->execute() /mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/virtuemart.php:62
    0.7430    5445928   6. JController->display() /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/controller.php:684
    0.7812    5655104   7. VirtueMartViewProductdetails->display() /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/controller.php:650
    0.8195    6216848   8. JView->getModel() /mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/views/productdetails/view.html.php:69


Fatal error: Call to a member function getProduct() on a non-object in /mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/views/productdetails/view.html.php on line 78

Call Stack:
    0.0436     649880   1. {main}() /mnt/work/www/multitorg.com.uk/www/index.php:0
    0.5260    3830136   2. JSite->dispatch() /mnt/work/www/multitorg.com.uk/www/index.php:43
    0.5524    3924944   3. JComponentHelper::renderComponent() /mnt/work/www/multitorg.com.uk/www/includes/application.php:191
    0.6238    4160232   4. require_once('/mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/virtuemart.php') /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/helper.php:156
    0.7429    5445848   5. JController->execute() /mnt/work/www/multitorg.com.uk/www/components/com_virtuemart/virtuemart.php:62
    0.7430    5445928   6. JController->display() /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/controller.php:684
    0.7812    5655104   7. VirtueMartViewProductdetails->display() /mnt/work/www/multitorg.com.uk/www/libraries/joomla/application/component/controller.php:650


It's strange noone else reports it.
Your installable language for VM2: http://gruz.org.ua/virtuemart-language-files.html