[Plugin: MarketPress Lite – WordPress eCommerce] PHP Error Using Custom Theme
-
I’ve installed this plugin at my website https://www.luckyguitar.com and it works great with the default wordpress theme and all other themes I’ve tested except for the custom theme I normally use with my website. ):
The issue is related to the drop down sub-pages of the store menu in page header. Here the details of the issue:
Error message = Warning: Missing argument 2 for MarketPress::filter_list_pages() in /nfs/c04/h02/mnt/64321/domains/luckyguitar.com/html/wp-content/plugins/wordpress-ecommerce/marketpress.php on line 1152
The Store drop down menu works but the text created by this error message is displayed on the blog page above the store menu. I have been able to temporarily “solve” this issue by commenting out the following line of code from the file = wordpress-ecommerce/marketpress.php
//add_filter( 'wp_list_pages', array(&$this, 'filter_list_pages'), 10, 2 );
I strongly suspect that this has something to do with my code in the header.php of my main theme. Below is the relevant sections of code as narrowed down as I can get. I think somewhere in this code lies the answer.
<div id="header_image"> <div id="menu"> <div class="menu_container"> <ul> <?php if (!freshy_yy_menu()) : ?> <?php if ('page' != get_option('show_on_front')) : // no page has been chosen as frontpage ?> <li class="<?php if (is_home()) echo 'current_page_item'; ?>"> <a href="<?php echo get_settings('home'); ?>"> <?php _e($freshy_options['first_menu_label'],TEMPLATE_DOMAIN); ?> </a> </li> <?php endif; ?> <!---- I think this is the problem marketpress --> <?php freshy_wp_list_pages('sort_column=menu_order&title_li='); ?> <!---- commented out code is around line 200 of main marketpress php ----> <!---- lost drop down menus ------> <?php endif; ?> <?php if ($freshy_options['custom_menus']) { foreach ($freshy_options['custom_menus'] as $custom_menu) { ?> <li> <a href="<?php echo $custom_menu['url']; ?>"> <?php _e($custom_menu['label'],TEMPLATE_DOMAIN); ?> </a> </li> <?php } } ?> <?php if ($freshy_options['last_menu_type']=='email' || $freshy_options['last_menu_type']=='link') : ?> <li class="last_menu"> <?php if ($freshy_options['last_menu_type']=='email') : ?> <a href="mailto:<?php echo $freshy_options['contact_email']; ?>"> <?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?> </a> <?php elseif ($freshy_options['last_menu_type']=='link') : ?> <a href="<?php echo $freshy_options['contact_link']; ?>"> <?php _e($freshy_options['last_menu_label'],TEMPLATE_DOMAIN); ?> </a> <?php endif; ?> </li> <?php endif; ?> </ul> </div><span class="menu_end"></span> </div>
- The topic ‘[Plugin: MarketPress Lite – WordPress eCommerce] PHP Error Using Custom Theme’ is closed to new replies.