Announcement

Collapse
No announcement yet.

Notices changes are not saved, and/or does not display

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Notices changes are not saved, and/or does not display

    Hi,

    I have a very weird behaviour where my notices does not display what is actually set in the admincp.
    For instance :
    Click image for larger version

Name:	26-03-2018 10-53-33.jpg
Views:	16
Size:	205.2 KB
ID:	4388609

    Click image for larger version

Name:	26-03-2018 10-53-44.jpg
Views:	15
Size:	93.4 KB
ID:	4388610

    Also, sometimes, when i try to change the text of the notice, the changes are not saved. For instance if i remove the "<br>" in the previous notice and save, they are still there when i come back...
    Click image for larger version

Name:	26-03-2018 10-55-39.jpg
Views:	16
Size:	221.0 KB
ID:	4388611
    Click image for larger version

Name:	26-03-2018 10-56-04.jpg
Views:	13
Size:	215.4 KB
ID:	4388612

    I have no idea what might cause this behaviour...

  • #2
    Are you using a service like Cloudflare? You should exclude the AdminCP from any CDN.
    Last edited by Wayne Luke; Mon 26 Mar '18, 1:29pm.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      I am not using any CDN service, nor cache other than the vbulletin one.

      Comment


      • #4
        What version of vBulletin are you running?
        Also, what php version?
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.6.3 Demo
        AdminAmmo - My Cloud Demo

        Comment


        • #5
          I am currently on 5.3.4 and on PHP7.0.
          I will test on my development environment which is already on 5.4.0.

          From what i get, from my test, i actually only get 1 or 2 edits of the notice before the notice get stuck.

          Comment


          • #6
            It does sound like some sort of server-side caching to be honest.

            I will however test on my demo site later.
            MARK.B | vBULLETIN SUPPORT

            TalkNewsUK - My vBulletin 5.6.3 Demo
            AdminAmmo - My Cloud Demo

            Comment


            • #7
              I agree that it really looks like it.
              i am quite certain I don't have any cache installed though. And it wouldn't explain why the first change goes ok and the following ones does not.

              ​​​​​​I do think it might be an issue with my messy upgrade from 3.0 ending in a mixed up DB between utf8 and Latin, although I finally managed to go full utf8 in the end...

              Comment


              • #8
                If the system saves it the first two times and then doesn't after that, it sounds like you have a tool like Mod_Security on the server. This tool and others like it can prevent you from talking to the server and either make too many requests or submit too many forms in rapid succession. The restriction is usually time-based so I would suggest waiting a few minutes and then try again.

                It might help if you write out your HTML in a text editor like Microsoft Visual Studio Code or Github's Atom. Both of these are free editors and know HTML so they can alert you to formatting issues. They also have extensions that allow you to preview your code inline or in a web browser before submitting it in the form. You'll write better code and need fewer submissions.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment


                • #9
                  I actually have mod_security activated on the server so you might be right, ill try and look at the logs tomorrow.
                  but from what I get it would rather block the content straight up the first time and end up banning my IP from the server.

                  Yet I do not think the issue would come from my notice code as it only contains text and links. Maybe something in vbulletin notice management code triggers an alarm in mod_security.
                  ​​​​​

                  Comment


                  • #10
                    We don't test against mod_security. There are too many variables to try and figure out what the thousands of servers out there would use. You should just exempt the AdminCP from protections like this unless you're going to attack your own site. We assume that people with access to the AdminCP can actually do a lot of things that could compromise the security of the vBulletin installation. This is why you can edit templates, use HTML, run queries and more.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X