Site broken - "This class only deals with http URL"
Permalink
Hoi!
I was finalizing my site by doing SEO Url settings and somehow and first I got strange error "Access Denied" in right hand side settings panel (nothing else was showing)
I checked back the checkbox "Remove index.php.." and then I tried to set up "Canonical URL" but after the save, I got my site broken. Now there's just simple text in top of my site, "This class only deals with http URL" and nothing else. I can get back to settings by clicking browser back button but nothing changes if I try to fix it out.
Google gives me nothing.
Any help?
I was finalizing my site by doing SEO Url settings and somehow and first I got strange error "Access Denied" in right hand side settings panel (nothing else was showing)
I checked back the checkbox "Remove index.php.." and then I tried to set up "Canonical URL" but after the save, I got my site broken. Now there's just simple text in top of my site, "This class only deals with http URL" and nothing else. I can get back to settings by clicking browser back button but nothing changes if I try to fix it out.
Google gives me nothing.
Any help?
That's coming from concrete/vendor/league/url/src/Components/Scheme.php
Basically the URL doesn't match this regexp:
Probably best to try and back that page out to the previous version (from the Sitemap), and be very careful when entering the canonical URL (which should be validated before it is stored of course).
Basically the URL doesn't match this regexp:
/^(http|ftp|ws)(s?)$/i
I'm still stuck with this and loosing hope... Nothing works in site anymore, I cant login or access dashboard.
I'm still stuck with this and loosing hope... Nothing works in site anymore, I cant login or access dashboard.
Try opening application/config/concrete.php and look for the config value that has URL that you entered. Remove that config value and it should fix the problem.
Tried it but no success.
I ended up to overwrite folders in my server (excluding application/files) and luckily, I didn't need to drop database, just reconnected it. I'm giving another try now to set up canonical url.
I ended up to overwrite folders in my server (excluding application/files) and luckily, I didn't need to drop database, just reconnected it. I'm giving another try now to set up canonical url.
I received this exact same error message on a live server.
Since I am using git workflow to track the mysql database and code changes, I checked the log to see what changed. To my surprised, the change was not in git (it must be an ignored code file, eg a cache file).
So, I stepped through using xdebug on a local environment to see what happens when you save changes to the canonical url settings.
It turns out those changes are written straight to:
/application/config/generated_overrides/concrete.php
So, I moved the file on live and refreshed the page and it worked again (thankfully). The /application/config/generated_overrides/concrete.php was rebuilt straight away from the files in /application/config and /concrete/config.
Since I am using git workflow to track the mysql database and code changes, I checked the log to see what changed. To my surprised, the change was not in git (it must be an ignored code file, eg a cache file).
So, I stepped through using xdebug on a local environment to see what happens when you save changes to the canonical url settings.
It turns out those changes are written straight to:
/application/config/generated_overrides/concrete.php
So, I moved the file on live and refreshed the page and it worked again (thankfully). The /application/config/generated_overrides/concrete.php was rebuilt straight away from the files in /application/config and /concrete/config.
I'm not familiar with the "This class only deals with http URL" error. Do you have any custom packages or have a link where we might see what's happening?