All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Entries Doubling Up Entries Returned

Niall Thompson 17 Jun 2014 18:48 question, complete

Here is my opening tag to list previous events in Low Events entries.

I've set the limit to 6 but no matter what I change the limit to it always returns double the amount?

{exp:low_events:entries channel="broadcasts" unit="passed" show_active="no" limit="6" paginate="bottom" orderby="low_events:end" sort="desc"}
The code between the tags is definitely correct.

Any thoughts as to why?

Replies

  1. Niall Thompson 18 Jun 2014 07:07

    Here is the template debugging output:

    TEMPLATE DEBUGGING
    (0.000020 / 8.97MB) - Begin Template Processing -
    (0.000283 / 8.98MB) URI: broadcasts
    (0.000303 / 8.98MB) Path.php Template: /
    (0.000321 / 8.98MB) Retrieving Template
    (0.000342 / 8.98MB) Parsing Template URI
    (0.001236 / 8.98MB) Template Group Found: broadcasts
    (0.001313 / 8.99MB) Retrieving Template from Database: broadcasts/index
    (0.002298 / 8.99MB) Template Found
    (0.002424 / 8.99MB) Retrieving Template from File
    (0.009313 / 9.22MB) Calling Extension Class/Method: Low_variables_ext/template_fetch_template
    (0.011173 / 9.29MB) Calling Extension Class/Method: Stash_ext/template_fetch_template
    (0.011468 / 9.26MB) Template Type: webpage
    (0.011519 / 9.27MB) Parsing Site Variables
    (0.011833 / 9.27MB) Snippets (Keys): global:env|global:env_full|global:static_url|global:https_url|freelancer_version|root_url|publisher:current_language_code|publisher:current_language_id|publisher:default_language_code|publisher:default_language_id|publisher:current_language_prefix|publisher:reserved_category_word|publisher:entry_status|publisher:current_url|publisher:current_uri|page_uri:3|page_url:3|page_uri:2|page_url:2|page_uri:1|page_url:1|phrase:language_en|current_phrases|global:text_direction|route_0|route_1|route_2|route_3|route_4|route_5|route_6|route_7|route_8|route_9|route_10|site_id|site_label|site_short_name|last_segment|current_url|current_path|current_query_string
    (0.011883 / 9.27MB) Snippets (Values): local|Local|/static|https://local.thisistomorrow.info|FAL... Is Tomorrow|default_site|broadcasts|http://local.thisistomorrow.info/broa...|
    (0.012415 / 9.28MB) Parse Date Format String Constants
    (0.012453 / 9.28MB) Parse Current Time Variables
    (0.012604 / 9.28MB) Parsing Segment, Embed, and Global Vars Conditionals
    (0.018403 / 9.34MB) - Beginning Tag Processing -
    (0.018473 / 9.33MB) Parsing Tags in Template
    (0.018538 / 9.33MB) Tag: {exp:low_events:entries channel="broadcasts" limit="2" show_active="yes" show_upcoming="no" show_passed="no"}
    (0.018771 / 9.33MB) Closing Tag Found
    (0.018935 / 9.34MB) Tag: {exp:low_events:entries channel="broadcasts" limit="5" show_active="yes" show_upcoming="yes" show_passed="no"}
    (0.019065 / 9.34MB) Closing Tag Found
    (0.019156 / 9.34MB) Tag: {exp:low_events:entries channel="broadcasts" unit="passed" show_active="no" limit="6" paginate="bottom" orderby="low_events:end" sort="desc"}
    (0.019276 / 9.34MB) Closing Tag Found
    (0.019355 / 9.34MB) Processing Tags
    (0.019416 / 9.35MB) Module Tag: Low_events/entries
    (0.019445 / 9.35MB) Module Tag: Low_events/entries
    (0.019470 / 9.35MB) Module Tag: Low_events/entries
    (0.019492 / 9.35MB) Including Files for Plugins and Modules
    (0.024835 / 9.53MB) Files for Plugins and Modules All Included
    (0.025701 / 9.55MB) Beginning Final Tag Data Processing
    (0.025740 / 9.55MB) Calling Class/Method: Low_events/entries
    (0.026293 / 9.56MB) -> Class Called: Low_events
    (0.030193 / 9.72MB) Low Events: Fetching channel fields from API
    (0.056116 / 10.89MB) -> Method Called: entries
    (0.056401 / 10.89MB) Low Events: Working date set to 2014-06-18 08:04
    (0.056467 / 10.89MB) Low Events: Unit: upcoming
    (0.058559 / 10.90MB) Low Events: No event ids found, returning no results
    (0.058610 / 10.90MB) Returning No Results Content
    (0.058728 / 10.90MB) -> Data Returned
    (0.058779 / 10.90MB) Calling Class/Method: Low_events/entries
    (0.059187 / 10.90MB) -> Class Called: Low_events
    (0.059488 / 10.90MB) -> Method Called: entries
    (0.059598 / 10.90MB) Low Events: Working date set to 2014-06-18 08:04
    (0.059633 / 10.90MB) Low Events: Unit: upcoming
    (0.060816 / 10.90MB) Low Events: Setting fixed_order="1985"
    (0.060876 / 10.90MB) Low Events: Calling the channel module
    (0.105262 / 12.39MB) Calling Extension Class/Method: Publisher_ext/channel_entries_query_result
    (0.120875 / 12.75MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
    (0.167013 / 14.86MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.170718 / 14.95MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.181078 / 15.05MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.182530 / 14.97MB) -> Data Returned
    (0.182607 / 14.97MB) Calling Class/Method: Low_events/entries
    (0.183667 / 14.97MB) -> Class Called: Low_events
    (0.183973 / 14.97MB) -> Method Called: entries
    (0.184101 / 14.98MB) Low Events: Working date set to 2014-06-18 08:04
    (0.184143 / 14.97MB) Low Events: Unit: passed
    (0.186501 / 15.00MB) Low Events: Setting fixed_order="1880|1881|1882|1883|1899|1927|1925|1943|1960|1986|1987|1988|1961|1989|1995|1992|1984"
    (0.186564 / 15.01MB) Low Events: Calling the channel module
    (0.195438 / 15.17MB) Calling Extension Class/Method: Publisher_ext/channel_entries_query_result
    (0.207040 / 15.40MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
    (0.231186 / 16.33MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.231594 / 16.33MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.241574 / 16.47MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.242352 / 16.48MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.242706 / 16.48MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.244592 / 16.44MB) CHANNEL IMAGES: No images found.
    (0.247522 / 16.47MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.248066 / 16.48MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.248464 / 16.48MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.250340 / 16.44MB) CHANNEL IMAGES: No images found.
    (0.253556 / 16.47MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.254105 / 16.48MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.254522 / 16.49MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.256220 / 16.45MB) CHANNEL IMAGES: No images found.
    (0.258976 / 16.47MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.259598 / 16.49MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.259939 / 16.49MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.265481 / 16.48MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.266045 / 16.49MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.266394 / 16.49MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.271797 / 16.48MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.272582 / 16.53MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.272952 / 16.53MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.280048 / 16.53MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.280944 / 16.55MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.281340 / 16.56MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.287859 / 16.53MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.288891 / 16.56MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.289444 / 16.56MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.298436 / 16.54MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.299595 / 16.56MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.300072 / 16.56MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.308581 / 16.54MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.309289 / 16.56MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.309703 / 16.56MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.316511 / 16.54MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.317334 / 16.56MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.317865 / 16.57MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.324782 / 16.54MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.327949 / 16.41MB) -> Data Returned
    (0.328071 / 16.40MB) - End Tag Processing -
    (0.328115 / 16.40MB) Processing Advanced Conditionals
    (0.329820 / 16.42MB) - Processing Sub Templates (Depth: 1) -
    (0.329861 / 16.42MB) List of Embeds: inc/_head,inc/_foot
    (0.329928 / 16.42MB) Processing Sub Template: inc/_head
    (0.329950 / 16.42MB) Retrieving Template
    (0.329970 / 16.42MB) Retrieving Template from Database: inc/_head
    (0.331211 / 16.43MB) Template Found
    (0.331330 / 16.43MB) Retrieving Template from File
    (0.332134 / 16.45MB) Calling Extension Class/Method: Low_variables_ext/template_fetch_template
    (0.332383 / 16.46MB) Calling Extension Class/Method: Stash_ext/template_fetch_template
    (0.332576 / 16.44MB) Template Type: webpage
    (0.332731 / 16.44MB) Parsing Site Variables
    (0.332912 / 16.44MB) Snippets (Keys): global:env|global:env_full|global:static_url|global:https_url|freelancer_version|root_url|publisher:current_language_code|publisher:current_language_id|publisher:default_language_code|publisher:default_language_id|publisher:current_language_prefix|publisher:reserved_category_word|publisher:entry_status|publisher:current_url|publisher:current_uri|page_uri:3|page_url:3|page_uri:2|page_url:2|page_uri:1|page_url:1|phrase:language_en|current_phrases|global:text_direction|route_0|route_1|route_2|route_3|route_4|route_5|route_6|route_7|route_8|route_9|route_10|site_id|site_label|site_short_name|last_segment|current_url|current_path|current_query_string
    (0.332946 / 16.44MB) Snippets (Values): local|Local|/static|https://local.thisistomorrow.info|FAL... Is Tomorrow|default_site|broadcasts|http://local.thisistomorrow.info/broa...|
    (0.333493 / 16.44MB) Parse Date Format String Constants
    (0.333536 / 16.44MB) Parse Current Time Variables
    (0.333691 / 16.44MB) Parsing Segment, Embed, and Global Vars Conditionals
    (0.334409 / 16.45MB) - Beginning Tag Processing -
    (0.334465 / 16.43MB) Parsing Tags in Template
    (0.334511 / 16.44MB) Tag: {exp:channel:entries channel="broadcasts" limit="1" disable="categories|category-fields|member-data"}
    (0.334622 / 16.44MB) Closing Tag Found
    (0.334724 / 16.44MB) Tag: {exp:channel:entries channel="articles" limit="1" disable="categories|category-fields|member-data"}
    (0.334819 / 16.44MB) Closing Tag Found
    (0.334906 / 16.45MB) Tag: {exp:low_random:item items="v1|v2|v3|v4|v5"}
    (0.334997 / 16.44MB) No Closing Tag
    (0.335095 / 16.45MB) Tag: {exp:low_search:form result_page="search" form_class="t3 d3 pull-down navbar-search search" collection="articles"}
    (0.335194 / 16.45MB) Closing Tag Found
    (0.335275 / 16.45MB) Tag: {exp:tagger:groups}
    (0.335328 / 16.45MB) Closing Tag Found
    (0.335406 / 16.46MB) Tag: {exp:channel:month_links channel="articles|broadcasts" limit="12"}
    (0.335490 / 16.45MB) Closing Tag Found
    (0.335545 / 16.46MB) Processing Tags
    (0.335587 / 16.46MB) Module Tag: Channel/entries
    (0.335613 / 16.46MB) Module Tag: Channel/entries
    (0.335665 / 16.46MB) Plugin Tag: Low_random/item
    (0.335695 / 16.46MB) Module Tag: Low_search/form
    (0.335721 / 16.46MB) Module Tag: Tagger/groups
    (0.335745 / 16.46MB) Module Tag: Channel/month_links
    (0.335770 / 16.46MB) Including Files for Plugins and Modules
    (0.346159 / 17.01MB) Files for Plugins and Modules All Included
    (0.346204 / 17.01MB) Beginning Final Tag Data Processing
    (0.346234 / 17.01MB) Calling Class/Method: Channel/entries
    (0.346556 / 17.01MB) -> Class Called: Channel
    (0.346867 / 17.02MB) -> Method Called: entries
    (0.355307 / 17.04MB) Calling Extension Class/Method: Publisher_ext/channel_entries_query_result
    (0.360948 / 17.04MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
    (0.362709 / 17.08MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.363159 / 17.09MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.366282 / 17.09MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.367899 / 17.02MB) -> Data Returned
    (0.367992 / 17.02MB) Calling Class/Method: Channel/entries
    (0.368433 / 17.02MB) -> Class Called: Channel
    (0.368762 / 17.03MB) -> Method Called: entries
    (0.381031 / 17.06MB) Calling Extension Class/Method: Publisher_ext/channel_entries_query_result
    (0.389611 / 17.09MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
    (0.396172 / 17.26MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata
    (0.396555 / 17.26MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.414066 / 17.84MB) Calling Extension Class/Method: Publisher_ext/channel_entries_tagdata_end
    (0.416060 / 17.76MB) -> Data Returned
    (0.416177 / 17.76MB) Calling Class/Method: Low_random/item
    (0.416382 / 17.76MB) -> Class Called: Low_random
    (0.416442 / 17.76MB) -> Method Called: item
    (0.416615 / 17.76MB) -> Data Returned
    (0.416686 / 17.76MB) Calling Class/Method: Low_search/form
    (0.416835 / 17.76MB) -> Class Called: Low_search
    (0.429900 / 18.18MB) -> Method Called: form
    (0.436528 / 18.31MB) -> Data Returned
    (0.436655 / 18.31MB) Calling Class/Method: Tagger/groups
    (0.437181 / 18.31MB) -> Class Called: Tagger
    (0.437409 / 18.31MB) -> Method Called: groups
    (0.448287 / 18.32MB) -> Data Returned
    (0.448421 / 18.32MB) Calling Class/Method: Channel/month_links
    (0.448721 / 18.32MB) -> Class Called: Channel
    (0.449088 / 18.33MB) -> Method Called: month_links
    (0.458892 / 18.34MB) -> Data Returned
    (0.459075 / 18.32MB) - End Tag Processing -
    (0.459123 / 18.32MB) Processing Advanced Conditionals
    (0.462227 / 18.33MB) Calling Extension Class/Method: Publisher_ext/template_post_parse
    (0.462791 / 18.34MB) Calling Extension Class/Method: Stash_ext/template_post_parse
    (0.463046 / 18.33MB) Processing Sub Template: inc/_foot
    (0.463071 / 18.33MB) Retrieving Template
    (0.463091 / 18.34MB) Retrieving Template from Database: inc/_foot
    (0.464448 / 18.34MB) Template Found
    (0.464641 / 18.34MB) Retrieving Template from File
    (0.465709 / 18.35MB) Calling Extension Class/Method: Low_variables_ext/template_fetch_template
    (0.466063 / 18.35MB) Calling Extension Class/Method: Stash_ext/template_fetch_template
    (0.466288 / 18.33MB) Template Type: webpage
    (0.466370 / 18.33MB) Parsing Site Variables
    (0.466590 / 18.33MB) Snippets (Keys): global:env|global:env_full|global:static_url|global:https_url|freelancer_version|root_url|publisher:current_language_code|publisher:current_language_id|publisher:default_language_code|publisher:default_language_id|publisher:current_language_prefix|publisher:reserved_category_word|publisher:entry_status|publisher:current_url|publisher:current_uri|page_uri:3|page_url:3|page_uri:2|page_url:2|page_uri:1|page_url:1|phrase:language_en|current_phrases|global:text_direction|route_0|route_1|route_2|route_3|route_4|route_5|route_6|route_7|route_8|route_9|route_10|site_id|site_label|site_short_name|last_segment|current_url|current_path|current_query_string
    (0.466638 / 18.33MB) Snippets (Values): local|Local|/static|https://local.thisistomorrow.info|FAL... Is Tomorrow|default_site|broadcasts|http://local.thisistomorrow.info/broa...|
    (0.467135 / 18.33MB) Parse Date Format String Constants
    (0.467184 / 18.33MB) Parse Current Time Variables
    (0.467270 / 18.33MB) Parsing Segment, Embed, and Global Vars Conditionals
    (0.467378 / 18.33MB) - Beginning Tag Processing -
    (0.467479 / 18.31MB) Parsing Tags in Template
    (0.467537 / 18.31MB) Tag: {exp:low_variables:pair var="sidebar_ads"}
    (0.467684 / 18.31MB) Closing Tag Found
    (0.467779 / 18.31MB) Processing Tags
    (0.467854 / 18.31MB) Module Tag: Low_variables/pair
    (0.467887 / 18.31MB) Including Files for Plugins and Modules
    (0.470096 / 18.38MB) Files for Plugins and Modules All Included
    (0.470137 / 18.38MB) Beginning Final Tag Data Processing
    (0.470177 / 18.38MB) Calling Class/Method: Low_variables/pair
    (0.470614 / 18.38MB) -> Class Called: Low_variables
    (0.470809 / 18.39MB) -> Method Called: pair
    (0.470900 / 18.39MB) Low Variables: Getting variables from Database
    (0.485106 / 18.95MB) Low Variables: Calling Low_fieldtype_bridge::display_output()
    (0.492355 / 19.21MB) Calling Extension Class/Method: Publisher_ext/matrix_data_query
    (0.493360 / 19.22MB) Calling Extension Class/Method: Publisher_ext/matrix_data_query
    (0.525086 / 19.36MB) -> Data Returned
    (0.525171 / 19.35MB) - End Tag Processing -
    (0.525603 / 19.38MB) Calling Extension Class/Method: Publisher_ext/template_post_parse
    (0.526198 / 19.40MB) Calling Extension Class/Method: Stash_ext/template_post_parse
    (0.526649 / 19.38MB) Calling Extension Class/Method: Publisher_ext/template_post_parse
    (0.527236 / 19.40MB) Calling Extension Class/Method: Stash_ext/template_post_parse
    (0.527365 / 19.36MB) - End Template Processing -
    (0.527382 / 19.36MB) Parse Global Variables
    (0.530409 / 19.36MB) Template Parsing Finished
    Memory Usage: 21,327,704 bytes

  2. Low 18 Jun 2014 09:39

    So you're saying the LE tag with unit="passed" is showing 12 entries instead of the 6 set in the limit="" param? Can you share the complete Entries tag that's doing that? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.

  3. Niall Thompson 18 Jun 2014 09:44

    Yes that's right. I appreciate the replies. I know GeeUp is only days away.

    Here is the Entries tag.

    https://gist.github.com/niallthompson...

    Here is the live site: http://thisistomorrow.info/broadcasts

    It's the archive section at the bottom of the page.

  4. Low 18 Jun 2014 10:00

    It's tomorrow! :)

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  5. Niall Thompson 18 Jun 2014 10:06

    Details sent!

  6. Low 18 Jun 2014 10:56

    It's looking like this is Publisher's doing. I've swapped the LE:entries tag with the native channel:entries tag, and got double the amount of entries, too, ruling out LE.

    I disabled the Publisher hook that hooks into the channel_entries_query_results hook with this query:

    UPDATE exp_extensions SET enabled = 'n' WHERE extension_id = 119;


    ...and that made things work as expected again. To enable that hook again, use this query:

    UPDATE exp_extensions SET enabled = 'y' WHERE extension_id = 119;


    ...and you'll see that the limit="" param once again will be ignored.

  7. Niall Thompson 18 Jun 2014 11:32

    Hey Low,

    Thanks for looking into this especially considering the issue does not lie with your plugin.

    I've had a fair few problems with Publisher.

    Do the changes you have made to the template mean that it is now fixed or do I need to raise a ticket with Boldminded?

    Where did you add this: UPDATE exp_extensions SET enabled = 'n' WHERE extension_id = 119;?

  8. Low 18 Jun 2014 11:42

    I ran that query in the SQL Manager. I've restored it again, so it's in the original state. The changes I made to the template can be discarded, although the have no effect on the output.

    So it's not fixed. Definitely try and ask Boldminded.