<![CDATA[ NewsPublisher: errors when installing (should I worry?) - MODX Community Forums]]> https://forums.modx.com/thread/?thread=104061 <![CDATA[NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-559680 (PS. I've tried reinstalling the extra, but nothing much changed - the same lines where still in red.)]]> wyrdling Jul 18, 2018, 02:06 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-559680 <![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563139 ]]> BobRay Dec 06, 2018, 07:50 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563139 <![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563138 The np_login_redirect is set to Yes since the options are Yes and No, not 1 and 0. I assume that's ok.
Still getting a 404 on the NP page when not logged in.

Maybe related, but probably a Login snippet issue - I have placed a logout link on the NP page; it seems to logout and redirects to the correct page, but user is not actually logged out. Can navigate back to the page with NP form displayed.]]>
lucy Dec 06, 2018, 06:24 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563138
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563127
np_login_redirect=`1`
np_login_id=`##`
]]>
BobRay Dec 05, 2018, 11:32 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563127
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563125 BUT this only works if you start from the login page when not logged in. If you try to load the NP page when not logged in, I now see a 404, although that page used to redirect a not-logged in user to the login form. Not sure what changed.

I am having trouble with elFinder but will keep that in my other post.]]>
lucy Dec 05, 2018, 09:15 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563125
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563103
And, yes, install the Login snippet and use that.]]>
BobRay Dec 05, 2018, 03:26 AM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563103
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563100
There is an error page and it's configured in system settings so we can rule that out.

BobRay -- I'm not forwarding from the home page. I understand that the edit resource form would not show to anon users; I assumed the login form would display to anon and then the NP edit resource form would display once logged in. At first I had thought we were meant to use the default MODX manager login form somehow... but it sounds like I have that piece of it wrong and the Login snippet is required, yes? So I'll install that and report back here.

Thanks!]]>
lucy Dec 05, 2018, 01:24 AM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563100
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563097
You can make custom error pages within your site, but you still should have a dedicated error page for let's say general errors.]]>
nuan88 Dec 05, 2018, 12:49 AM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563097
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563093
Thanks for the kind words.

First, by default, the NewsPublisher page is not visible to just anybody. Usually, you don't want all anonymous users in the world to be able to create and edit resources on your site. wink So you need the Login snippet and they need to be registered users.

Second, it sounds like you're forwarding from your home page to the NewsPublisher page -- and your home page is also the error (page not found) page. That's not a good idea because users who aren't logged in to the front end will be sent back and forth between the site start page and the NewsPublisher page in an infinite loop -- hence the error.]]>
BobRay Dec 04, 2018, 10:27 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry?page=2#dis-post-563093
<![CDATA[Re: NewsPublisher: errors when installing (should I worry?)]]> https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry#dis-post-563085
I had identical errors as the OP on installation. MODX Revolution 2.6.5-pl and NP 3.0.4 pl.
I have set the system setting np_login_id to the ID of my page with NP snippet call.
I have left np_login_redirect set to Yes.

The NP form loads and works as expected when I'm logged in to the manager (as sudo). But when I log out and reload the page I see:

This page isn’t working dev.asite.cloud.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS


Note: I've cleared cookies, cache, and tried different browser, etc.

Should that page show a login form when no one is logged in?
Or, am I supposed to build a login form on a separate page?
I do not have the Login snippet installed - is it required? <-- I'm guessing this one's it...]]>
lucy Dec 04, 2018, 07:20 PM https://forums.modx.com/thread/104061/newspublisher-errors-when-installing-should-i-worry#dis-post-563085