Low Reorder Next Entry doesn't work after upgrade to ExpressionEngine 3
I've upgraded a website from ExpressionEngine 2 to 3 and updated all the add-ons including Low Reorder. Low Reorder was previously working but after the upgrade to ExpressionEngine 3 exp:low_reorder:prev_entry isn't working. exp:low_reorder:next_entry works fine though!
Code in my template is:
{exp:low_reorder:next_entry set="set_1" url_title="{embed:url_title}" category="{segment_3_category_id}"}
{/exp:low_reorder:next_entry}
{exp:low_reorder:prev_entry set="set_1" url_title="{embed:url_title}" category="{segment_3_category_id}"}
{/exp:low_reorder:prev_entry}
<!-- end prevnext -->
Replies
Josh Conner 21 Jul 2017 12:12
Here's the template debug info. If you'd like access to the stage domain, please email me and I'd be happy to provide them.
0.000034 / 5.6MB - Begin Template Processing -
0.000062 / 5.6MB URI: portfolio/birds/birds-of-prey/golden-eagle-on-log
0.000071 / 5.6MB Template: /
0.004395 / 5.7MB Template Group Found: portfolio
0.009642 / 5.8MB Retrieving Template from Database: portfolio/index
0.010941 / 5.9MB Retrieving Template from File
0.017650 / 6.1MB Calling Extension Class/Method: Low_seg2cat_ext/template_fetch_template
0.046869 / 6.8MB Template Type: webpage
0.046900 / 6.8MB Parsing Site Variables
0.047406 / 6.8MB Config Assignments & Template Partials
0.047827 / 6.8MB Parse Current Time Variables
0.047892 / 6.8MB Parsing Segment, Embed, Layout, logged_in_*, and Global Vars Conditionals
0.059560 / 7.1MB - Beginning Tag Processing -
0.059585 / 7.1MB - End Tag Processing -
0.059616 / 7.1MB - Processing Sub Templates (Depth: 1) -
0.059635 / 7.1MB List of Embeds: portfolio/photo url_title=golden-eagle-on-log
0.059710 / 7.1MB Processing Sub Template: portfolio/photo
0.059729 / 7.1MB Retrieving Template from Database: portfolio/photo
0.061398 / 7.1MB Retrieving Template from File
0.061835 / 7.1MB Calling Extension Class/Method: Low_seg2cat_ext/template_fetch_template
0.061922 / 7.1MB Template Type: webpage
0.061958 / 7.1MB Parsing Site Variables
0.062145 / 7.1MB Config Assignments & Template Partials
0.062899 / 7.1MB Embed Variables: (show more)
0.063058 / 7.1MB Parse Current Time Variables
0.063572 / 7.1MB Parsing Segment, Embed, Layout, logged_in_*, and Global Vars Conditionals
0.080540 / 7.1MB - Beginning Tag Processing -
0.080575 / 7.1MB Detecting Tags in Template
0.080949 / 7.1MB Running Tags
0.095358 / 7.7MB Calling Tag: {exp:channel:entries channel="photos" url_title="golden-eagle-on-log"}
0.130623 / 9.1MB Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
0.138870 / 9.5MB Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
0.179324 / 10.8MB Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
0.211723 / 11.3MB -> Data Returned
0.213754 / 11.3MB Calling Tag: {exp:low_reorder:prev_entry set="set_1" url_title="golden-eagle-on-log" category="2"}
0.213918 / 11.3MB Low Reorder: Retrieving set from database
0.216240 / 11.5MB Low Reorder: Retrieving cat_id from parameter
0.216279 / 11.5MB Low Reorder: Getting ordered entry_ids from database
0.219019 / 11.5MB Low Reorder: Retrieving entry_id from database
0.220164 / 11.5MB Low Reorder: Getting prev entry from stack 440|439|438|437|436|435|434|433|432|431|430|21
0.222608 / 11.5MB -> Data Returned
0.222688 / 11.4MB Detecting Tags in Template
0.222759 / 11.4MB No Closing Tag
0.222957 / 11.4MB No Closing Tag
0.223145 / 11.4MB Running Tags
0.226151 / 11.5MB Calling Tag: {exp:seo_lite entry_id="441"}
0.229063 / 11.5MB -> Data Returned
0.232433 / 11.7MB Calling Tag: {exp:low_search:form channel="photos" result_page="search" required="keywords"}
0.235589 / 11.9MB -> Data Returned
0.236664 / 11.9MB Calling Tag: {exp:navee:nav nav_title="main" id="menu" class="dropdown" selected_class_on_parents="true"}
0.248958 / 12.4MB -> Data Returned
0.249226 / 12.2MB Calling Tag: {exp:low_reorder:next_entry set="set_1" url_title="golden-eagle-on-log" category="2"}
0.249344 / 12.2MB Low Reorder: Retrieving set from cache
0.249361 / 12.2MB Low Reorder: Retrieving cat_id from parameter
0.249378 / 12.2MB Low Reorder: Getting ordered entry_ids from cache
0.249412 / 12.2MB Low Reorder: Retrieving entry_id from cache
0.249430 / 12.2MB Low Reorder: Getting next entry from stack 442|443|444|445|446|447|448|449|450|451|452|453|454|455|456
0.251476 / 12.2MB -> Data Returned
0.251697 / 12.2MB Calling Tag: {exp:channel:entries channel="photos" entry_id="440"}
0.256698 / 12.2MB Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
0.256948 / 12.2MB Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
0.264902 / 12.3MB Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
0.267909 / 12.2MB -> Data Returned
0.267948 / 12.2MB Detecting Tags in Template
0.268095 / 12.2MB Running Tags
0.268296 / 12.2MB Calling Tag: {exp:channel:entries channel="photos" entry_id="441"}
0.272997 / 12.3MB Calling Extension Class/Method: Low_reorder_ext/channel_entries_query_result
0.273261 / 12.3MB Calling Extension Class/Method: Low_search_ext/channel_entries_query_result
0.275885 / 12.3MB Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
0.277284 / 12.2MB -> Data Returned
0.277334 / 12.3MB - End Tag Processing -
0.277343 / 12.3MB Parsing PHP on Output
0.283871 / 12.3MB Processing Advanced Conditionals
0.286196 / 12.3MB - End Template Processing -
0.286210 / 12.3MB Parse Global Variables
0.290866 / 12.3MB Template Parsing Finished
Low 21 Jul 2017 12:50
What exactly do you mean by "isn't working"? Are you getting no output? Or the wrong entry? Can you try and add the prev/next code in a clean template, so without any other tags (other than perhaps the current entry tag)?
The debugging code shows LR is working properly, as shown by these lines:
Josh Conner 21 Jul 2017 13:01
The {exp:low_reorder:next_entry} isn't pulling the entry information for the next entry. When I reverse the order that the tags are in the template though then the {exp:low_reorder:prev_entry} doesn't pull the entry information for the previous entry.
You can see the staging site and an example of an entry here: http://104.131.52.147/portfolio/birds...
Low 21 Jul 2017 13:04
Are you nesting the tags in another tag? If so, try and use the prefix parameter (and variables), see http://gotolow.com/addons/low-reorder...
Josh Conner 21 Jul 2017 13:45
It is nested inside a channel entries tag but adding the prefix parameter doesn't seem to affect it. Unless I'm doing something wrong.
Low 21 Jul 2017 13:46
OK, I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.
Josh Conner 21 Jul 2017 14:05
Added 'prefix="next_"' on the next tag, then '{next_url_title}' to the link and that was the solution to the problem.
Thanks Low!!