Announcement

Collapse
No announcement yet.

AD Module Error

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

  • AD Module Error

    Hello,
    It seems we have run into the same problem others are having with the ad module. (similar reports linked below)
    https://www.vbulletin.com/forum/foru...-the-ad-module
    https://www.vbulletin.com/forum/foru...-the-ad-module
    The second one is for Cloud VB so may not be the same issue.

    We have an approved Adsense account and want to add it to our forum. The ad module will not allow us to configure it.
    1. vBulletin Version

    5.3.2 patch 1
    1. PHP Version

    7.1.7
    1. MySQL Version

    10.0.31 MariaDB
    1. Any Addons installed

    None. Fresh Vbulletin installation
    1. Does the issue occur in a default style?

    Yes
    1. Does the issue occur using the English language provided?

    Yes
    1. Error message on the screen'

    Attached an image (happens in Chrome, IE and FireFox)
    In Chrome it is “200 parseerror SyntaxError: Unexpected token G in json at position 0.” In Firefox It gives a much shorter: “Error information “0 error” in IE, it is the same as Chrome, as above. (screenshots attached)
    1. Browser and Browser version used.

    Latest IE, Chrome and Firefox. I also tried safari on my iPad
    1. Did you clear the browser cache and did the error continue?

    Yes, many times
    1. A list of steps that can be used to recreate the issue.

    Login as admin to front end.
    Turn on site editing
    Edit page
    Add the ad module anywhere on the page (tried many different positions)
    Click to edit the ad module. (error happens at this stage – you can’t enter anything to configure it.)


    We did place the site into debug mode and copy the message shown at bottom of page here: Debug Information

    • Page ID: 1
    • Parent ID: 0
    • Page Template ID: 1
    • Route ID: 4
    • Page Type: default
    • Screen Layout ID: 2
    • Screen Layout Template: screenlayout_display_wide_narrow
    • Channel ID: 1
    • Node ID:
    • Database Asserts: 177 (?)
    • AJAX Requests: 1
    • Facebook Active: No (Not enabled or no appid & secret set)
    • Style ID: 5
    • Templates/Renders: 38/83
    • CSS Templates: 6
    • JS Files: 5
    • Included Files: 156
    • Autoloaded Classes: 150
    • Current Time: Sun, 06 Aug 2017 01:15:30 +0000
    • Page Time: 0.2172


    Also – we tried to do the F12 google debug stuff but it never allowed us to recreate the error. It bombs out by saying ‘no configuration found’ on the ad module. After I finished rolling my eyes and saying “uh yeah, that’s the issue” I gave up. To be fair, this google debug stuff is new to me and annoying. So if you need this, please give me exact instructions and I will follow them.
    Last note: We did install the /core/install directory and the /admincp tools and ran the program you suggested to others. It did not change anything with regards to this error.

    Thank you in advance for any help. This is fast becoming a real frustration.



  • #2
    can you post the code you got from google it should look something like
    Code:
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
      (adsbygoogle = window.adsbygoogle || []).push({
        google_ad_client: "ca-pub-7639232952896777",
        enable_page_level_ads: true
      });
    </script>
    Cometbar

    DartsLeague

    Comment


    • #3
      The code I have from Google is not relevant here. I was never allowed to enter it.

      The error happens on clicking to configure. It is impossible to enter anything. (see images)
      Last edited by Bridgette; Sun 6 Aug '17, 12:43am. Reason: further clarification

      Comment


      • #4
        do you have adblock installed ?
        I guess ajax call ajax/api/ad/listAdsByLocation is blocked by adblock

        Comment


        • #5
          Originally posted by K a M a L View Post
          do you have adblock installed ?
          I guess ajax call ajax/api/ad/listAdsByLocation is blocked by adblock
          This is it. When i deactivate the adblocker everything is running fine! Works for me! Thanks

          Comment


          • #6
            That is not our issue. We do not have that installed.

            Comment


            • #7
              Update -- Since we recently switched from AVG to Kaspersky I checked if any ad blockers were installed and yep. They turned on ad blocking. Once I turned that off (temporarily... bcuz, who likes ads? lol) It all works.

              @VB you guys might want to add this tip in the manual about setting up ads.

              Thanks everyone!

              Bridgette

              ps - since you guys are so smart about ads - here is a quick question. Why do they display in middle of other mods when I placed at bottom of page? 1 shows at top, under logo and I did not set the module there.

              Comment


              • #8
                Originally posted by Bridgette View Post
                ps - since you guys are so smart about ads - here is a quick question. Why do they display in middle of other mods when I placed at bottom of page? 1 shows at top, under logo and I did not set the module there.
                Which ad module do you use? the widget..? Whats in the code and where did you place the widget?

                Comment

                Related Topics

                Collapse

                Working...
                X