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

WARNING with php8.0 + clean install #1087

Closed
hirorongl opened this issue Apr 27, 2021 · 5 comments
Closed

WARNING with php8.0 + clean install #1087

hirorongl opened this issue Apr 27, 2021 · 5 comments
Labels
Bug An issue describing unexpected or malicious behaviour. Geeklog Install
Milestone

Comments

@hirorongl
Copy link
Contributor

apache 2.4.25 + php8.0.3 + Geeklog-Core2021/04/22(github)

Click Install All Plugins >

E_WARNING(2) - Trying to access array offset on value of type null @ /var/www/example.com/private/gl2/system/lib-topic.php line 105

@hirorongl
Copy link
Contributor Author

It seems that the installation of Geeklog is finished.
All plugins were not installed.

@hirorongl
Copy link
Contributor Author

Extracted the URL of 500 error from access.log.
"GET /admin/install/index.php?mode=install&step=3&dbconfig_path=%2Fvar%2Fwww%2Fexample.com%2Fprivate%2Fgl2%2Fdb-config.php&install_plugins=false&language=japanese_utf-8&site_name=WkTeS%E3%83%86%E3%82%B9%E3%83%88SITE&site_slogan=WkTeS%E3%83%86%E3%82%B9%E3%83%88SITE&site_url=https%3A%2F%2Fexample.com&site_admin_url=https%3A%2F%2Fexample.com%2Fadmin&site_mail=admin%40example.com&noreply_mail=noreply%40example.com&utf8=true&innodb=true HTTP/2.0"

@eSilverStrike eSilverStrike added the Bug An issue describing unexpected or malicious behaviour. label Apr 27, 2021
@eSilverStrike eSilverStrike added this to the 2.2.2 milestone Apr 27, 2021
@hirorongl
Copy link
Contributor Author

public_html\admin\install\classes\Install.php : function step3() line 305 require lib-common.php
require str_replace('siteconfig.php', 'lib-common.php', Common::$env['siteconfig_path']);
public_html\lib-common.php : line 684
$_TOPICS = TOPIC_buildTree(TOPIC_ROOT, true);
$LANG27 value exists in lib-common.php
But $LANG27 doesn't exist in TOPIC_buildTree () in lib-topic.php
Similarly, $ GLOBALS ['LANG27'] has no value

mystralkk added a commit that referenced this issue May 1, 2021
@mystralkk
Copy link
Member

Tried to fix this issue with change set d469668

@eSilverStrike
Copy link
Member

Another report of PHP 8 not working with the installer. Was with a clean install I believe so I assume the fix above should fix it but I will add a link to it here just incase: Geeklog Forum Post - Can't Install Geeklog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An issue describing unexpected or malicious behaviour. Geeklog Install
Projects
None yet
Development

No branches or pull requests

3 participants