Wampserver errors in php_error.log
Posted by: AnyFellow (5.179.85.---)
Date: August 09, 2024 09:56AM

Running versions on my server:
Wampserver 3.3.6 - 64bit
Apache 2.4.62
PHP 8.2.22
MySQL 9.0.1

In php_error.log i see the following errors:
[09-Aug-2024 07:21:21 UTC] PHP Warning: Undefined array key "localhost" in C:\wamp64\scripts\wampserver.lib.php on line 811
[09-Aug-2024 07:21:21 UTC] PHP Stack trace:
[09-Aug-2024 07:21:21 UTC] PHP 1. {main}() C:\wamp64\scripts\refresh.php:0
[09-Aug-2024 07:21:21 UTC] PHP 2. check_virtualhost($check_files_only = *uninitialized*) C:\wamp64\scripts\refresh.php:223
[09-Aug-2024 07:21:21 UTC] PHP Deprecated: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\scripts\wampserver.lib.php on line 813
[09-Aug-2024 07:21:21 UTC] PHP Stack trace:
[09-Aug-2024 07:21:21 UTC] PHP 1. {main}() C:\wamp64\scripts\refresh.php:0
[09-Aug-2024 07:21:21 UTC] PHP 2. check_virtualhost($check_files_only = *uninitialized*) C:\wamp64\scripts\refresh.php:223
[09-Aug-2024 07:21:21 UTC] PHP 3. mb_strtolower($string = NULL) C:\wamp64\scripts\wampserver.lib.php:813
[09-Aug-2024 07:21:21 UTC] PHP Warning: Undefined array key "localhost" in C:\wamp64\scripts\wampserver.lib.php on line 811
[09-Aug-2024 07:21:21 UTC] PHP Stack trace:
[09-Aug-2024 07:21:21 UTC] PHP 1. {main}() C:\wamp64\scripts\refresh.php:0
[09-Aug-2024 07:21:21 UTC] PHP 2. check_virtualhost($check_files_only = *uninitialized*) C:\wamp64\scripts\refresh.php:223
[09-Aug-2024 07:21:21 UTC] PHP Deprecated: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp64\scripts\wampserver.lib.php on line 813
[09-Aug-2024 07:21:21 UTC] PHP Stack trace:
[09-Aug-2024 07:21:21 UTC] PHP 1. {main}() C:\wamp64\scripts\refresh.php:0
[09-Aug-2024 07:21:21 UTC] PHP 2. check_virtualhost($check_files_only = *uninitialized*) C:\wamp64\scripts\refresh.php:223
[09-Aug-2024 07:21:21 UTC] PHP 3. mb_strtolower($string = NULL) C:\wamp64\scripts\wampserver.lib.php:813

Does everyone have these, or is it just in my installation?

Options: ReplyQuote
Re: Wampserver errors in php_error.log
Posted by: Otomatic (Moderator)
Date: August 09, 2024 09:59AM

What is the contents of the file : wamp64\bin\apache\apache2.4.62\conf\extra\httpd-vhosts.conf

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

Options: ReplyQuote
Re: Wampserver errors in php_error.log
Posted by: AnyFellow (5.179.85.---)
Date: August 09, 2024 10:30AM

httpd-vhosts.conf (domain-names anonymized):

# Virtual Hosts
#
<VirtualHost *:80>
ServerName subdomain1.domain.dk
DocumentRoot "d:/www"
Redirect permanent / [subdomain1.domain.dk]
</VirtualHost>

<VirtualHost *:80>
ServerName subdomain2.domain.dk
DocumentRoot "d:/www.test"
Redirect permanent / [subdomain2.domain.dk]
</VirtualHost>

Options: ReplyQuote
Re: Wampserver errors in php_error.log
Posted by: Otomatic (Moderator)
Date: August 09, 2024 11:02AM

You put back the httpd-vhosts.conf file as it was originally. An original copy exists in: wamp64\bin\apache2.4.62\conf\original\wampserver\
then you add your own VirtualHost to it.

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

Options: ReplyQuote
Re: Wampserver errors in php_error.log
Posted by: AnyFellow (5.179.85.---)
Date: August 09, 2024 11:58AM

Perfect, that solved the issue.

Thank you very much for helping.

Options: ReplyQuote


Sorry, only registered users may post in this forum.