1

Steps to reproduce:

  1. Log into control panel,
  2. Go to Plugin Store tab and install a plugin (in my case hillholliday/craft-user-manual or dolphiq/sitemap),
  3. Plugin installation error screen,
  4. Navigate to /admin and entire site errors out with this message (control panel and frontend)

unserialize(): Error at offset 0 in ProjectConfig.php

enter image description here

Unsuccessful attempts to correct the issue include:

  1. Restoring latest database backup

  2. Restoring backed up composer.json and composer.lock files from storage/composer-backups and running composer install

  3. Clearing storage/runtime/cache

Any suggestions on how to resolve this issue, and insights to why it's happening in the first place?

  • Have you already tried to install the plugins via composer? I have reproduced the steps and I don't get the error. – Fred Jul 14 '19 at 20:07
  • Thanks for replying! Yes, I tried uninstalling and re-installing the plugins via composer and that didn't work either. I eventually got my site back up and running after scrambling and trying a bunch of different things. I think what ended up working was restoring backed up composer.json and composer.lock files, deleting everything in /vendor directory, and then running composer install. – Roger Glenn Jul 15 '19 at 0:53
2

I think what ended up working was restoring backed up composer.json and composer.lock files, deleting everything in /vendor directory, and then running composer install

| improve this answer | |
  • I ran into this issue while taking over a project. My issue was my DB had updated plugins that my composer.json file didn't have. Removing the vendor folder and the composer. files, then adding the correct composer.json file that matched the updated DB worked as well. – Jeff Irwin Jan 17 at 23:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.