• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Php composer of domain stuck on non existing folders

lukebrenner

New Pleskian
Hi there, I would like to know how I can reset php composer for one of my domains. It points to a folder (recruitment) in the domain root that has since been deleted. If click on change folder, it is still showing subfolders of the non-existing folder. Thank you
 

Attachments

  • error.JPG
    error.JPG
    15.1 KB · Views: 17
I had to delete composer entirely in plesk extensions then reinstall it to solve this issue. after having the same issue as yourself, though mine resulted from moving the root folder of the subdomain, it could no longer find the composer.json and was not getting the new document root in PHP Composer.

I only use composer on one of my domains right now so probably not ideal to be removing the composer extension even temporarily if you rely on it.

This does seem to be a bug with Composer Extension.
 
I'm a few years late to this, but I've been trying to fix this minor inconvenience for some time and found the solution to anyone who could use it (caution to those who don't have SQL knowledge)

My situation is Windows but I'm assuming works similar in Linux

1. Remote into Plesk server
2. Download DB Browser for SQLite and open it
3. Navigate to %Plesk_Dir%/var/modules/composer/
4. Open composer.sqlite3 in DB Browser for SQLite
5. "Browse Data" ta for "Application" table to find the ids of the invalid folder(s)
6. "Execute SQL" tab, type: delete from Application where id={invalid folder ids} (not specifying a "where" clause will remove all folder paths)
7. Execute (this will create a copy of the sqlite3 file composer.sqlite3-journal and be the last step before the deletions take effect)
8. "Browse Data" tab again to verify the Application table looks as you want it to
9. Apply changes to original with Ctrl+S (this will apply the deletions and remove the -journal file)
 
Back
Top