On manage product page, I'm getting no grid, I traced it and it shows the error
Fatal error: Call to a member function setFormFieldName() on a non-object in /app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php on line 279
I don't know whats wrong with it.
I think the FieldName value is invalid, it should be $this->getMassactionBlock()->setFormFieldName('product_id');
Related
When Customer place order with CODE payment method it show this error
Fatal error: Call to a member function getTypeInstance() on a
non-object in
/home/store/public_html/app/code/core/Mage/Catalog/Block/Product/View/Abstract.php
on line 44
Any one can help please?
I am trying to write a script that creates configurable products. Ive been using this as a guide: http://inchoo.net/magento/programmatically-create-a-configurable-magento-product/
When I get to this line:
$configurableAttributesData = $configProduct->getTypeInstance()->getConfigurableAttributesAsArray();
The script crashes and kicks out this error:
Fatal error: Call to a member function getId() on a non-object in /home/buyfrom/public_html/app/code/core/Mage/Catalog/Model/Product/Type/Configurable.php on line 283
Following a comment on this page, I changed that line to the following:
$possibleAttributes = $product->getTypeInstance(true)->getConfigurableAttributesAsArray($product);
But I am still getting this error. Can anyone suggest how to fix this?
Make sure that attribute set (eg. default) which you are choosing is having at least one configurable attribute (example: 'color' or 'size').
I am new to opencart, so please help me.
I am using opencart version 1.5.6, now whenever I edit and delete the product it shows me
Fatal error: Call to a member function productUpdateListen() on a non-object in /home/crazepur/public_html/admin/controller/catalog/product.php on line 78
and
Fatal error: Call to a member function deleteProduct() on a non-object in /home/crazepur/public_html/admin/controller/catalog/product.php on line 133 respectively.
Although it edit and delete the product.
Please help me how to fix it.
Code in Line 78 $this->openbay->productUpdateListen($this->request->get['product_id'], $this->request->post);
And code in line 133 $this->openbay->deleteProduct($product_id);
This means $this->openbay is not an object which contains function productUpdateListen() & deleteProduct(), probably it's NULL or false in some cases (nothing found) due to it's not accessible. Out of scope.
Try
var_dump($this->openbay);
Check the O/P
it's simple and the error-message says it all: your $this->openbay doesn't have those methods (productUpdateListen() and deleteProduct()) - most likely it isn't an object at all.
please debug your code since it's impossible to say what's going wrong wich so little information. to start, do a var_dump($this->openbay); right before the function-calls and check the output.
Fatal error:Call to member function getproduct() on a non-object in app/...../checkout/cart/sidebar/default.phtml on line 29
Why this happen?
Any solution to remove this error??
To remove error,
Go to app/design/frontend/your_theme/checkout/cart/sidebar/default.phtml
Search for getproduct
Comment its line and check.
It happens because, You called the function on an object not associated to it.
Have you used
$_product = Mage::getModel('catalog/product')->load($product_id)
before using it?
when I call a specifical controller-script of my Web-Application I sporadically get the following error:
Fatal error: Call to a member function allow() on a non-object in /srv/www/vhost/app/Controller/myController.php on line 11
Line 11 contains
$this->Auth->allow(array('get'));
Anyone an idea what this may cause?
Regards,
~MxAgent
Problem fixed. It was a caching-problem due to server doesn't support APC.