Fresh Install of vanilla-2021012 (500 Error)
I'm trying to do a fresh install of Vanilla.
nginx v1.21.4 - MySQL v5.7.36 - PHP v8.0.12
What I did was :
1) downloaded vanilla-2021012.zip and uploaded it my /forum/ directory.
2) made sure that uploads, conf and cache folder were writable by the server.
I navigated to https://www.example.com/forum/ and all I get is a 500 error.
The error log shows this :
PHP Fatal error: Uncaught Error: Unknown named parameter $defaultgroup in /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php:552\nStack trace:\n#0 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(552): ReflectionMethod->invokeArgs(Object(Gdn_Configuration), Array)\n#1 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(750): Garden\\Container\\Container->createSharedInstance('Gdn_Configurati...', Array, Array)\n#2 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(361): Garden\\Container\\Container->createInstance('Gdn_Configurati...', Array)\n#3 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(829): Garden\\Container\\Container->getArgs('Gdn_Configurati...')\n#4 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/DefaultReference.php(51): Garden\\Container\\Container->get('Gdn_Configurati...')\n#5 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(723): Garden\\Container\\DefaultReference->resolve(Object(Garden\\Container\\Container), NULL)\n#6 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(776): Garden\\Container\\Container->resolveArgs(Array, Array, NULL)\n#7 /www/example.com/httpdocs/forum/bootstrap.php(680): Garden\\Container\\Container->call(Object(Closure))\n#8 /www/example.com/httpdocs/forum/index.php(22): require_once('/usr/opt/www/hz...')\n#9 {main}\n\nNext ReflectionException: Invocation of method Gdn_Configuration::__construct() failed in /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php:552\nStack trace:\n#0 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(552): ReflectionMethod->invokeArgs(Object(Gdn_Configuration), Array)\n#1 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(750): Garden\\Container\\Container->createSharedInstance('Gdn_Configurati...', Array, Array)\n#2 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(361): Garden\\Container\\Container->createInstance('Gdn_Configurati...', Array)\n#3 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(829): Garden\\Container\\Container->getArgs('Gdn_Configurati...')\n#4 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/DefaultReference.php(51): Garden\\Container\\Container->get('Gdn_Configurati...')\n#5 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(723): Garden\\Container\\DefaultReference->resolve(Object(Garden\\Container\\Container), NULL)\n#6 /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php(776): Garden\\Container\\Container->resolveArgs(Array, Array, NULL)\n#7 /www/example.com/httpdocs/forum/bootstrap.php(680): Garden\\Container\\Container->call(Object(Closure))\n#8 /www/example.com/httpdocs/forum/index.php(22): require_once('/usr/opt/www/hz...')\n#9 {main}\n thrown in /www/example.com/httpdocs/forum/vendor/vanilla/garden-container/src/Container.php on line 552
Comments
defaultgroup is in library/core/class.configuration.php
maybe you should check the nginx conf or if unzip the right files.
Which zip file should I be downloading?
try to use php7.4
Oh, this software doesn't support PHP 8.x?
PHP 7.4 end of life is on November 28th. I really don't want to downgrade.
Are they planning to support PHP 8 any time soon?
"Try"
Just test.
Also check cURL
https://open.vanillaforums.com/discussion/comment/260132/#Comment_260132
And other extensions
https://open.vanillaforums.com/discussion/comment/263569/#Comment_263569
Yeah, this software is not compatible with PHP 8.
I hope this gets updated soon to support it.
In my case, neither with PHP 7.4 😂
I can't get it working 😪