Next Webinar: Maximizing Magento - Get the Most out of Promotions. Register Today!

Magento

Open Source eCommerce Evolved

Magento Forum

   
Error on Add Category
 
e_mick
Jr. Member
 
Total Posts:  8
Joined:  2008-04-10
Melbourne, Australia
 

I still have the Sample Data installed, and am experimenting with adding a Category (having already done some customization, and wanting to see just how fully-functional the store is before spending time doing any more).

I go through the Admin Add Category steps, with ALL STORE VIEWS selected, and create a category that is ACTIVE (YES) | ANCHOR (YES) | DISPLAY MODE (PRODUCTS ONLY).

When I click SAVE CATEGORY I am always getting this error:

Fatal error: Uncaught exception ‘Zend_Db_Statement_Exception’ with message ‘SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘entity_id’ cannot be null’ in W:\www\lib\Zend\Db\Statement\Pdo.php:238 Stack trace: #0 W:\www\lib\Zend\Db\Statement.php(283): Zend_Db_Statement_Pdo->_execute(Array) #1 W:\www\lib\Zend\Db\Adapter\Abstract.php(406): Zend_Db_Statement->execute(Array) #2 W:\www\lib\Zend\Db\Adapter\Pdo\Abstract.php(206): Zend_Db_Adapter_Abstract->query(’INSERT INTO `ca...’, Array) #3 W:\www\lib\Zend\Db\Adapter\Abstract.php(484): Zend_Db_Adapter_Pdo_Abstract->query(’INSERT INTO `ca...’, Array) #4 W:\www\app\code\core\Mage\Catalog\Model\Resource\Eav\Mysql4\Abstract.php(112): Zend_Db_Adapter_Abstract->insert(’catalog_categor...’, Array) #5 W:\www\app\code\core\Mage\Eav\Model\Entity\Abstract.php(1173): Mage_Catalog_Model_Resource_Eav_Mysql4_Abstract->_insertAttribute(Object(Mage_Catalog_Model_Category), Object(Mage_Catalog_Model_Resource_Eav_Attribute), ‘axles_M8_150x15...’) #6 W:\www\app\code\core\Mage\Catalog\ in W:\www\lib\Zend\Db\Statement\Pdo.php on line 238

I hope someone can shed some light on this.

 
Magento Community Magento Community
Magento Community
Magento Community
 
e_mick
Jr. Member
 
Total Posts:  8
Joined:  2008-04-10
Melbourne, Australia
 

Anyone?
I get this error (above) every time I try to add a new category to the store.
I’d love a line or two from someone knowledgeable who can no-doubt put me on the right track in seconds.
Thanks in advance!

 
Magento Community Magento Community
Magento Community
Magento Community
 
e_mick
Jr. Member
 
Total Posts:  8
Joined:  2008-04-10
Melbourne, Australia
 

Has anyone had a similar problem? Where Magento simply will not add a new category to the catalog?
I am stuck here without the possibility of customizing my catalog…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrés Skliarevsky
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-02-15
Mar del Plata, Argentina
 

Hi!
exactly the same is happening to me… i BEG PLEASE how to solve this… ???

No help from developers???
Thanks…

 Signature 

Greets!
Andrés

...using Magento v1.1.4

 
Magento Community Magento Community
Magento Community
Magento Community
 
Andrés Skliarevsky
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-02-15
Mar del Plata, Argentina
 

another error when adding new category:

Fatal error: Uncaught exception ‘Exception’ with message ‘File was not uploaded.’ in /www/example.com/htdocs/mac/store/lib/Varien/File/Uploader.php:115 Stack trace: #0 /www/example.com/htdocs/mac/store/app/code/core/Mage/Catalog/Model/Category/Attribute/Backend/Image.php(51): Varien_File_Uploader->__construct(’image’) #1 [internal function]: Mage_Catalog_Model_Category_Attribute_Backend_Image->beforeSave(Object(Mage_Catalog_Model_Category)) #2 /www/example.com/htdocs/mac/store/app/code/core/Mage/Eav/Model/Entity/Abstract.php(558): call_user_func_array(Array, Array) #3 /www/example.com/htdocs/mac/store/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1259): Mage_Eav_Model_Entity_Abstract->walkAttributes(’backend/beforeS...’, Array) #4 /www/example.com/htdocs/mac/store/app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Category.php(91): Mage_Eav_Model_Entity_Abstract->_beforeSave(Object(Mage_Catalog_Model_Category)) #5 /www/example.com/htdocs/mac/store/app/code/core/Mage/Eav/Model/Entity/Abstract.php(871 in /www/example.com/htdocs/mac/store/lib/Varien/File/Uploader.php on line 115

What does this mean? how to solve it? PLEASE PLEASE PLEASE!!!

I’m stuck here and frustrated and burned out…

 Signature 

Greets!
Andrés

...using Magento v1.1.4

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
41083 users|802 users currently online|87745 forum posts