Closed (duplicate)
Project:
CDN
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2016 at 08:14 UTC
Updated:
8 Jun 2016 at 13:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jonasdk commentedComment #3
jonasdk commentedComment #4
wim leersDo you see errors in your PHP error log?
Comment #5
jonasdk commentedI get following errors when trying to access a node that have an image in it - times 3 from 3 different IPs (all Fastly IPs)
InvalidArgumentException: The URI '//d3ocrpywcc4gay.cloudfront.net/sites/default/files/hero/2016-04/autohjaelp_trailer.jpg' is invalid. You must use a valid URI scheme. i Drupal\Core\Url::fromUri() (linje 276 af /var/www/html/core/lib/Drupal/Core/Url.php).And I get these messages from the fastly module also in recent reports:
Successfully purged the key config:cdn.settings. Purge ID: 296-xxxxx-xxxxx.In the screenshot you see the logs filed when I did a Activated of the preconfigured CDN module and after the 500's deactivated CDN in the settings again both on the Status tab in CDN module UI.
Comment #6
jonasdk commentedYou might also need to know that the way we have the sites set op is like this:
subdomain.prod.domain.dk (The drupal server)
subdomain.domain.dk (fastly)
The Drupal server is only accessible from fastlys servers.
Comment #7
wim leersThanks! Now I can do a targeted investigation :) Stay tuned!
Comment #8
wim leersComment #9
wim leersYour screenshot suggests you're actually using the
purgemodule. Is it possible that that's what you're seeing this error with?In any case, the specific error message you're seeing is because Drupal 8's
Urlclass currently does not support protocol-relative URLs. That's being fixed in #2573635: Url::fromUri() should accept protocol-relative URLs.I suspect Purge or a plugin for it is calling
file_create_url()when it should notComment #10
jonasdk commentedI don't have the purge module installed.
This is my make file
Comment #11
wim leersOh, hm, you're right. Those log entries in your screenshot indeed originate from the Fastly module. Let me look into this a bit more.
Comment #12
wim leersAre you uploading a file in that case? The more I think about this, the more it looks like this is a duplicate of #2711529: File upload widget broken when using CDN module, fixed in Drupal 8.1.4: require that version.
Comment #13
jonasdk commentedI am not saving a new file with it.
Just going to a node with a image and then trying to save it.
Comment #14
wim leersThat's effectively the same thing :) Thanks for confirming. See that other issue for details.
Comment #15
wim leers