Error in system.log about productgriddeslenght

Found this one:

ERR (3): Notice: Undefined index: productgriddeslenght in \app\design\frontend\default\jm_summertemplate\jo omlart\jmbasetheme\jmbasethemehead.html on line 39

This variable should be declared before calling getactiveprofile(). Somewhere in config or ini.

Same in this thread: http://www.joomlart.com/forums/showt…tgriddeslenght , but no answer about jmbasethemehead.html.

5 answers

Profile photo of Sven Lessmann -30.00 $tone August 8, 2014
Public

Sorry Saguaros, development system.

But I got the j error too.

Code:

2014-08-08T07:11:16+00:00 ERR (3): Notice: Undefined index: productgriddeslenght  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 39
2014-08-08T07:11:16+00:00 ERR (3): Notice: Undefined variable: j  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\list.phtml on line 208
2014-08-08T07:11:16+00:00 ERR (3): Notice: Undefined variable: productgriddeslenght  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\list.phtml on line 243
2014-08-08T07:11:17+00:00 ERR (3): Notice: Undefined index: productgriddeslenght  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 39
2014-08-08T07:11:17+00:00 ERR (3): Notice: Undefined variable: j  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\list.phtml on line 208
2014-08-08T07:11:17+00:00 ERR (3): Notice: Undefined variable: productgriddeslenght  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\list.phtml on line 243

Initialize the $j counter variable with 0 in:
\app\design\frontend\default\jm_summertemplate\ca talog\product/list.phtml line 184

Code:

<ul class="products-grid products-grid-special">
			<?php $i=0; $j=0; foreach ($_productCollection as $_product): 
					$product = Mage::getModel('catalog/product')->load($_product->getId());
						$attribute = $product->getResource()->getAttribute('label');
						if(is_object($attribute)){
							$_options= $attribute->getSource()->getAllOptions(true, true);
							foreach($_options as $option){
								  if ($option['value'] == $product->getData("label")){
									$class =  $option['label'];
								  }

Thanks to Chavan.

Oh it’s getting better if I browse with my Android 8" tablet recognized as mobile:

Code:

2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productgriddeslenght  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 39
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productlistimagewidthmobile  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 51
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productlistimageheightmobile  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 52
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productgriddeslenghtmobile  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 53
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productgridimageheightmobile  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 54
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined index: productgridimagewidthmobile  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\joomlart\jmbasetheme\jmbasethemehead.html on line 55
2014-08-08T10:31:32+00:00 ERR (3): Notice: Use of undefined constant active - assumed 'active'  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\view\media.phtml on line 98
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined variable: identifier  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\view.phtml on line 192
2014-08-08T10:31:32+00:00 ERR (3): Notice: Undefined variable: identifier  in C:\inetpub\wwwroot\magento\app\design\frontend\default\jm_summertemplate\catalog\product\view.phtml on line 193

Here the error of productgriddeslenght in list.phtml is missing, cause I comment out the use in grid view mode.

#2
Profile photo of Saguaros 0.00 $tone August 11, 2014
Public

Is it fine now? actually this is warning message and it will not effect the the functionality of theme. If problem still persists, you can PM me admin and ftp credentials so that I can check for you.

#3
Profile photo of AJ joey 120.00 $tone November 25, 2014
Public

I’m getting this same error in megamall, i’m trying to get my checkout to work and im getting this error in the system log:
 
Undefined index: productgriddeslenght
Undefined variable: curenturl

#4
Profile photo of Ziven Staff 100280.00 $tone November 26, 2014
Public

Hi AJ,
Please PM me your site’s url, admin and ftp credentials, I’ll detect the root of issue for troubleshooting.
 
Best regards,
Ziven.

#5

Please login or Register to Submit Answer

Written By

Comments