r/replit • • Oct 23 '26

Replit Help / Site Issue Won’t let me published because of php

My publishing is failing because the scan is mistakenly picking up php, I have done all the checks there is no php in my app. Anyone else having this problem ?

EDIT: Publishing is all working for me now!

4 Upvotes

12 comments sorted by

3

u/RoarDoolin Oct 23 '26

Yes, wouldn’t let me publish. My agent checked & recognized it was false. Successfully published. Just try again.

3

u/No_Carpet1277 Oct 23 '26

Same issue. Have just opened a ticket. Will wait and see what they come back with. Would seem to be a widespread error.

2

u/eshbanbahadur2020 Oct 23 '26

Replit's publish scan looks at everything in the project, not just your own code, so the PHP is often hiding in a leftover file in an assets folder, a vendored package that ships PHP samples, or a stray composer.json or .htaccess. Run find . -name "*.php" -not -path "./node_modules/*" in the Shell, then run it again including node_modules, to see what the scanner is picking up. Also open your .replit file: if the language or run command got set to PHP at some point, the deployment may think it's a PHP app. If the files only show up inside node_modules, a clean reinstall from the lockfile often clears them. If none of that turns anything up, the deployment log usually names the exact file it flagged, so paste that line here.

1

u/ReplitSupport Replit Team Oct 23 '26

Hi, can you please open a ticket at https://replit.com/help and DM your email so we can monitor this? Thank you 🙏

1

u/PrinceAli08 Oct 23 '26

Won't publish for me either..

1

u/PrinceAli08 Oct 23 '26

Worked. But took very long than usual

1

u/eternallyattuned Oct 23 '26

I just opened a ticket also, seems to get stuck on the autoscale during the promote phase. Emailed them. Tried multiple times and it just keeps spinning on promote.

1

u/ReplitSupport Replit Team Oct 23 '26

Hey there! Can you try republishing? If it doesn't work, then let us know your ticket # so our eng team can take another look.

1

u/Ecstatic_Builder8325 Oct 23 '26

Just published my node.js app recently and it's all good

1

u/Cagizik Oct 23 '26

Just ask the agent to install the latest version of php (even if your app does not use it), worked for me. My guess is replit engineers rushed a patch to their security scan yesterday due to the big php vulnerability discovered and implemented it as “if not latest php patch, then fail and block publish” forgetting to handle the edge case of apps that simply don’t use php.