This is a comment on Problems when updating from 6.2.1 to 6.3.0, posted by WikiAdmin at 07/22/2026 20:19
View source for Re: Problems when updating from 6.2.1 to 6.3.0
To **1**: I'll check that. I suspect some lib & Composer issue.
%%
Fatal error: Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.5.0". You are running 8.3.32. in
/wiki/vendor/composer/platform_check.php:22
Stack trace:
#0 /wiki/vendor/composer/autoload_real.php(25): require()
#1 /wiki/vendor/autoload.php(22): ComposerAutoloaderInit7f441be9216e2654f71b92439ecde13e::getLoader()
#2 /wiki/class/init.php(46): require_once('/home/mb/git/Wa...')
#3 /wiki/index.php(10): {closure}('Settings')
#4 {main} thrown in /wiki/vendor/composer/platform_check.php on line 22
%%
The issue is **not** with your ##composer.json## syntax (##"php" : "8.3 - 8.5"## is valid), but with a **mismatch between your server's PHP version and the generated ##vendor/composer/platform_check.php## file**.
=== The Root Cause ===
Your ##composer.json## correctly allows PHP **8.3 to 8.5**, and you are running **8.3.32**, which should be compatible. However, the error indicates that the **##platform_check.php## file** (auto-generated by Composer in the ##vendor/## directory) was created on a machine running **PHP 8.5+** (or has locked dependencies that require 8.5).
This file enforces the **strictest** PHP version required by **any** of your installed dependencies, not just your root ##composer.json##.
=== How to Fix It ===
==== 1. Regenerate the Vendor Directory (Recommended) ====
The ##vendor## folder likely contains a ##platform_check.php## generated with incorrect constraints. You must rebuild it using your current PHP version (8.3.32).
Run these commands in your project root:
%%(hl bash)
# Remove the existing vendor folder and lock file
rm -rf src/vendor composer.lock
# Re-install dependencies using your current PHP 8.3.32
composer install
%%
//Note: Your ##composer.json## specifies ##"vendor-dir": "src/vendor"##, so ensure you delete the correct folder.//
====2. Check for Conflicting Dependencies====
If ##composer install## fails, one of your dependencies might strictly require PHP 8.5. Run:
%%(hl bash)
composer why-not php 8.3.32
%%
This will list which package is blocking PHP 8.3. If a dependency like ##phiki/phiki## or ##phpmailer/phpmailer## has updated to require 8.5, you may need to constrain that specific package to an older version in your ##composer.json##.
%%
composer why-not php 8.3.32
Package "php 8.3.32" found in version "8.3.32".
wackowiki/htmlsax3 4.1.3 requires php (^8.5)
%%
Well, well, well - guess I forgot to set it back to PHP 8.3 - let me check. This is my first release with Composer, stay with me.
=== Summary ===
Your ##composer.json## is correct. The error exists because the **##vendor## directory was likely built on a different machine** with a higher PHP version requirement locked in. **Deleting ##src/vendor## and ##composer.lock## and running ##composer install## on your 8.3.32 server** will resolve the issue.
FIXED with ((commit:8bc3f0d51d16f627cfef4659ceffb3c71257b32c 8bc3f0d))
----
To **2**: I could upgrade all my wikis - that's odd.
Testing is good - I sorting out issue after issue, this is a huge update.
I add a Caveats section in the release notes. Lets debug this.