Pagination Frame

For some reason the number of pages inserted in the Pagination Frame (5) isn’t respected at the front end;

Attachment 34383

BTW this is on a staging server, am upgrading from 1.3 to 1.7 so there’s no live version.

I’ve seen that the same problem occurs on the demo (created a live demo version)

it’s still the original /layout/catalog.xml file form the theme. (Believe that’s where it’s altered)

11 answers

Profile photo of chavan 100.00 $tone March 2, 2014
Public

This is a temporary solution

Go to this File: app\design\frontend\default\jm_epidiotemplate\cat alog\product\listtoolbar.phtml

Replace this code

PHP Code:

<?php for($i=1$i<= $this->getLastPageNum(); $i++): ?>

PHP Code:

<?php 
$pageCount 
$_REQUEST['p']; 
$lastPageNum 5// enter the pagination number list < 1 2 3 4 5 >

if($pageCount  =='' || $pageCount  <=1) { 

$pageCount =1;

} else { 

$pageCount++; 

?>

<?php for($i=$pageCount $i<= $lastPageNum +$pageCount$i++): ?>

#1
Profile photo of Coen Voskuilen 0.00 $tone April 15, 2014
Public

Solution works but now have a specific problem on one category.

Checking the logs it says:

ERR (3): Notice: Undefined index: p in /home/username/public_html/domainname.com/app/design/frontend/default/themename/template/catalog/product/list/toolbar.phtml on line 58

Code used;

Code:

 <?php /*for($i=1; $i<= $this->getLastPageNum(); $i++): 
					// Hack joomlart pagenumber problem

	                */?>

	                 <?php 
$pageCount = $_REQUEST['p']; 
$lastPageNum = 9; // enter the pagination number list < 1 2 3 4 5 >

Any fixed solution for this?

#3
Profile photo of Seoki Lee 1510.00 $tone April 16, 2014
Public

To resolve that bug, please replace this code:

Code:

$pageCount = $_REQUEST['p'];

With:

Code:

if(isset($_REQUEST['p'])) {
	$pageCount = $_REQUEST['p']; 
}

Hope this helps.

#4
Profile photo of Coen Voskuilen 0.00 $tone April 16, 2014
Public

Hi Lee,

Thanks for getting back to me. Now throws a different error in the logs;

2014-04-16T23:36:46+00:00 ERR (3): Notice: Undefined variable: pageCount in /home/username/public_html/domainname.com/app/design/frontend/default/themename/template/catalog/product/list/toolbar.phtml on line 63

On line 63;

Code:

if($pageCount  =='' || $pageCount  <=1) { 

$pageCount =1;

} else { 

$pageCount++; 

} ?>

The complete code on toolbar.phtml;

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory   design_default
 * @package    Mage
 * Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Product list toolbar
 *
 * @see Mage_Catalog_Block_Product_List_Toolbar
 */
?>
<?php if($this->getCollection()->getSize()): ?>
		<div class="page-nav">
	    <table class="pager" cellspacing="0">
	        <tr>
	            <td>
	            <?php if($this->getLastPageNum()>1): ?>
	                <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
	            <?php else: ?>
	                <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
	            <?php endif; ?>
	            </td>
	            <?php if($this->getLastPageNum()>1): ?>
	            <td class="pages">
	                <strong><?php echo $this->__('Page:') ?></strong>
	                <ol>
	                <?php if (!$this->isFirstPage()): ?>
	                    <li><a href="?p=<?php echo $this->getCurrentPage()-1 ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" /></a></li>
	                <?php endif ?>
	                <?php /*for($i=1; $i<= $this->getLastPageNum(); $i++): 
					// Hack joomlart pagenumber problem

	                */?>

	                 <?php 
	                 if(isset($_REQUEST['p'])) {
					$pageCount = $_REQUEST['p']; 
					}
$lastPageNum = 9; // enter the pagination number list < 1 2 3 4 5 >

if($pageCount  =='' || $pageCount  <=1) { 

$pageCount =1;

} else { 

$pageCount++; 

} ?>

<?php for($i=$pageCount ; $i<= $lastPageNum +$pageCount; $i++): ?> 

	<?php /* End hack joomlart */ ?>
	                    <?php if ( $this->getCurrentPage() == $i ): ?>
	                        <li><span class="on"><?php echo $i ?></span></li>
	                    <?php else: ?>
	                        <li><a href="?p=<?php echo $i ?>"><?php echo $i ?></a></li>
	                    <?php endif ?>
	                <?php endfor; ?>
	                <?php if ( $this->getCurrentPage() != $this->getLastPageNum() ): ?>
	                    <li><a href="?p=<?php echo $this->getCurrentPage()+1 ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" /></a></li>
	                <?php endif ?>
	                </ol>
	            </td>
	            <?php endif; ?>
	            <td class="a-right">
	                <?php echo $this->__('Show') ?> <select onchange="setLocation(this.value)">
	                <?php foreach ($this->getAvailableLimit() as  $_key=>$_limit): ?>
	                    <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
	                        <?php echo $_limit ?>
	                    </option>
	                <?php endforeach; ?>
	                </select> <?php echo $this->__('per page') ?>
	            </td>
	        </tr>
	    </table>
	    <?php if( $this->isExpanded() ): ?>
	    <table class="view-by" cellspacing="0">
	        <tr>
	            <?php if( $this->isEnabledViewSwitcher() ): ?>
	            <td>
	                <?php $_modes = $this->getModes(); ?>
	                <?php if($_modes && count($_modes)>1): ?>
	                <?php echo $this->__('View as') ?>:
	                <?php foreach ($this->getModes() as $_code=>$_label): ?>
	                    <?php if($this->isModeActive($_code)): ?>
	                        <strong><?php echo $_label ?></strong>&nbsp;
	                    <?php else: ?>
	                        <a href="<?php echo $this->getModeUrl($_code) ?>"><?php echo $_label ?></a>&nbsp;
	                    <?php endif; ?>
	                <?php endforeach; ?>
	                <?php endif; ?>
	            </td>
	            <?php endif; ?>
	            <td class="sort-by">
	                <?php echo $this->__('Sort by') ?> <select onchange="setLocation(this.value)">
	                <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
	                    <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
	                        <?php echo $_order ?>
	                    </option>
	                <?php endforeach; ?>
	                </select>
	                <?php if($this->getCurrentDirection() == 'desc'): ?>
	                    <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
	                <?php else: ?>
	                    <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
	                <?php endif; ?>
	            </td>
	        </tr>
	    </table>
  	</div>
    <?php endif; ?>
<?php endif ?>
#5
Profile photo of chavan 100.00 $tone April 17, 2014
Public

Try this one

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * egory   design_default
 * @package    Mage
 * Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Product list toolbar
 *
 * @see Mage_Catalog_Block_Product_List_Toolbar
 */
?>
<?php if($this->getCollection()->getSize()): ?>
        <div class="page-nav">
        <table class="pager" cellspacing="0">
            <tr>
                <td>
                <?php if($this->getLastPageNum()>1): ?>
                    <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
                <?php else: ?>
                    <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
                <?php endif; ?>
                </td>
                <?php if($this->getLastPageNum()>1): ?>
                <td class="pages">
                    <strong><?php echo $this->__('Page:') ?></strong>
                    <ol>
                    <?php if (!$this->isFirstPage()): ?>
                        <li><a href="?p=<?php echo $this->getCurrentPage()-1 ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_left.gif') ?>" alt="<?php echo $this->__('Previous') ?>" /></a></li>
                    <?php endif ?>
                    <?php /*for($i=1; $i<= $this->getLastPageNum(); $i++): 
                    // Hack joomlart pagenumber problem

                    */?>

                     <?php 
                     $pageCount ='';
                     if(isset($_REQUEST['p'])) {
                    $pageCount = $_REQUEST['p']; 
                    }
$lastPageNum = 9; // enter the pagination number list < 1 2 3 4 5 >

if($pageCount  =='' || $pageCount  <=1) { 

$pageCount =1;

} else { 

$pageCount++; 

} ?>

<?php for($i=$pageCount ; $i<= $lastPageNum +$pageCount; $i++): ?> 

    <?php /* End hack joomlart */ ?>
                        <?php if ( $this->getCurrentPage() == $i ): ?>
                            <li><span class="on"><?php echo $i ?></span></li>
                        <?php else: ?>
                            <li><a href="?p=<?php echo $i ?>"><?php echo $i ?></a></li>
                        <?php endif ?>
                    <?php endfor; ?>
                    <?php if ( $this->getCurrentPage() != $this->getLastPageNum() ): ?>
                        <li><a href="?p=<?php echo $this->getCurrentPage()+1 ?>"><img src="<?php echo $this->getSkinUrl('images/pager_arrow_right.gif') ?>" alt="<?php echo $this->__('Next') ?>" /></a></li>
                    <?php endif ?>
                    </ol>
                </td>
                <?php endif; ?>
                <td class="a-right">
                    <?php echo $this->__('Show') ?> <select onchange="setLocation(this.value)">
                    <?php foreach ($this->getAvailableLimit() as  $_key=>$_limit): ?>
                        <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
                            <?php echo $_limit ?>
                        </option>
                    <?php endforeach; ?>
                    </select> <?php echo $this->__('per page') ?>
                </td>
            </tr>
        </table>
        <?php if( $this->isExpanded() ): ?>
        <table class="view-by" cellspacing="0">
            <tr>
                <?php if( $this->isEnabledViewSwitcher() ): ?>
                <td>
                    <?php $_modes = $this->getModes(); ?>
                    <?php if($_modes && count($_modes)>1): ?>
                    <?php echo $this->__('View as') ?>:
                    <?php foreach ($this->getModes() as $_code=>$_label): ?>
                        <?php if($this->isModeActive($_code)): ?>
                            <strong><?php echo $_label ?></strong>&nbsp;
                        <?php else: ?>
                            <a href="<?php echo $this->getModeUrl($_code) ?>"><?php echo $_label ?></a>&nbsp;
                        <?php endif; ?>
                    <?php endforeach; ?>
                    <?php endif; ?>
                </td>
                <?php endif; ?>
                <td class="sort-by">
                    <?php echo $this->__('Sort by') ?> <select onchange="setLocation(this.value)">
                    <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
                        <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
                            <?php echo $_order ?>
                        </option>
                    <?php endforeach; ?>
                    </select>
                    <?php if($this->getCurrentDirection() == 'desc'): ?>
                        <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
                    <?php else: ?>
                        <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
                    <?php endif; ?>
                </td>
            </tr>
        </table>
      </div>
    <?php endif; ?>
<?php endif ?>
#6
Profile photo of Coen Voskuilen 0.00 $tone April 17, 2014
Public

Thanks Chavan! This completely clears the errors in the log files.

The only thing is it still skews up one functionality. Was working before I did and upgrade. (Magento theme upgraded from 1.4.3.2 to 1.7)

That’s the layered navigation in combination with pagination.

I’ve recreated the problem with the default template;

http://1d963b0e2ceac64a.builder.joomlart.com/pcgames/classic.html

Using the grid view, 9 articles.

The category has 41 products.

When I use shop by -> price ($0.00 -- $999.99) (39 products) this generates the following url:
http://1d963b0e2ceac64a.builder.joomlart.com/pcgames/classic.html?price=-1000

All good so far.

But if I want to see the following nine items priced ($0.00 -- $999.99) and click page number 2
It gives this url;
http://1d963b0e2ceac64a.builder.joomlart.com/pcgames/classic.html?p=2

How can I make it so that the link will turn out like this;
http://1d963b0e2ceac64a.builder.joomlart.com/pcgames/classic.html?price=-1000&p=2 ?

This was working before the upgrade.

Many thanks in advance for your reply.

#7
Profile photo of Seoki Lee 1510.00 $tone April 25, 2014
Public

To fix that:
(Note: please backup your files first)

1. Please go to the folder \app\design\frontend\default\jm_epidiotemplate\pa ge\html: remove the file "pager.phtml"

2. Then open the file \app\design\frontend\default\jm_epidiotemplate\ca talog\product\listtoolbar.phtml, replace all codes in this file with following code:

Code:

<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to [email protected] so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 *   egory    design
 * @package     base_default
 *   Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com)
 * @license     http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
/**
 * Product list toolbar
 *
 * @see Mage_Catalog_Block_Product_List_Toolbar
 */
?>
<?php if($this->getCollection()->getSize()): ?>
		<div class="page-nav">
	    <table class="pager" cellspacing="0">
	        <tr>
	            <td>
	            <?php if($this->getLastPageNum()>1): ?>
	                <?php echo $this->__('Items %s to %s of %s total', $this->getFirstNum(), $this->getLastNum(), $this->getTotalNum()) ?>
	            <?php else: ?>
	                <strong><?php echo $this->__('%s Item(s)', $this->getTotalNum()) ?></strong>
	            <?php endif; ?>
	            </td>
	            <?php if($this->getLastPageNum()>1): ?>
	            <td class="pages">
	                <?php echo $this->getPagerHtml() ?>
	            </td>
	            <?php endif; ?>
	            <td class="a-right">
	                <?php echo $this->__('Show') ?> <select onchange="setLocation(this.value)">
	                <?php foreach ($this->getAvailableLimit() as  $_key=>$_limit): ?>
	                    <option value="<?php echo $this->getLimitUrl($_key) ?>"<?php if($this->isLimitCurrent($_key)): ?> selected="selected"<?php endif ?>>
	                        <?php echo $_limit ?>
	                    </option>
	                <?php endforeach; ?>
	                </select> <?php echo $this->__('per page') ?>
	            </td>
	        </tr>
	    </table>
	    <?php if( $this->isExpanded() ): ?>
	    <table class="view-by" cellspacing="0">
	        <tr>
	            <?php if( $this->isEnabledViewSwitcher() ): ?>
	            <td>
	                <?php $_modes = $this->getModes(); ?>
	                <?php if($_modes && count($_modes)>1): ?>
	                <?php echo $this->__('View as') ?>:
	                <?php foreach ($this->getModes() as $_code=>$_label): ?>
	                    <?php if($this->isModeActive($_code)): ?>
	                        <strong><?php echo $_label ?></strong>&nbsp;
	                    <?php else: ?>
	                        <a href="<?php echo $this->getModeUrl($_code) ?>"><?php echo $_label ?></a>&nbsp;
	                    <?php endif; ?>
	                <?php endforeach; ?>
	                <?php endif; ?>
	            </td>
	            <?php endif; ?>
	            <td class="sort-by">
	                <?php echo $this->__('Sort by') ?> <select onchange="setLocation(this.value)">
	                <?php foreach($this->getAvailableOrders() as $_key=>$_order): ?>
	                    <option value="<?php echo $this->getOrderUrl($_key, 'asc') ?>"<?php if($this->isOrderCurrent($_key)): ?> selected="selected"<?php endif; ?>>
	                        <?php echo $_order ?>
	                    </option>
	                <?php endforeach; ?>
	                </select>
	                <?php if($this->getCurrentDirection() == 'desc'): ?>
	                    <a href="<?php echo $this->getOrderUrl(null, 'asc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_desc_arrow.gif') ?>" alt="<?php echo $this->__('Set Ascending Direction') ?>" class="v-middle" /></a>
	                <?php else: ?>
	                    <a href="<?php echo $this->getOrderUrl(null, 'desc') ?>"><img src="<?php echo $this->getSkinUrl('images/sort_asc_arrow.gif') ?>" alt="<?php echo $this->__('Set Descending Direction') ?>" class="v-middle" /></a>
	                <?php endif; ?>
	            </td>
	        </tr>
	    </table>
  	</div>
    <?php endif; ?>
<?php endif ?>
#9
Profile photo of Coen Voskuilen 0.00 $tone April 25, 2014
Public

Thank you so much for your reply Lee!

This solves the problem! All works now.

Did notice new entries in the system.log since I’ve changed this;

2014-04-25T13:34:47+00:00 ERR (3): Notice: Undefined offset: 11 in public/app/code/local/JoomlArt/JmSlideshow/Block/List.php on line 173

Line 173 says:

Code:

					// minor thumbnail
					$items[$i]['thumb'] = '<img src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $thumbArray[$i] . '" alt="Photo Thumb" width="' . $this->getConfig('thumbWidth') . '" height="' . $this->getConfig('thumbHeight') . '" />';

Don’t see the direct relevance between the modified files and the error since this is related to thumbnails.But did only occur since I’ve changed it.

Update:
Error in exception log as well now: (Ongeldig bloktype = not valid block type)

2014-04-25T19:44:45+00:00 ERR (3):
exception ‘Mage_Core_Exception’ with message ‘Ongeldig bloktype: Mage_Joomlart_Jmcategorylist_Block_List’ in /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/Mage.php:594
Stack trace:
#0 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException(‘Ongeldig blokty…’)
#1 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance(‘joomlart_jmcate…’, Array)
#2 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/Email/Template/Filter.php(164): Mage_Core_Model_Layout->createBlock(‘joomlart_jmcate…’, NULL, Array)
#3 [internal function]: Mage_Core_Model_Email_Template_Filter->blockDirective(Array)
#4 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/lib/Varien/Filter/Template.php(134): call_user_func(Array, Array)
#5 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/Email/Template/Filter.php(502): Varien_Filter_Template->filter(‘<p>{{block type…’)
#6 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Cms/Block/Page.php(100): Mage_Core_Model_Email_Template_Filter->filter(‘<p>{{block type…’)
#7 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Cms_Block_Page->_toHtml()
#8 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#9 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(522): Mage_Core_Block_Abstract->_getChildHtml(‘cms_page’, true)
#10 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Page/Block/Html/Wrapper.php(52): Mage_Core_Block_Abstract->getChildHtml(”, true, true)
#11 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Page_Block_Html_Wrapper->_toHtml()
#12 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#13 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Text_List->_toHtml()
#14 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#15 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(526): Mage_Core_Block_Abstract->_getChildHtml(‘content’, true)
#16 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/design/frontend/default/longjohn/template/page/3columns.phtml(72): Mage_Core_Block_Abstract->getChildHtml(‘content’)
#17 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Template.php(241): include(‘/home/multimark…’)
#18 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView(‘frontend/defaul…’)
#19 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#20 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#21 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#22 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#23 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#24 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
#25 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#26 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Cms_IndexController->indexAction()
#27 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(‘index’)
#28 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http) )
#29 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#30 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#31 /home/multimarketing/public_html/webwinkel.longjohnbodywear.nl/public/index.php(87): Mage::run(”, ‘store’)
#32 {main}

#10
Profile photo of Seoki Lee 1510.00 $tone April 28, 2014
Public

To fix bug reported by log file, please go to this file: app\code\local\JoomlArt\JmSlideshow\Block\List.php

At line 178, replace this code:

Code:

$items[$i]['thumb'] = '<img src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $thumbArray[$i] . '" alt="Photo Thumb" width="' . $this->getConfig('thumbWidth') . '" height="' . $this->getConfig('thumbHeight') . '" />';

with:

Code:

if (!empty($items[$i]['thumb'])){
	$items[$i]['thumb'] = '<img src="' . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) . $thumbArray[$i] . '" alt="Photo Thumb" width="' . $this->getConfig('thumbWidth') . '" height="' . $this->getConfig('thumbHeight') . '" />';
}

At line 236, replace this code:

Code:

$thumbImgMode = $this->_config['thumbImgMode'];

With:

Code:

$thumbImgMode = isset($this->_config['thumbImgMode']) ? $this->_config['thumbImgMode'] : 'none';

Hope this helps.

#11

Please login or Register to Submit Answer

Written By

Comments