-
- DaymoH

-
Total Posts: 96
Joined: 2008-09-18
|
when I click on a product to open it up I am getting the following error
Fatal error: Call to a member function getSource() on a non-object in /home/public_html/app/code/core/Mage/Catalog/Model/Product.php on line 1150
Any ideas?
|
| |
-
- Posted: September 2 2009
-
| top
-
|
 |
 |
 |
|
|
-
- paul_smit

-
Total Posts: 22
Joined: 2010-02-02
|
any updates on this? I have this when using the search function.
Thanks Paul
|
| |
-
- Posted: February 22 2010
-
| top
| # 1
-
|
 |
 |
 |
|
|
-
- ABTOMAT

-
Total Posts: 5
Joined: 2009-12-18
|
Me too. Since I’ve updated to Magento 1.4 and changed design to my own (that worked with an elder version)
Trying to do something, does anyone know how to solve this problem?
Also search doesn’t work. Even if I change design to default and try to look for products that were added after upgrade.
|
| |
-
- Posted: February 22 2010
-
| top
| # 2
-
|
 |
 |
 |
|
|
-
- ABTOMAT

-
Total Posts: 5
Joined: 2009-12-18
|
So, trouble was resolved. When you’re trying to get access to attribute of product that doesn’t exist, system crashes. AFAIK, in elder versions system was just ignoring such inqueries.
Try to check your design phtmls for such things.
|
| |
-
- Posted: February 23 2010
-
| top
| # 3
-
|
 |
 |
 |
|
|
|
|
-
- kuzyakiev

-
Total Posts: 18
Joined: 2008-10-08
|
As say ABTOMAT When you’re trying to get access to attribute of product that doesn’t exist
>Let me know anyone has fixed such issue.
You may fix it by overridind the function
public function getAttributeText($attributeCode) { return $this->getResource() ->getAttribute($attributeCode) ->getSource() ->getOptionText($this->getData($attributeCode)); }
for something like
public function getAttributeText($attributeCode) { if ($attribute = $this->getResource()->getAttribute($attributeCode)) { return $attribute->getSource() ->getOptionText($this->getData($attributeCode)); } else { //Mage::log(\'attributes-errors.log\',$attributeCode); return false; } }
of class Mage_Catalog_Model_Product
|
| |
-
- Posted: April 2 2011
-
| top
| # 5
-
|
 |
 |
 |
|
|
-
- rodrigofox

-
Total Posts: 5
Joined: 2011-05-25
|
kuzyakiev - 02 April 2011 10:01 AM As say ABTOMAT When you’re trying to get access to attribute of product that doesn’t exist
>Let me know anyone has fixed such issue.
You may fix it by overridind the function
public function getAttributeText($attributeCode) { return $this->getResource() ->getAttribute($attributeCode) ->getSource() ->getOptionText($this->getData($attributeCode)); }
for something like
public function getAttributeText($attributeCode) { if ($attribute = $this->getResource()->getAttribute($attributeCode)) { return $attribute->getSource() ->getOptionText($this->getData($attributeCode)); } else { //Mage::log(\'attributes-errors.log\',$attributeCode); return false; } }
of class Mage_Catalog_Model_Product
Great!!! I got time to work with your information! Thanks!!!
|
| |
-
- Posted: February 15 2012
-
| top
| # 6
-
|
 |
 |
 |
|
|
-
- kuzyakiev

-
Total Posts: 18
Joined: 2008-10-08
|
rodrigofox - 15 February 2012 04:37 AM Great!!! I got time to work with your information! Thanks!!!
You are wellcome! =)
|
| |
-
- Posted: February 15 2012
-
| top
| # 7
-
|
 |
 |
 |
|
|
|
|