I tested during yesterday the modification of the php limits, and this does not help because they are already very permissive.
It seems that October CMS, at least during installation, cannot run on the alt-php versions, only on the default ones from apache ea-php, from what I managed to find, it seems to be due to static paths, but here I cannot say exactly.
In short, the solution is to set from Cpanel → MultiPHP Manager → PHP 8.1 (ea-php81), and on this version the installer works completely, I tested it on a test subdomain.
If it is a folder, it is necessary to manually create the .htaccess folder and enter in it before running the installer:
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
And possibly check with <?php phpinfo(); ?> if the version of ea-php is taken correctly before running the installation.
I’ve tested both upgrading to patch 30 and installing via the web installer. It updates and installs successfully…
This error is sometimes observed when composer updates itself, you may notice the installer/updater will say “Updating package manager…” first. This process is designed to ensure composer doesn’t have any missing files (like in the error below).
file_get_contents(/Users/janvince/Websites/october3/vendor/composer/composer/src/Composer/Repository/../InstalledVersions.php): Failed to open stream: No such file or directory
Hi all! I am using OctoberCMS for a very long time now and was about to setup a new site on a similar environment (Wizard Installation). Unfortunately I am running into the exact same error and have now idea how to fix it or where it comes from.
I am using a hosting provider where I can select different PHP Versions, but all options (8 / 8.1 / 8.2 / 8.3) did not work and the installation files with the same errors.
Does anybody have any ideas or hints on how we can fix this?
It isn’t easy since not everyone can reproduce it here, including our developers.
However, I see a potential problem in @jan-vince 's install log. The composer update (updating package manager…) does not succeed. This step is necessary for preventing the observed error.
For some reason, the output buffer is left empty. This can occur if the process ran out of memory or timed out, so it is worth checking these parameters on your server, along with the web server event logs.
It is important to note that these requirements grow larger as time goes on, since the installer versions become more distant from the latest versions (there becomes more work to do in updating them). However, perhaps why we are only seeing this intermittently is that the composer cache improves the performance and overcomes the issue.
thanks for getting back to us. The solution to manually add the missing polyfill-php72 folder/files provided by @jan-vince in this post fixes this error during installation, too. Everything works now.
We were finally able to replicate this by testing every PHP version in Docker. It only seemed to affect php 8.2 and was introduced by a symfony package which delivers different files for this version. The october/rain v3.6.30 package contains a patch to address it.
Hopefully, the issue should be resolved now, without needing the workaround!
Hi all. The problem is also on php alt-php83 . Yesterday we tryed to update one website from 3.6.2.6 to 3.6.3.0 and the entyre webiste crashed with Error 500. We rolled back from the server backup to put it back online and we will not try this update again until this problem is 100% clear and solved. Somethings wrong with Simfony and composer…
Had the same problem updating from 3.6.30 (PHP 8.3.6, Composer 2.4.1) using the administration area. The website wouldn’t run anymore complaining about the missing october3\vendor\composer/../symfony/polyfill-php72/bootstrap.php.
I updated Composer to its latest stable version (2.8.1) with composer self-update.
When I ran php artisan october:update from the command line (as the site was dead), it updated properly to 3.7.1. Now I don’t know if the fix came from the Composer update or from the minor fix from 3.7.0 to 3.7.1 which I think appeared right as I was reading this post, but it worked!
I’ll test it again in my preproduction environment to see how it goes but at least I have a way through!
Hi, the v3.6.30 manual patch.zip is not opening correctly and we can’t seem to figure out the solution to update from 3.6.30 to 3.7.4 . We are experiencing same Error 500 and all site is crashed. We are on a shared hosting with our client’s website and don’t have too much options on upgrading Composer and so on.
The problem is getting uglyer as it goes, we get the 500 Error eaven if we try to install some plugins without upgrading:
The error_log says:
[04-Nov-2024 13:30:59 Europe/Bucharest] PHP Warning: require(/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php): Failed to open stream: No such file or directory in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:30:59 Europe/Bucharest] PHP Fatal error: Uncaught Error: Failed opening required '/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/accountName/public_html/vendor/composer/autoload_real.php:41
Stack trace:
#0 /home/accountName/public_html/vendor/composer/autoload_real.php(45): {closure}()
#1 /home/accountName/public_html/vendor/autoload.php(25): ComposerAutoloaderInit55a14c97678c7a5cb9ee8941bb6265c8::getLoader()
#2 /home/accountName/public_html/bootstrap/autoload.php(36): require('/home/accountNa...')
#3 /home/accountName/public_html/index.php(18): require('/home/accountNa...')
#4 {main}
thrown in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:04 Europe/Bucharest] PHP Warning: require(/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php): Failed to open stream: No such file or directory in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:04 Europe/Bucharest] PHP Fatal error: Uncaught Error: Failed opening required '/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/accountName/public_html/vendor/composer/autoload_real.php:41
Stack trace:
#0 /home/accountName/public_html/vendor/composer/autoload_real.php(45): {closure}()
#1 /home/accountName/public_html/vendor/autoload.php(25): ComposerAutoloaderInit55a14c97678c7a5cb9ee8941bb6265c8::getLoader()
#2 /home/accountName/public_html/bootstrap/autoload.php(36): require('/home/accountNa...')
#3 /home/accountName/public_html/index.php(18): require('/home/accountNa...')
#4 {main}
thrown in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:05 Europe/Bucharest] PHP Warning: require(/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php): Failed to open stream: No such file or directory in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:05 Europe/Bucharest] PHP Fatal error: Uncaught Error: Failed opening required '/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/accountName/public_html/vendor/composer/autoload_real.php:41
Stack trace:
#0 /home/accountName/public_html/vendor/composer/autoload_real.php(45): {closure}()
#1 /home/accountName/public_html/vendor/autoload.php(25): ComposerAutoloaderInit55a14c97678c7a5cb9ee8941bb6265c8::getLoader()
#2 /home/accountName/public_html/bootstrap/autoload.php(36): require('/home/accountNa...')
#3 /home/accountName/public_html/index.php(18): require('/home/accountNa...')
#4 {main}
thrown in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:06 Europe/Bucharest] PHP Warning: require(/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php): Failed to open stream: No such file or directory in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:06 Europe/Bucharest] PHP Fatal error: Uncaught Error: Failed opening required '/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/accountName/public_html/vendor/composer/autoload_real.php:41
Stack trace:
#0 /home/accountName/public_html/vendor/composer/autoload_real.php(45): {closure}()
#1 /home/accountName/public_html/vendor/autoload.php(25): ComposerAutoloaderInit55a14c97678c7a5cb9ee8941bb6265c8::getLoader()
#2 /home/accountName/public_html/bootstrap/autoload.php(36): require('/home/accountNa...')
#3 /home/accountName/public_html/index.php(18): require('/home/accountNa...')
#4 {main}
thrown in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:07 Europe/Bucharest] PHP Warning: require(/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php): Failed to open stream: No such file or directory in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
[04-Nov-2024 13:31:07 Europe/Bucharest] PHP Fatal error: Uncaught Error: Failed opening required '/home/accountName/public_html/vendor/composer/../symfony/polyfill-php72/bootstrap.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/accountName/public_html/vendor/composer/autoload_real.php:41
Stack trace:
#0 /home/accountName/public_html/vendor/composer/autoload_real.php(45): {closure}()
#1 /home/accountName/public_html/vendor/autoload.php(25): ComposerAutoloaderInit55a14c97678c7a5cb9ee8941bb6265c8::getLoader()
#2 /home/accountName/public_html/bootstrap/autoload.php(36): require('/home/accountNa...')
#3 /home/accountName/public_html/index.php(18): require('/home/accountNa...')
#4 {main}
thrown in /home/accountName/public_html/vendor/composer/autoload_real.php on line 41
Please let us know ho to fix this.
Thank you in advance.
The error shown is a result of unpatched code. What is wrong with the ZIP, why doesn’t it open correctly? Alternatively, the patch diff is linked above and you can patch the file manually in vendor/october/rain/src….