Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal server error when activating PHP 8.2 and trying to access the Plugin Manager in the Admin Area #4962

Closed
Digioso opened this issue Jan 30, 2023 · 2 comments
Labels
status: duplicate This issue is being or has been addressed by another issue. type: bug A problem that should not be happening

Comments

@Digioso
Copy link

Digioso commented Jan 30, 2023

Bug Description

In webserver log file:
[Mon Jan 30 13:27:31.386317 2023] [proxy_fcgi:error] [pid 21877:tid 281472476770496] [client 88.130.87.199:0] AH01067: Failed to read FastCGI header, referer: https://www.baod.de/e107_admin/menus.php
[Mon Jan 30 13:27:31.386372 2023] [proxy_fcgi:error] [pid 21877:tid 281472476770496] (104)Connection reset by peer: [client 88.130.87.199:0] AH01075: Error dispatching request to : , referer: https://www.baod.de/e107_admin/menus.php

How to Reproduce

Steps to reproduce the behavior:

  1. Activate PHP 8.2
  2. Access admin area
  3. Open Plugin Manager
  4. See error

Expected Behavior

No error

Server Information

PHP Operating System

Linux digioso.net 5.15.0-1027-oracle #33-Ubuntu SMP Fri Jan 6 16:30:16 UTC 2023 aarch64 
Ubuntu 22.04

PHP Version

PHP Version 8.2.1

PHP Modules

bcmath
bz2
calendar
cgi-fcgi
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
pspell
random
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

Client Information

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

Additional Information

When I switch PHP back to PHP 7.4 the Plugin Manager is working without problems.

@Digioso Digioso added the type: bug A problem that should not be happening label Jan 30, 2023
@Deltik
Copy link
Member

Deltik commented Jan 30, 2023

I suspect you have encountered #4938, which is actually a low-level PHP bug (php/php-src#10200).

We have a workaround from 6b75f34. Try applying this patch to see if it resolves your issue:

diff --git a/e107_handlers/xml_class.php b/e107_handlers/xml_class.php
index 16adeb0f26..10a5d57f16 100644
--- a/e107_handlers/xml_class.php
+++ b/e107_handlers/xml_class.php
@@ -549,7 +549,7 @@ function xml2array($xml, $rec_parent = '')
 		
 		$ret = array();
 	
-		$tags = get_object_vars($xml);
+		$tags = (array) $xml;
 	
 		
 		//remove comments

I am forecasting that PHP 8.2.2 will fix php/php-src#10200, so as an alternative, you could wait for that release.

PHP 8.1 is not affected, so that's yet another option.

@Deltik Deltik closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2023
@Deltik Deltik added the status: duplicate This issue is being or has been addressed by another issue. label Jan 30, 2023
@Digioso
Copy link
Author

Digioso commented Jan 30, 2023

Thanks! I switched to PHP 8.1 for now and it's working again. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate This issue is being or has been addressed by another issue. type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

2 participants