Announcement

Collapse
No announcement yet.

5.3.1 Footer Rollup JS Error

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

  • 5.3.1 Footer Rollup JS Error

    Error_information_x popup.

    Error when fetching options: footer-rollup-531.js:352:22979
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.mywebsite.com/...lendar__events. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). (unknown)
    Error when fetching options: footer-rollup-531.js:352:22979
    Error when fetching phrases: footer-rollup-531.js:352:17999
    vBulletin.AJAX Error callback: //www.mywebsite.com/ajax/render/widget_calendar__events footer-rollup-531.js:352:82964
    vBulletin.AJAX Error data: footer-rollup-531.js:352:83005
    {title: "error", message: "error", callUrl: "//www.mywebsite.com/ajax/render/widget_calendar__events", textStatus: "error", jqXHRStatus: 0, errorThrown: ""}
    footer-rollup-531.js:352
    Error when fetching phrases: footer-rollup-531.js:352:17999
    vBulletin.loadingIndicator.hide ajax indicator suppressed footer-rollup-531.js:352:16531

  • #2
    When exactly does this js error occur?

    GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

    Comment


    • #3
      Originally posted by Glenn Vergara View Post
      When exactly does this js error occur?
      Before login.

      Comment


      • #4
        I can't recreate this error on this site. Are you using a CDN for javascript?
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud customization and demonstration site.
        vBulletin 5 Documentation - Updated every Friday. Report issues here.
        vBulletin 5 API - Full / Mobile
        I am not currently available for vB Messenger Chats.

        Comment


        • #5
          Originally posted by Wayne Luke View Post
          I can't recreate this error on this site. Are you using a CDN for javascript?
          No. Initially I thought it might be due to having no calendar events so I added one. The error persists.

          It appears before login. Once dismissed it stays gone until logout. It appears again before logging in.

          It appears in both Firefox and Chrome. Not tested in IE or Edge.

          It appears while the calendar is still loading.

          Comment


          • #6
            While logged out on this site and my local test site, I do not receive any errors on the Footer rollup file. What are the exact steps that you are using to create the issue?
            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud customization and demonstration site.
            vBulletin 5 Documentation - Updated every Friday. Report issues here.
            vBulletin 5 API - Full / Mobile
            I am not currently available for vB Messenger Chats.

            Comment


            • #7
              Originally posted by Wayne Luke View Post
              While logged out on this site and my local test site, I do not receive any errors on the Footer rollup file. What are the exact steps that you are using to create the issue?
              Just going to the main URL. While the page is loading the error pops up in a box.

              It's entirely possible it's the hosting causing the issue, especially if you're unable to reproduce it. I'm running this on a test site and I'm not exactly using primo dedicated hosting or even a cheap VPN. I'm going to move it to my dedicated server this weekend and see if the hosting is the issue.

              Comment


              • #8
                To follow up on this, here is the specific error (again):

                This is on a different server:

                vBulletin AJAX profile: Before request #43 footer-rollup-531.js:352:14829
                Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.xxx.us/ajax/render/widget_calendar__events. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). (unknown)
                vBulletin AJAX profile: Before request #44 footer-rollup-531.js:352:14829
                Error when fetching options: footer-rollup-531.js:352:22979
                Error when fetching phrases: footer-rollup-531.js:352:17999
                vBulletin AJAX profile: Before request #45 footer-rollup-531.js:352:14829
                Error when fetching phrases: footer-rollup-531.js:352:17999
                vBulletin.AJAX Error callback: //www.xxx.us/ajax/render/widget_calendar__events footer-rollup-531.js:352:82964
                vBulletin.AJAX Error data: footer-rollup-531.js:352:83005
                {title: "error", message: "error", callUrl: "//www.xxx.us/ajax/render/widget_calendar__events", textStatus: "error", jqXHRStatus: 0, errorThrown: ""}
                footer-rollup-531.js:352
                vBulletin AJAX profile: Before request #46 footer-rollup-531.js:352:14829
                Error when fetching phrases: footer-rollup-531.js:352:17999
                vBulletin AJAX profile: Before request #47 footer-rollup-531.js:352:14829
                Error when fetching phrases: footer-rollup-531.js:352:17999
                vBulletin.loadingIndicator.hide Counter: 0 Source: ajaxStop footer-rollup-531.js:352:16637
                vBulletin AJAX profile: Before request #48 footer-rollup-531.js:352:14829
                vBulletin.loadingIndicator.show ajax indicator suppressed footer-rollup-531.js:352:16241
                Error when fetching options: footer-rollup-531.js:352:22979
                vBulletin.loadingIndicator.hide ajax indicator suppressed footer-rollup-531.js:352:16531
                GET
                http://www.xxx.us/css.php

                Comment


                • #9
                  Is the calendar page in https? Or is the domain of the calendar page different than http://www.xxxx.us? Or are you accessing the calendar page without www? I'm guessing the last one.

                  GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                  Comment


                  • #10
                    Originally posted by Glenn Vergara View Post
                    Is the calendar page in https? Or is the domain of the calendar page different than http://www.xxxx.us? Or are you accessing the calendar page without www? I'm guessing the last one.
                    The calendar is on the index page which is the URL without the www

                    Clicking on the Forum tab reloads the page to the www URL

                    The site is not in https yet. It will be in the near future.

                    Comment


                    • #11
                      So I was right. The calendar page url has no www while the ajax call has www. This is the cause of the js error. You should access the calendar page with www. You should force www in htaccess so all pages will be using www.

                      GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                      Comment


                      • #12
                        Originally posted by Glenn Vergara View Post
                        So I was right. The calendar page url has no www while the ajax call has www. This is the cause of the js error. You should access the calendar page with www. You should force www in htaccess so all pages will be using www.
                        That did the trick.

                        I seem to have been the only one to have reported this issue but in the case or event anyone else runs into it:

                        Add the following to the .htaccess file. Change example.com to your actual URL.

                        #Force www:
                        RewriteCond %{HTTP_HOST} ^example.com [NC]
                        RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301,NC]

                        Comment


                        • #13
                          This is a server issue and not a vBulletin issue. And I think the default htaccess in 5.3.1 already has code for forcing www? You just have to remove the # to uncomment it.

                          GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                          Comment


                          • #14
                            Originally posted by Glenn Vergara View Post
                            This is a server issue and not a vBulletin issue. And I think the default htaccess in 5.3.1 already has code for forcing www? You just have to remove the # to uncomment it.
                            The htaccess file I have has a force https function that can be uncommented but does not appear to have a force www function.

                            Unsurprised to find this is a server issue. It's not the first I've had nor will it be the last. Test servers on the cheap are not a good idea in practice.

                            Comment


                            • #15
                              Oh it's force https and not www in the default htaccess. It would be nice to include www too.

                              GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X