We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36782
    • 109 Posts
    Hi,
    Revo 2.2.4 (but same problem existed with 2.1 and up, finally getting really sick of it.... haha)
    Hosting is shared, Linux based. They use mod_cecurity, and had to turn off part of it for this site.
    All the php and mysql is up-to-date. Don't know what else to say about the hosting. Vexxhost.com, they're pretty good for the price.

    Anyway, I've tried a lot of different settings over the years, but nothing ever seems different.

    I log in, I edit for a bit, and then I'll be saving and I'll get "Access Denied" instead of "success". It's random, always somewhere between 2 and 10 minutes after logging in, and it repeats.

    I know this is vague, and I am sorry... but I can't seem to find a pattern, and my settings changes are just starting to be more like blind man's bluff at this point.

    Cheers
    -gabriel

    This question has been answered by sottwell. See the first response.

    [ed. note: smashingred last edited this post 10 years, 2 months ago.]
    • Does this happen with any content being saved? Are you able to save the same content after logging in again? Could it be mod_security still getting hung up on something? Because that's what this sounds like.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36782
        • 109 Posts
        Not sure if I understand.
        [edit]
        oh, oops - yeah, I get what you mean now, on second read - No, unfortunately it doesn't seem to be content related. That issue was what made them turn off mod_security for me in the first place, but I've been fine with all kinds of tags, etc. since then. It's really more "random" than that (obviously there must be a pattern, but I'll be damned if I can find it...)
        [/edit]

        If I get access denied, I can copy the content, then I refresh the page which 9 times out of 10 brings me to the login screen; then I log back in, and paste the content back in to whatever I was editing and save it.
        If I was creating a new item, then obviously it gets lost.

        It happens with resources, snippets, chunks... no discernible pattern... sometimes it happens with files, or file browsing. It doesn't kick me to the login screen automatically, though; I have to refresh the browser page to get kicked there. But it amounts to the same thing.

        Actually, sometimes just opening another chunk/snippet/resource will bypass having to log back in, which is wierd. but not usually.

        LOL
        If someone can make sense of this, you deserve a prize!

        -g [ed. note: unsub777 last edited this post 10 years, 11 months ago.]
        • Check into the php time, mySQL time, and server time.

          I copied a snippet into a test article some time back, it can check these times for you. Last time I ran into this kind of behavior, the times were all willy nilly and I found it by running the snippet to check all three.

          http://www.frogabog.com/frogablog/2012/06/25/server-time,-php-time,-modx-time/
            Frogabog- MODX Websites in Portland Oregon
            "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
            Having server issues? These guys have MODX Hosting perfected - SkyToaster
            • 36782
            • 109 Posts
            oh I was so hopeful smiley

            but all seems to be in order...

            php time is: May 11, 2013, 4:10 pm
            mySQL time is: 2013-05-11 16:10:08
            mySQL system timezone is: EDT
            mySQL session timezone is: EDT

            Thnx very much for your reply, though. And that's a good snippet to know of, so thnx for that too.
            • Crud...

              I believe I recall a post in the past where turning on database caching at the server was the solution. Ask the host if it's off?

              Or sessions. Which I don't know much about, sorry. Google searches are usually better than forum searches, so try "MODX Sessions" or variations there.
                Frogabog- MODX Websites in Portland Oregon
                "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                Having server issues? These guys have MODX Hosting perfected - SkyToaster
                • 36782
                • 109 Posts
                Oh yes, sessions. Bit of a black art. I'll have to figure that out eventually.
                Same w/ Modx caching system, come to think of it, I know it's supposed to be really good - I'm sure it is - but honestly it is so over my head. Nothing like the cache settings in modx to make me feel like a rank beginner again!

                I'll check w/ the host about database caching @ server, thanks very much for the suggestion. And maybe I'll do some studying, too... maybe this time, right? It's all going to come clear. wink
                • discuss.answer
                  You could also try the System Setting "session_handler_class". By default upon installation, this is set to modSessionHandler, which stores the session in the database. If you empty the value, then it will use the PHP default file-based session handler.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 36782
                    • 109 Posts
                    @Frogabog : the host says they have database caching turned on, so that's good. I guess... smiley

                    @Sotwell : I've tried that setting, we'll see what happens.

                    Thnx for all your suggestions smiley

                    -g
                      • 36782
                      • 109 Posts
                      Hi @Sotwell,
                      I completely forgot to reply to you and say thanx. It worked for me, and the problem is fixed after about 2 years, LOL. So cheers.