VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: puyopuy on December 23, 2011, 08:55:43 AM

Title: Unable to create product or product category
Post by: puyopuy on December 23, 2011, 08:55:43 AM
Hi there,

I'm using Joomla 1.7 + VirtueMart 2.0 + WampServer 2.2 on Windows 7.  All these components are new installed not an upgrade.  When I try to create new product or product category I will get a batch of these errors related to cache.php

When creating product category


( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 330
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2112   10708800   JCache->lock( )   ..\callback.php:99

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 331
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2112   10708800   JCache->lock( )   ..\callback.php:99

( ! ) Notice: Trying to get property of non-object in C:\wamp\www\cart\libraries\joomla\cache\controller\callback.php on line 100
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45

( ! ) Notice: Trying to get property of non-object in C:\wamp\www\cart\libraries\joomla\cache\controller\callback.php on line 123
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 330
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2123   10708944   JCache->lock( )   ..\callback.php:123

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 331
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2123   10708944   JCache->lock( )   ..\callback.php:123

( ! ) Warning: Attempt to assign property of non-object in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 232
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2170   10818496   JCache->store( )   ..\callback.php:143

( ! ) Fatal error: Call to a member function store() on a non-object in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 233
Call Stack
#   Time   Memory   Function   Location
1   0.0011   346032   {main}( )   ..\index.php:0
2   0.1156   5029744   JAdministrator->dispatch( )   ..\index.php:47
3   0.1226   5416360   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1335   5775104   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1530   7284760   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1530   7284808   VmController->edit( )   ..\controller.php:684
7   0.1729   9003360   JController->display( )   ..\vmcontroller.php:75
8   0.1750   9009768   VirtuemartViewCategory->display( )   ..\controller.php:650
9   0.2109   10704984   ShopFunctions->categoryListTree( )   ..\view.html.php:80
10   0.2110   10707336   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
11   0.2110   10708216   JCacheControllerCallback->get( )   ..\callback.php:45
12   0.2170   10818496   JCache->store( )   ..\callback.php:143
When creating new product





( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 330
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1850   11407592   JCache->lock( )   ..\callback.php:99

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 331
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1850   11407592   JCache->lock( )   ..\callback.php:99

( ! ) Notice: Trying to get property of non-object in C:\wamp\www\cart\libraries\joomla\cache\controller\callback.php on line 100
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45

( ! ) Notice: Trying to get property of non-object in C:\wamp\www\cart\libraries\joomla\cache\controller\callback.php on line 123
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 330
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1861   11407736   JCache->lock( )   ..\callback.php:123

( ! ) Notice: Undefined variable: locked in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 331
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1861   11407736   JCache->lock( )   ..\callback.php:123

( ! ) Warning: Attempt to assign property of non-object in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 232
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1918   11517328   JCache->store( )   ..\callback.php:143

( ! ) Fatal error: Call to a member function store() on a non-object in C:\wamp\www\cart\libraries\joomla\cache\cache.php on line 233
Call Stack
#   Time   Memory   Function   Location
1   0.0013   343224   {main}( )   ..\index.php:0
2   0.1027   5026664   JAdministrator->dispatch( )   ..\index.php:47
3   0.1068   5413320   JComponentHelper::renderComponent( )   ..\application.php:153
4   0.1175   5771792   require_once( 'C:\wamp\www\cart\administrator\components\com_virtuemart\admin.virtuemart.php' )   ..\helper.php:156
5   0.1347   7308016   JController->execute( )   ..\admin.virtuemart.php:69
6   0.1347   7308064   VirtuemartControllerProduct->Product( )   ..\controller.php:684
7   0.1721   10728456   VirtuemartViewProduct->display( )   ..\product.php:68
8   0.1847   11403776   ShopFunctions->categoryListTree( )   ..\view.html.php:263
9   0.1849   11406128   JCacheControllerCallback->call( )   ..\shopfunctions.php:718
10   0.1849   11407008   JCacheControllerCallback->get( )   ..\callback.php:45
11   0.1918   11517328   JCache->store( )   ..\callback.php:143
Can anyone help me to fix this problem please?

Thank you very much for taking time to look at this problem.
puyo
Title: Re: Unable to create product or product category
Post by: Studio 42 on December 24, 2011, 01:07:28 AM
Control if the cache directory in root dir is set and you have right to write on it.
Title: Re: Unable to create product or product category
Post by: puyopuy on December 24, 2011, 16:21:33 PM
Thanks Electrocity for your reply.  I granted full control for all users in folder C:\wamp\www\cart\libraries\joomla\cache and it's child folders and files but the problem still there.