Package Unexpected Error Occurs

Permalink
I am working on upgrading one of my addons to be compatible with 5.7. So far, I was able to get the addon to show up in the 'Add Functionality' list. However, when I try to install the block, I am immediately taken to a blank page with this error:

"An unexpected error occurred. An error occurred while processing this request."

When I go back to the packages list, it shows up as installed. However, when I try to uninstall the package, it throws the same error, and it does NOT get uninstalled.

Any ideas on what I'm doing wrong?

PineCreativeLabs
 
andrew replied on at Permalink Reply
andrew
First, try going into Dashboard > System > Debug and displaying errors, then there might be a decent stack trace that you can look at
PineCreativeLabs replied on at Permalink Reply
PineCreativeLabs
Ok, I have enabled the debug settings. When I try to install the package, I see the following error:

" Class 'Concrete\Package\SocialFeed\Loader' not found "

Which seems to point to this bit of the package controller:
public function uninstall() {
parent::uninstall();
//make sure the block table gets dropped
$db = Loader::db();
$db->Execute('DROP TABLE IF EXISTS btSocialFeed');
}

I assumed this meant that I was missing the line:
use Loader;

I added that to the controller, and then it installed, but nothing showed up in the front-end editor.

In short, I am trying to get my "Social Feed" addon to work with 5.7.
andrew replied on at Permalink Reply
andrew
Yeah, I would uninstall it and reinstall. It sounds like the momentary error might have fouled up the installation process.