[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"problem-detail-error-php-version-mismatch":3},{"stack":4,"error":5,"seoName":6,"seoStack":7,"seo":8,"breadcrumb":10,"titlePrefix":17,"titleAccent":6,"lead":18,"facts":20,"why":35,"log":40,"fix":77,"engine":86,"related":93,"pitch":108},"php","php-version-mismatch","Composer lock requires PHP 8.4, but the build targets PHP 8.1","Php",{"description":9},"This project needs PHP ^8.4, but it was built with PHP 8.1.0; overridden via config.platform, actual: 8.4.25.",[11,14,16],{"label":12,"href":13},"App Installations","\u002Fapps",{"label":7,"href":15},"\u002Fapps\u002Fstacks\u002Fphp",{"label":6},"",[19],{"text":9},[21,26,29,31],{"label":22,"value":23,"tone":24,"tooltip":25},"Type","Error","err","An error that occurred in the deployed application. It is not necessarily a PanelAlpha Engine error, but we keep working on improvements so you run into fewer of them.",{"label":27,"value":28},"Seen","14 times · 4 variants",{"label":30,"value":7},"Where",{"label":32,"value":33,"tooltip":34},"Status","Observed","Our team will look into this soon, verify the cause and try to fix it in an upcoming release.",{"heading":36,"body":37},"Why it happens",[38],{"text":39},"The locked dependency aura\u002Fsql 6.0.0 requires PHP ^8.4. Composer is using PHP 8.1.0 from the project's config.platform setting, even though the build image provides PHP 8.4.25. As a result, the lock file is rejected before the application starts.",{"heading":41,"block":42},"What the log looks like",{"header":43,"lines":44},"Deploy log",[45,49,53,57,61,65,69,73],{"segments":46},[47],{"text":48},"Resolving PHP dependencies on host",{"segments":50},[51],{"text":52},"Installing dependencies from lock file",{"segments":54},[55],{"text":56},"Verifying lock file contents can be installed on current platform.",{"segments":58},[59],{"text":60},"Your lock file does not contain a compatible set of packages.",{"segments":62},[63],{"text":64},"Problem 1",{"segments":66},[67],{"text":68},"- aura\u002Fsql 6.0.0 requires php ^8.4",{"segments":70},[71],{"text":72},"- your php version (8.1.0; overridden via config.platform, actual: 8.4.25) does not satisfy that requirement.",{"segments":74},[75],{"text":76},"Deploy failed: This project needs PHP ^8.4, but it was built with PHP 8.1.0",{"heading":78,"steps":79,"block":83},"How to fix it",[80],[81],{"text":82},"Check composer.json and remove or update config.platform.php from 8.1 to 8.4. Regenerate composer.lock with the intended PHP version, commit both files, and redeploy. If the application must remain on PHP 8.1, use dependency versions compatible with PHP 8.1 and regenerate the lock file accordingly.",{"header":84,"lines":85},"Fix by hand",[],{"heading":87,"body":88,"block":91},"How PanelAlpha Engine solves it",[89],{"text":90},"Detect and report conflicts between composer config.platform and the selected PHP runtime before dependency installation. Where safe, offer an explicit PHP 8.4 target or a lock-file regeneration guidance instead of reporting only a generic build failure.",{"header":17,"lines":92},[],{"heading":94,"items":95},"Apps affected",[96,100,104],{"title":97,"badge":98,"tone":24,"href":99},"yourls\u002Fyourls","7 occurrences","\u002Fapps\u002Fyourls\u002Fyourls",{"title":101,"badge":102,"tone":24,"href":103},"volmarg\u002Fpersonal-management-system","5 occurrences","\u002Fapps\u002Fvolmarg\u002Fpersonal-management-system",{"title":105,"badge":106,"tone":24,"href":107},"qafoo\u002Fquality-analyzer","2 occurrences","\u002Fapps\u002Fqafoo\u002Fqualityanalyzer",{"heading":109,"body":110,"footNote":111,"docsLabel":112,"docsHref":113},"Try PanelAlpha Engine yourself.","The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.","Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPU","Read the documentation","https:\u002F\u002Fpanelalpha.com\u002Fdocs"]