HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Vanilla 2021.009 Modified For PHP 8 Support
Hi All,
The attached download contains the 5x files that I have modified to get Vanilla 2021.009 running under PHP 8.1.12 (latest available)
Feel free to examine the code and compare against the originals.
Replace the stock files with the ones in this download and you'll find that the site works with PHP 8 afterwards :)
3
Comments
Thanks a lot i will try it asap
No problem let me know how it goes! :)
I can confirm that uploading these files has the promised effect!
Thanks for confirming! Glad it's working for you
Hi,
I've updated to 2021.009 and test on a MAMP server. Everything's works fine with PHP 7.4.21, but when I switch to PHP 8.0.8, it's broken. So i've updated the files with your modified files for PHP 8, it worked, except for the "New Discussion" button on the home page, when there is no category selected. If I select a category, then click "New Discussion", everything is fine. Did I miss something ?
My work around for this issue was to change line 3466 in library\core\class.form.php to this:
It simply checks if $value is an array which stops the error of passing an array to htmlspecialchars. Don't forget the extra closed bracket at the end.
That seems to solve the problem :)
@smunn Many thanks!!
Hi,
I'm having another trouble. When registering, I've got this message "curlHandle must be a resource or instance of Garden\SafeCurl\CurlHandler". Any help ?
Hi All,
Please have a look at the above thread - I have built 2023.001 from source this morning and all of the issues previously reported appear to be fixed.
Will continue to test this build but have not found a single thing wrong with it so far! :D
It also works on PHP 8.1.12 and PHP 8.2.1! :D