Jump to content

Ads not delivering (PARSE blocked)


Recommended Posts

I have setup a basic Revive Adserver setup. I am getting mixed and unreliable results. (It worked for a little while and then stopped).

This error message is in the javascript console:

A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.[REDACTED].us/ads/www/delivery/spc.php?zones=4&source=&r=52034309&charset=UTF-8&loc=http%3A//, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.

I am guessing it is based on CORS or an Apache setup issue. The question is what side?

The debug option on revive shows no data at all. 

What I am looking for is an example apache config for the "CLIENT" side website. I am guessing that's where the issue is.

 

I have tried:

# CORS
                Header always set Access-Control-Allow-Origin "*"
                Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
                Header always set Access-Control-Max-Age "1000"
                Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token"

 

RewriteCond %{REQUEST_METHOD} OPTIONS
                        RewriteRule ^(.*)$ $1 [R=200,L]

 

I am not getting any error messages on either side Apache, or Revive (just no ads). The setup did work once. I have also tried "application/javascript" instead if "text/javascript"

 

 

 

Link to comment
Share on other sites

I switch to ASYNC javascript. (the machines are doing nothing else but testing). 

Now 1 out of 10 times, I get an ad. There are no errors in the debug log, error.log on either machine.

Works better on firefox, random results on Chrome or Safari. 

I didn't do anything and it started working again. I have tried changing PHP versions to 5.6, 7.0, 7.1 

(Site is hosted on Godaddy)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...