Some issues in XAMPP 8.0.0.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Some issues in XAMPP 8.0.0.1

Postby Jarda Cerny » 07. December 2020 21:27

Hello,

I have tried to use XAMPP from file xampp-portable-windows-x64-8.0.0-1-VS16.zip. I have noticed these issues:

Running setup_xampp.bat:

Warning: Undefined variable $backslash in E:\www\xampp8\install\install.php on line 452

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 452

... (repeated lines)

Warning: Undefined array key 100 in E:\www\xampp8\install\install.php on line 453

Warning: Undefined variable $doublebackslash in E:\www\xampp8\install\install.php on line 510

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 510

... (repeated lines)

Warning: Undefined array key 3 in E:\www\xampp8\install\install.php on line 511

Warning: Undefined variable $slash in E:\www\xampp8\install\install.php on line 569

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 569

... (repeated lines)

Warning: Undefined array key 15 in E:\www\xampp8\install\install.php on line 570

Warning: Undefined variable $perlactive in E:\www\xampp8\install\install.php on line 674

Warning: Undefined variable $pythonactive in E:\www\xampp8\install\install.php on line 674

Warning: Undefined variable $javaactive in E:\www\xampp8\install\install.php on line 674

Try to launch Apache:
- Regular error message "Missing libsqlite3.dll ..." (not first Xampp version with this bug)

Please fix.
Jarda Cerny
 
Posts: 2
Joined: 07. December 2020 21:16
XAMPP version: 8.0.0.1
Operating System: Windows 7

Re: Some issues in XAMPP 8.0.0.1

Postby gonzalo » 09. December 2020 21:35

Hi,

Thank you for reporting this issue. I tried several times with the .zip and .7z files to reproduce this issue but I'm not able to reproduce it. I can run Apache just fine, and I can visit the phpinfo() page without issues (to perform a request to Apache). Can you please provide more details on how to reproduce this issue?
gonzalo
 
Posts: 42
Joined: 12. March 2019 08:52
XAMPP version: any
Operating System: any

Re: Some issues in XAMPP 8.0.0.1

Postby Altrea » 10. December 2020 00:48

Jarda Cerny wrote:Running setup_xampp.bat:

Warning: Undefined variable $backslash in E:\www\xampp8\install\install.php on line 452

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 452

... (repeated lines)

Warning: Undefined array key 100 in E:\www\xampp8\install\install.php on line 453

Warning: Undefined variable $doublebackslash in E:\www\xampp8\install\install.php on line 510

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 510

... (repeated lines)

Warning: Undefined array key 3 in E:\www\xampp8\install\install.php on line 511

Warning: Undefined variable $slash in E:\www\xampp8\install\install.php on line 569

Warning: Trying to access array offset on value of type null in E:\www\xampp8\install\install.php on line 569

... (repeated lines)

Warning: Undefined array key 15 in E:\www\xampp8\install\install.php on line 570

Warning: Undefined variable $perlactive in E:\www\xampp8\install\install.php on line 674

Warning: Undefined variable $pythonactive in E:\www\xampp8\install\install.php on line 674

Warning: Undefined variable $javaactive in E:\www\xampp8\install\install.php on line 674

Short Workaround for this issue:
  • open the file \xampp\install\install.php with help of a plain text editor like Notepad++
  • in the line after the opening php Tag (<?php) add these two lines:
    Code: Select all
    error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING & ~E_NOTICE);
    $array = $slashrootreal = $backslashrootreal = $doublebackslashrootreal = array();
  • save the file
The script is still very old and faulty. I am currently working on a redesign of it.


Jarda Cerny wrote:Try to launch Apache:
- Regular error message "Missing libsqlite3.dll ..." (not first Xampp version with this bug)

Please fix.

I was not able to reproduce this issue, sorry.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Some issues in XAMPP 8.0.0.1

Postby x92 » 10. December 2020 14:55

Altrea wrote:Short Workaround for this issue:
  • open the file \xampp\install\install.php with help of a plain text editor like Notepad++
  • in the line after the opening php Tag (<?php) add these two lines:
    Code: Select all
    error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_WARNING & ~E_NOTICE);
    $array = $slashrootreal = $backslashrootreal = $doublebackslashrootreal = array();
  • save the file
The script is still very old and faulty. I am currently working on a redesign of it.


I confirm that this fix works. Adding those two lines in \install\install.php and running setup_xampp.bat solved the issue.
The issue was that PHP 8 is far stricter by default with using uninitialized variables, throwing type errors and showing warnings.
x92
 
Posts: 2
Joined: 10. December 2020 14:52
XAMPP version: 8
Operating System: Windows 10

Re: Some issues in XAMPP 8.0.0.1

Postby Jarda Cerny » 12. December 2020 16:01

Hello,

I can confirm that Altrea's solution for warnings works, thanks.

The issue with libsqlite3.dll persists on my PC (Windows 7). The fix is simple - add new line into httpd-xampp.conf

LoadFile "/path_to_xampp_root/php/libsqlite3.dll"
Jarda Cerny
 
Posts: 2
Joined: 07. December 2020 21:16
XAMPP version: 8.0.0.1
Operating System: Windows 7

Re: Some issues in XAMPP 8.0.0.1

Postby Altrea » 12. December 2020 16:16

x92 wrote:The issue was that PHP 8 is far stricter by default with using uninitialized variables, throwing type errors and showing warnings.

Kind of, but the most warnings are existing in previous XAMPP versions too, but the default setting was to not show them.

The only significant changes are the type hints which now seems to throw a fatal error instead of a warning if a count function is used in a non countable variable type
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Some issues in XAMPP 8.0.0.1

Postby gonzalo » 14. December 2020 09:50

Hello Altrea,

We released a new revision, 8.0.0-2, including your changes in the install.php script to remove the warning messages so new users don't need to manually edit the file. Thank you for checking this!
gonzalo
 
Posts: 42
Joined: 12. March 2019 08:52
XAMPP version: any
Operating System: any


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 108 guests