<![CDATA[ Undefined manager, can log out but nothing else - My Forums]]> https://forums.modx.com/thread/?thread=102070 <![CDATA[Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550127
After banging my head against a wall for several hours, I thought I would post here and see if I could get some help.

I'm running Revo 2.5.5 (now 2.5.6) on shared hosting. Since yesterday, when I log into the manager, the left-hand tree is gone, the dashboard title says "undefined", and choosing any menu item results in a blank page. The only thing I can do is log out. Another twist is that I can only log in from Chrome on my main computer. When I try other devices and browsers, I can't even log in because the login page just redirects to itself.

I've emptied /core/cache/ umpteen times. I've cleared out the cache in Chrome. I've tried disabling .htaccess. I've set compress_js and compress_css to 0. I've reinstalled MODX and even upgraded to 2.5.6. Same result, no matter what I do.

It occurred to me that the problem could have to do with mod_security. My webhost informed me that they do have mod_security installed, and there is no way to disable it. The only error I'm seeing is this one:
[Tue Apr 18 16:00:01 2017] [error] [client 65.75.128.175] client denied by server configuration: /home/truthfor/public_html/core/docs/changelog.txt

This error is triggered when I log in or log out of the manager. Does this error have anything to do with mod_security?
I know from what I read that it is preferable to host MODX on a host that doesn't have mod_security, but I hope I don't have to move to another host. That would be a big hairy deal.

The weird thing is that this just happened all of a sudden. I'm fairly certain that I didn't do anything to cause the manager to break like this. The only thing I've been tweaking lately is adding SSL to my site, and I did install the RevoSSL plugin not long ago. Could that be a possible source of the problem?

Please let me know if you have any thoughts or things I can try before I pull all my hair out. Thanks!
]]>
Beniamin Apr 18, 2017, 08:18 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550127
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550188 ]]> BobRay Apr 21, 2017, 09:34 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550188 <![CDATA[Re: Undefined manager, can log out but nothing else (Best Answer)]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550181
First of all, I remembered that I had another Revo installation on this same shared server. I don't know why it didn't occur to me to login there earlier, but I logged into that manager, and there were no issues there. So that led me to believe that it wasn't the host's fault, but something on my end, either in my database or files.

The next step was to figure out whether it was something in my database that was causing the problem, or something in the file system. I asked my web host to restore the database from a backup of when it was working fine. They did that, and the manager worked. So that told me the problem was in the database somewhere.

I used DiffMerge to look at dumps of both versions of the databases, but there was too much there to figure out. So I decided to try individual tables. I replaced the modx_system_settings table in the working version with that from the non-working version, and that broke the manager! So then I knew the problem was in that table, and I did a DiffMerge on that.

Turns out that last week when I was fiddling around with URLs in MODX, I had created a system setting for base_url. I don't think it accomplished anything, but I just left it there for some reason. When I removed that setting, voila, the manager is cured.

I guess the moral of the story is backup your database before you start tweaking random settings (I got lucky this time since the webhost had a backup!), and keep track of what you change, so you know what you might have done that would cause a problem. And remember that user error is always a possibility tongue

Thanks for your help guys. By the way, Bob, although it didn't identify the problem, I did purchase SiteCheck and ran it on this site. I think will be a good investment since I work with several MODX sites. It also found some issues with this one that I wasn't aware of.]]>
Beniamin Apr 21, 2017, 03:00 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550181
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550166
Visit with the browser in incognito or private mode in case it's a cookie problem (leftover cookies can mess up the Manager after an upgrade).

Edit this file: /home/truthfor/public_html/core/docs/changelog.txt and remove its content (back it up first). If that fixes things, it means that there's something in there that mod_security doesn't like.

I looked at the code of RevoSSL, and it doesn't appear to change any MODX settings or mess with .htaccess, so disabling the plugin should take it out of the picture as long as you manually delete all files in the core/cache directory after disabling it.

BTW, a good host will usually disable mod_security for the Manager folder if asked (or even for the whole site). They should also be able to look at their logs and tell you what rules are being violated.

You should also take a look at the three config.core.php files (root, manager, and connectors directories), and at core/config/config.inc.php. Make sure all the paths and URLs are correct. Sometimes the paths in there contain server-specific stuff and it's possible that your host moved your site to a different server.

]]>
BobRay Apr 20, 2017, 09:33 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550166
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550161
[Tue Apr 18 16:00:01 2017] [error] [client 65.75.128.175] client denied by server configuration: /home/truthfor/public_html/core/docs/changelog.txt
is caused by the .htaccess file in your /home/truthfor/public_html/core/ folder

When emptying the cache I presume you have been doing it via FTP or SSH?

It might be worth asking Bob Ray if his site check tool could help diagnose the problem. I believe that it can be run outside of MODX if the installation is not working correctly.

https://bobsguides.com/sitecheck-tutorial.html]]>
andytough Apr 20, 2017, 02:32 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550161
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550154
I only disabled the root level .htaccess file, but when I checked the one inside the manager folder just now, it wasn't enabled anyway. I tried enabling it, but that didn't do anything.

Just now I set all the files to 644 and all the directories to 755. Still no improvements.]]>
Beniamin Apr 19, 2017, 10:53 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550154
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550147
Just to clarify - the site did work OK previously on this host?

Have you changed the directory that the site is in?

When you disabled the .htaccess file did you disable both the one at the root level of the site and the one in the 'manager' folder?

Are the permissions for all files and folders correct?]]>
andytough Apr 19, 2017, 06:10 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550147
<![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550145 Beniamin Apr 19, 2017, 05:33 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550145 <![CDATA[Re: Undefined manager, can log out but nothing else]]> https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550143 may be relevant.

https://github.com/jgulledge19/RevoSSL/issues/1]]>
andytough Apr 19, 2017, 05:10 PM https://forums.modx.com/thread/102070/undefined-manager-can-log-out-but-nothing-else#dis-post-550143