A bit more information here
Upgraded in DEV to Beta 9, but had to remove extensions gamification and reactions to be able to do anything in the GUI. Logout, then try to log back in, and the below error pops up in the logs
[2019-07-07 09:53:26] production.ERROR: ReflectionException: Class does not exist in /home/inoculrn/dev.guruwall.com/vendor/illuminate/container/Container.php:779
So, then strip out
Package operations: 0 installs, 0 updates, 4 removals
- Removing wiwatsrt/flarum-ext-best-answer (v0.2.4)
- Removing mtdowling/cron-expression (v1.2.1)
- Removing illuminate/console (v5.7.28)
- Removing fof/console (0.5)
Doing so now means I can at least perform a migrate, and cache:clear. However, still cannot login with this error in the log
[2019-07-07 10:01:52] production.ERROR: ReflectionException: Class does not exist in /home/inoculrn/dev.guruwall.com/vendor/illuminate/container/Container.php:779
Slightly "overkill" perhaps, but removing all third party extensions
Package operations: 0 installs, 0 updates, 19 removals
- Removing v17development/flarum-seo (1.0.1)
- Removing twilio/sdk (5.34.0)
- Removing symfony/process (v4.3.2)
- Removing symfony/polyfill-util (v1.11.0)
- Removing symfony/polyfill-php56 (v1.11.0)
- Removing saleksin/flarum-auth-google (v0.1.0-beta.8.0.3)
- Removing reflar/uncache (0.1.0-beta.3)
- Removing reflar/twofactor (0.1.2)
- Removing reflar/pwned-passwords (0.2.0)
- Removing reflar/nightmode (0.2.0)
- Removing reflar/cookie-consent (0.2.0)
- Removing pragmarx/google2fa (v3.0.3)
- Removing paragonie/constant_time_encoding (v2.2.3)
- Removing nomiscz/flarum-ext-auth-linkedin (v0.1.0-beta.8.0)
- Removing michaelbelgium/flarum-discussion-views (v0.1.0-beta.8.2)
- Removing league/oauth2-linkedin (5.1.0)
- Removing league/oauth2-google (3.0.1)
- Removing kilowhat/flarum-ext-mailing (0.1.1)
- Removing jordanjay29/flarum-ext-summaries (0.3.1)
Now when I try to login, I get
You do not have permission to do that.
Same error in log
[2019-07-07 10:08:03] production.ERROR: ReflectionException: Class does not exist in /home/inoculrn/dev.guruwall.com/vendor/illuminate/container/Container.php:779
I feel that if I can fix this, the problems will subside, but how ?? Upgrading should never be this hard !!
Here's what is currently enabled
+-------------------------------+---------------+--------+
| Flarum Extensions | | |
+-------------------------------+---------------+--------+
| ID | Version | Commit |
+-------------------------------+---------------+--------+
| flarum-emoji | v0.1.0-beta.8 | |
| flarum-lang-english | v0.1.0-beta.9 | |
| flarum-lock | v0.1.0-beta.9 | |
| flarum-statistics | v0.1.0-beta.9 | |
| flarum-sticky | v0.1.0-beta.9 | |
| flarum-subscriptions | v0.1.0-beta.9 | |
| flarum-suspend | v0.1.0-beta.9 | |
| flarum-tags | v0.1.0-beta.9 | |
| fof-links | 0.2.0 | |
| fof-recaptcha | 0.1.0 | |
| fof-user-bio | 0.1.2 | |
| flarum-pusher | v0.1.0-beta.9 | |
| flarum-bbcode | v0.1.0-beta.8 | |
| flarum-approval | v0.1.0-beta.8 | |
| flarum-auth-twitter | v0.1.0-beta.9 | |
| fof-user-directory | 0.3.1 | |
| flarum-mentions | v0.1.0-beta.9 | |
| amaurycarrade-syndication | v0.2.0 | |
| flagrow-upload | 0.7.1 | |
| fof-split | 0.4.1 | |
| flagrow-byobu | 0.3.0-beta | |
| clarkwinkelmann-circle-groups | 0.2.1 | |
| clarkwinkelmann-emojionearea | 0.2.0 | |
| flagrow-impersonate | 0.2.0 | |
| flagrow-linguist | 0.3.1 | |
| flagrow-terms | 0.3.1 | |
| flarum-flags | v0.1.0-beta.9 | |
| fof-disposable-emails | 0.1.0 | |
| fof-follow-tags | 0.2.0 | |
| fof-masquerade | 0.3.1 | |
| fof-merge-discussions | 0.2.2 | |
| fof-share-social | 0.1.1 | |
| flarum-markdown | v0.1.0-beta.9 | |
| fof-formatting | 0.1.2 | |
| fof-polls | 0.1.1 | |
| flagrow-direct-links | 0.2.0 | |
| flagrow-sitemap | 0.2.0 | |
+-------------------------------+---------------+--------+
Stripping right back to the bare essentials
- Removing google/recaptcha (1.2.2)
- Removing fof/user-directory (0.3.1)
- Removing fof/user-bio (0.1.2)
- Removing fof/split (0.4.1)
- Removing fof/share-social (0.1.1)
- Removing fof/recaptcha (0.1.0)
- Removing fof/polls (0.1.1)
- Removing fof/merge-discussions (0.2.2)
- Removing fof/masquerade (0.3.1)
- Removing fof/links (0.2.0)
- Removing fof/formatting (0.1.2)
- Removing fof/follow-tags (0.2.0)
- Removing fof/extend (0.2.0)
- Removing fof/disposable-emails (0.1.0)
- Removing fgribreau/mailchecker (v3.2.34)
- Removing dasprid/enum (1.0.0)
- Removing clarkwinkelmann/flarum-ext-emojionearea (0.2.0)
- Removing clarkwinkelmann/flarum-ext-circle-groups (0.2.1)
- Removing bacon/bacon-qr-code (2.0.0)
- Removing authy/php (3.0.5)
- Removing amaurycarrade/flarum-ext-syndication (v0.2.0)
Results in
/home/inoculrn/dev.guruwall.com/vendor/flarum/core/src/User/AssertPermissionTrait.php
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\User;
use Flarum\User\Exception\PermissionDeniedException;
trait AssertPermissionTrait
{
/**
* @param $condition
* @throws PermissionDeniedException
*/
protected function assertPermission($condition)
{
if (! $condition) {
throw new PermissionDeniedException;
}
}
/**
* @param User $actor
* @param string $ability
* @param mixed $arguments
* @throws PermissionDeniedException
*/
protected function assertCan(User $actor, $ability, $arguments = [])
{
$this->assertPermission($actor->can($ability, $arguments));
}
/**
* @param User $actor
* @throws \Flarum\User\Exception\PermissionDeniedException
*/
protected function assertGuest(User $actor)
{
I really do not want to have to build this from scratch again, then recover the database, but I'm running out of options here.