MODX Community

Login Snippet Problem

Modx 2.7.3 (though it did the same ting with 2.7.1)
PHP 7.2
Apache

Ive not had real problems with the login snippet but here is what is happening.
Ive setup the proper login pages and snippets.
Ive created a new user, password, along with the Resource Group, User Group.
Assigned a page to be accessed by that group.

But when I try to login with that new user, it goes to my assigned error page and the url
domain.com/login-page/login-page/

Does the same with my root admin login too.

Cleared core/cache, different browsers, cleaned browser cache.
Ive followed the Modx snippet procedures unless ive missed something.
only errors i can find are in cpanel

[Thu Mar 05 14:04:55.262371 2020] [authz_core:error] [pid 31311:tid 47667477100288] [client 100.000.000.000:37402] AH01630: client denied by server configuration: /home/public_html/core/docs/changelog.txt

I thank you for your time.

I setup a test site on the same server and installed that modx sample site demo that has login built in and it works fine.

The only things that come to mind are a file permission problem with some of the Login package files or a rule in .htaccess (in the root, or the core directory) that’s causing trouble.

I know that the common advice to protect the core directory with .htaccess rules interferes with some extras, though I don’t remember which ones.

Ahhh ok. Not sure this matters but on my fresh install, im getting:

[2020-03-05 16:31:50] (ERROR in xPDO::getService @ /home/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-03-05 16:31:50] (ERROR in xPDO::getService @ /home/core/xpdo/xpdo.class.php : 1234) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-03-05 16:31:50] (ERROR in modRestCurlClient::__construct @ /home/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.
[2020-03-05 16:31:50] (ERROR in modRestCurlClient::__construct @ /home/core/model/modx/rest/modrestcurlclient.class.php : 26) modRestClient::__construct is deprecated since version 2.3.0. Use the modRest classes instead.

Well i am not sure what I did but I seem to have it working.

I thank you for the help.

Those error message are unrelated. You can turn them off by changing the log_deprecated System Setting.