Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: Problem with categories in URL and limit
Status | Resolved |
Add-on / Version | Publisher 2.3.0 |
Severity | |
EE Version | 3.5.3 |
2op
Mar 02, 2017
Description:
When I add a category in the URL and use limit on the channel or the paginate tags the following error occurs:
URL: http://www.mysite.com/index.php/pt/template/categoria/name-category
{exp:channel:entries channel="estabelecimentos" limit="1"}
{title}
{paginate}
{pagination_links}
...
{/pagination_links}
{/paginate}
{/exp:channel:entries}
ERROR
Notice
Undefined offset: 1
user/addons/publisher/Service/Entry/EntryResult.php, line 677
2op
Another similar error is when I use only the limit on the channel:
{exp:channel:entries channel=”estabelecimentos” limit=”5” } … {/exp:channel:entries}
ERROR
Notice Undefined index: entry_site_id
ee/legacy/libraries/channel_entries_parser/components/Simple_variable.php, line 76
Severity: E_NOTICE
BoldMinded (Brian)
Thanks again for the ticket. I’ll take a look.
BoldMinded (Brian)
I’m unable to replicate this. Can you replicate it on the demo.boldminded.com site? Feel free to edit templates or anything else necessary to replicate the issue. Locally I changed the colors/view.html template to have limit=”1”, added a pagination tag, and went to /en/colors/view/category/blue, and it showed 1 entry without any errors (in both languages).
2op
Fiz um teste e configurei o plugin exatamente igual a minha configuração local. Uma tela em branco está sendo exibida:
http://demo.boldminded.com/en/colors/view/category/black
BoldMinded (Brian)
Can you translate that to English please 😊
2op
I did a test and set the plugin exactly the same as my local configuration. A blank screen is displayed:
http://demo.boldminded.com/en/colors/view/category/black
http://demo.boldminded.com/en/colors/view/category/blue
BoldMinded (Brian)
Can you give me a detailed list of what you changed?
BoldMinded (Brian)
Specifically any Publisher settings, channel, or channel field changes. I can look at the templates and see what is different.
BoldMinded (Brian)
It looks like the page is loading again, could you return it to its broken state so I can debug?
2op
I added limit=”1” in the template:
{exp:channel:entries channel=”cards” limit=”1”}
And I disabled “Persistent Entries” in the plugin.
Blank Screen: http://demo.boldminded.com/en/colors/view/category/black
BoldMinded (Brian)
Sounds like the persistent entries is the key element here. Thanks for reporting, I’ll try to get it sorted out in the next few days.
BoldMinded (Brian)
Pretty sure I got this fixed. I’ll try to fix the other search ticket and send you a new build to test.
BoldMinded (Brian)
Comment has been marked private.
BoldMinded (Brian)
Comment has been marked private.
2op
Those comments are private and, even though I am logged in, I cannot see them.
BoldMinded (Brian)
You should be able to see it now.
2op
Comment has been marked private.
BoldMinded (Brian)
Ah, thanks for catching that. I’ll get it fixed in the next release.
BoldMinded (Brian)
Its actually no_result_page. See the docs: https://docs.expressionengine.com/latest/add-ons/search/advanced.html#no-result-page
Your post jogged my memory and this has come up before… people get the two confused.
2op
Comment has been marked private.
BoldMinded (Brian)
Not sure why thats the issue, but I updated my code to account for both variations so it shouldn’t be a problem in the future.
2op
Thanks!
BoldMinded (Brian)
Oh geez, this might be the source of the confusion (from EE core)