Forum Replies Created
- AuthorPosts
- May 14, 2020 at 9:54 pm in reply to: Division by zero raised from wcfmmp-view-store-lists-loop.php #131025datacatalysr00tParticipant
Thank you for your reply
i checked and i found 2 shortcodes was defined there in the same page
[wcfm_stores sidebar=”” map=”” includes=”0,38,18,14,17,6,36,218,77,262,16,0″ has_orderby=”” filter=””]
and
[wcfm_stores sidebar=”” excludes=”0,38,18,14,17,6,36,218,77,262,16,78,0″ map=”” filter=”” has_orderby=”” per_page=”60″]
i changed
[wcfm_stores sidebar=”” map=”” includes=”0,38,18,14,17,6,36,218,77,262,16,0″ has_orderby=”” filter=””]
to[wcfm_stores sidebar=”” map=”” includes=”0,38,18,14,17,6,36,218,77,262,16,0″ has_orderby=”” filter=”” per_page=”10″]
but the issue is not resolved.
also the pagination shortcode was removed because the client want to scroll down and see all the stores in single page, is this can considered source of that problem?
is there is any probability that the $limit variable has no value or already set to 0 somewhere or it’s an argument.
if we see the source code:16. $user_count = count($all_stores); 17. $num_of_pages = ceil( $user_count / $limit ); 19. $args = array( ... 'limit' => $limit, ...); 60. <?php if ( $num_of_pages > 1 ) { $WCFMmp->template->get_template( 'store-lists/wcfmmp-view-store-lists-pagination.php', $args ); } ?>
thank you for your help.
- AuthorPosts