allow_url_include and v3.2.8
Posted by: panos78 (45.139.213.---)
Date: March 10, 2022 07:37PM

Hallo.
After installing the latest update, a new bug came up...
There must be a conflict with the PHP module allow_url_include.
If you have it enabled, the homepage makes an error.
smiling smiley

Dr.nat.techn. Forester-Environmentalist

Options: ReplyQuote
Re: allow_url_include and v3.2.8
Posted by: Otomatic (Moderator)
Date: March 10, 2022 08:11PM

Hi,

> There must be a conflict with the PHP module allow_url_include.
> If you have it enabled, the homepage makes an error.
What is the exact and complete error message?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: allow_url_include and v3.2.8
Posted by: Otomatic (Moderator)
Date: March 11, 2022 10:40AM

Hi,

allow_url_include is obsolete since PHP 7.4.0.

I admit that I didn't check all the configuration possibilities of PHP - in fact it's completely impossible - so that the creation of the array can't be done if you want to load an obsolete directive, hence the error.
<?php

$loaded_extensions = 
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0
array (
  0 => 'Core',
  1 => 'bcmath',
  2 => 'calendar',
  3 => 'ctype',
...
While waiting for a correction of the function to take account of the obsolete "tricks", to mitigate this problem the solution is, in the file wamp64/www/index.php to comment the line 164 and to add a line, to obtain :
163 //Get PHP loaded extensions
164 //$message['phpLoadedExtensions'] = color('clean',GetPhpLoadedExtensions($c_phpVersion,6));
165 $message['phpLoadedExtensions'] = 'Not Valid';
166 //Dialog modal PHP extensions

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: allow_url_include and v3.2.8
Posted by: panos78 (45.139.213.---)
Date: March 11, 2022 01:59PM

I didn't know that "allow_url_include" had been deprecated since 7.4.0.
I had it enabled and didn't notice any difference till now.
I deactivated it and everything were fixed.
smiling smiley

Dr.nat.techn. Forester-Environmentalist

Options: ReplyQuote
Re: allow_url_include and v3.2.8
Posted by: Otomatic (Moderator)
Date: March 11, 2022 04:16PM

Hi,

In a case like this one, the solution I have just implemented, is the modification of the function GetPhpLoadedExtensions in the file wampserver.lib.php to take into account the possible Notice, Warning, Parse Error, Deprecated which could occur at the time of the call to a PHP function in CLI mode.

It is - for the moment - only the replacement of a single file and, to generate a Wampserver update is a rather heavy operation.

I'm going for a 3.2.8.1 "patch" which is relatively easy to implement, but which will be able to apply, of course, only on a Wampserver 3.2.8 version.

Thereafter, if necessary, there can be other patch 3.2.8.2 and so on, being understood that the addons and applications to come can be installed only on the last patch.

What do you think about it?

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: allow_url_include and v3.2.8
Posted by: panos78 (45.139.213.---)
Date: March 12, 2022 08:45AM

If someone has the same problem, he has two options:
- Disable "allow_url_include" or
- Follow your instructions
My suggestion is to remove the option from the menu if the user enables PHP > 7.4.0 and everything that causes the problem.
This can be done on the next major release, not with minor updates.
:-)

Dr.nat.techn. Forester-Environmentalist

Options: ReplyQuote


Sorry, only registered users may post in this forum.