[SOLVED] Fatal error: Invalid scheme name / Blank pages returned

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

[SOLVED] Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

I'm using version 3.2.2.

I get the PHP error below after logging in to the forum (ACP is available).

Code: Select all

Fatal error: Uncaught InvalidArgumentException: Invalid scheme name '' in /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/vendor/s9e/text-formatter/src/Configurator.php:8443
Stack trace:
#0 /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/vendor/s9e/text-formatter/src/Configurator.php(8099): s9e\TextFormatter\Configurator\Collections\SchemeList->normalizeValue('')
#1 /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/vendor/s9e/text-formatter/src/Configurator.php(8134): s9e\TextFormatter\Configurator\Collections\NormalizedList->append('')
#2 /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/vendor/s9e/text-formatter/src/Configurator.php(7207): s9e\TextFormatter\Configurator\Collections\NormalizedList->offsetSet(NULL, '')
#3 /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/phpbb/textformatter/s9e/factory.php(214): s9e\TextFormatter\Configurator\UrlConfig->allowScheme('')
#4 /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/phpbb/textformatter/s9e/factory.php(382): phpbb\textformatter\s9e\factory->get_configurator( in /customers/d/8/2/atlantvoldenidanmark.dk/httpd.www/vendor/s9e/text-formatter/src/Configurator.php on line 8443
I think the error is closely related to installing an extension.

What I did:
1) Downloaded and installed the extension "Advertisement Management" (https://www.phpbb.com/customise/db/extension/ads/)
2) Enabled the extension.
3) Blank pages returned.
4) Disabled extension - did not solve problem.
5) Deleted extension data - did not solve problem.
6) Deleted extension - did not solve problem.

Any suggestions?
Last edited by Nikolaj Halvorsen on Tue May 15, 2018 7:53 pm, edited 1 time in total.
/Nikolaj H.
User avatar
david63
Registered User
Posts: 19763
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Contact:

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by david63 »

Nikolaj Halvorsen wrote:
Sun May 13, 2018 2:57 pm
Any suggestions?
Restore the backup that you made before installing the extension.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

Unfortunately not an option :-(
/Nikolaj H.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68587
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Lumpy Burgertushie »

delete the production folder from within the cache folder.

refresh your browser.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

Sorry, forgot to mention, that I already deleted the cache.

I managed to restore website and cache to the version from yesterday (we luckily have automatic backup :-)).

However, I'm still interested in how enabling an extension could make so much damage (new to PHP and phpBB).
/Nikolaj H.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68587
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Lumpy Burgertushie »

two possibilities:
1. you made some sort of mistake when installing it

2. there is something different about your paticular server setup that caused it.

the extension has worked just fine for a long time on many different servers around the world so it is most unlikely to be a problem with the extension.

I would try again and be sure you are uploading all the files etc.

make sure you unzip it on your computer and not on the server.

make sure you are using a real ftp program to upload the files.

make sure you are using the correct version of the extension for your version of phpbb.


that is all I can think of right now.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

I don't think I have made any mistakes - hard when there are only five steps ;-)

I'm running phpBB 3.2.2 and extension 1.0.5 (for 3.2.2).

I use FileZilla for uploading.

The site that was trashed was hosted at one.com.

I have just setup the site locally using XAMPP. Which was trashed the second I enabled the extension.

I'll abandon the extension and find another one.
/Nikolaj H.
User avatar
Lumpy Burgertushie
Registered User
Posts: 68587
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Lumpy Burgertushie »

ok, just installed phpbb 3.2.2
uploaded and installed the ads extension ( same one you linked to )
all ran perfectly, the extension works just fine.

http://phpbbace.com/phpBB3.2.2

php version is 5.6.36

what php version are you running on your phpbb install?


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 23534
Joined: Fri Aug 29, 2008 9:49 am

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Mick »

Nikolaj Halvorsen wrote:
Mon May 14, 2018 8:13 pm
I'll abandon the extension and find another one
If there’s an issue with an extension the correct place for extension support is in the dedicated discussion/support topic for the extension.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • There will be legions of cricket lovers of both genders through whose lips the abomination ‘BATTER’ will never pass so long as we live” - Simon Heffer - Telegraph
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

I have investigated further, and I think there is a problem with the database and not the extension as another extension produces the same error.

Tried to install a brand new 3.2.2 against the current database - fail.
Tried to install a brand new 3.2.2 against a new database - success.

I managed to get debugging up and running, but I have zero PHP knowledge, so my current solution is to comment out the code that throws the error. Not the right solution but I just had to try it.

Code: Select all

class SchemeList extends NormalizedList
{
	public function asConfig()
	{
		return new Regexp('/^' . RegexpBuilder::fromList($this->items) . '$/Di');
	}
	public function normalizeValue($scheme)
	{
		/*if (!\preg_match('#^[a-z][a-z0-9+\\-.]*$#Di', $scheme))
			throw new InvalidArgumentException("Invalid scheme name '" . $scheme . "'");*/
		return \strtolower($scheme);
	}
}
Note, two different environments (Windows and Linux) produces the same error. I'm running PHP Version 7.1.17.
/Nikolaj H.
Nikolaj Halvorsen
Registered User
Posts: 9
Joined: Sun May 13, 2018 2:54 pm

Re: Fatal error: Invalid scheme name / Blank pages returned

Post by Nikolaj Halvorsen »

A trailing comma in the config_value for config_name allowed_schemes_links was the source of the error.

Don't know where to find this option in phpBB and I don't understand why this wasn't a problem until an extension was installed.
/Nikolaj H.
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52576
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [SOLVED] Fatal error: Invalid scheme name / Blank pages returned

Post by Brf »

The default value for that is "http,https,ftp"
No trailing comma
Post Reply

Return to “[3.2.x] Support Forum”