Announcement

Collapse
No announcement yet.

Forum channel page renders only the background

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

  • [Bug / Issue] Forum channel page renders only the background

    I'm having an issue with my forum running version 5.5.6. One channel page on the forum renders only the background image. Looking at the HTML, the content in the head tag ends after <script type="text/javascript" src="js/header-rollup-556.js"></script>. There is nothing in the body tag. There is only one channel page that has this issue. Individual posts within the channel render fine.

    PHP Version: 7.3.13
    MySQL Version: 5.7.29

    What could be causing this?

  • #2
    Is there any HTML on the page? The most likely cause would be a malformed HTML statement.

    Comment


    • #3
      The HTML is the same as a working channel page up to the "<script type="text/javascript" src="js/header-rollup-556.js"></script>" line. There is nothing after that line. So about 2/3's of the content in the head tag is missing and all of the body tag content is missing.

      There are no PHP errors either.

      Comment


      • #4
        Originally posted by TheOtherGuy View Post
        The HTML is the same as a working channel page up to the "<script type="text/javascript" src="js/header-rollup-556.js"></script>" line. There is nothing after that line. So about 2/3's of the content in the head tag is missing and all of the body tag content is missing.

        There are no PHP errors either.
        I'm just guessing blindly but it sounds like there's a missing or unclosed tag somewhere. The JS is the last script that appears on the page. It executes after everything else. You'll probably need someone to actually look at the page in question.

        Comment


        • #5
          Here are the actual pages.

          The one that doesn't work:

          https://www.m40rifle.com/forum/classifieds/firearms

          And one that does:

          https://www.m40rifle.com/forum/classifieds/optics

          Thanks for helping me out.

          Comment


          • #6
            Your content security policy is blocking the first page but not the second one.

            Content Security Policy: The page’s settings blocked the loading of a resource at https://www.m40rifle.com/js/header-rollup-556.js (“script-src”). 3
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:71:1
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:146:1
            Content Security Policy: The page’s settings blocked the loading of a resource at https://pagead2.googlesyndication.co...adsbygoogle.js (“script-src”). 4
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:721:1
            Content Security Policy: The page’s settings blocked the loading of a resource at https://pagead2.googlesyndication.co...adsbygoogle.js (“script-src”). 4
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:2677:1
            Content Security Policy: The page’s settings blocked the loading of a resource at https://ajax.googleapis.com/ajax/lib.../jquery.min.js (“script-src”). 4
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:2980:1
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:2991:1
            Content Security Policy: The page’s settings blocked the loading of a resource at https://www.m40rifle.com/js/footer-rollup-556.js (“script-src”). 4
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 4 classifieds:2997:1
            Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). 3 login-form:56:1
            Content Security Policy: The page’s settings blocked the loading of a resource at https://www.m40rifle.com/js/login_md5.js?v=556 (“script-src”). 3

            Comment


            • #7
              Pardon my ignorance but where is the CSP set? I am using the stock .htaccess that comes with 5.5.6. I removed all the legacy .htaccess files found with the Suspect File Versions tool.

              Comment


              • #8
                AdminCP > Settings > Options > Cookies And HTTP Header Options >

                Anti Clickjacking Headers - A Drop-Down Menu. The default setting is: Allow from same site only

                Content-Security-Policy Header - A blank field. Is there anything in yours?

                Comment


                • #9
                  Anti Clickjacking Headers is "Allow from same site only."

                  Content-Security-Policy Header is blank.

                  Comment


                  • #10
                    Does the issue happen with users that are not Administrators?

                    Are there any new entries in the PHP Error_log file when you load the page as the Administrator?

                    Are there any errors listed in the browser's console log? You can see this by opening the developer tools (usually F12 on Windows) and clicking on the Console tab. You may need to refresh the page. Errors are usually in red.
                    Translations provided by Google.

                    Wayne Luke
                    The Rabid Badger - a vBulletin Cloud demonstration site.
                    vBulletin 5 API - Full / Mobile
                    Vote for your favorite feature requests and the bugs you want to see fixed.

                    Comment


                    • #11
                      I've tried loading the page while logged in as an administrator, a registered user, and a guest. They all have the same result.

                      I deleted the PHP error_log a little while ago after resolving those issues. No new log file has been created.

                      Google Chrome and Internet Explorer 11 do not report any warnings or errors in their debuggers. Pages that render properly at least get some warnings.

                      Comment


                      • #12
                        Without an error message or feedback from the server, I don't know how to resolve the issue. You will need to open a support ticket with server access.

                        Translations provided by Google.

                        Wayne Luke
                        The Rabid Badger - a vBulletin Cloud demonstration site.
                        vBulletin 5 API - Full / Mobile
                        Vote for your favorite feature requests and the bugs you want to see fixed.

                        Comment


                        • #13
                          Oddly enough, the page has started working again. I added two lines back to the .htaccess file earlier today to force HTTPS but that's it. I tested my changes and they did not resolve the issue at the time.

                          Thanks In Omnibus and Wayne Luke for your help. I'll create a ticket if the issue reappears.

                          Comment

                          Related Topics

                          Collapse

                          Working...
                          X