Error "Interface 'League\OAuth2\Server\Entities\AccessTokenEntityInterface' not found" after updating from 8.4.4 to 8.5.2

Permalink
So I was updated concrete 8.4.4 to 8.5.2 using my hosting sites app installer. I created a full back before proceeding but I was asked to first logging in as admin before proceeding (I thought I was but wasn't). Update went through but now I get error when I visit my site (any page)

An unexpected error occurred.
Interface 'League\OAuth2\Server\Entities\AccessTokenEntityInterface' not found

I tried to restore the back up but the error doesn't change. Any suggestions?

 
fatcatsanonymous replied on at Permalink Reply
I'm having a similiar issue.
I tried updating from 8.44 to 8.52 putting the 8.5 folder in the updates folder.
The updates button in the backend wanted to start a new installation instead of an update.
I couldn't get out of the mask, so I rolled back to a backup version on the server.
Now I have the error:
Trait "'LeagueOAuth2ServerEntitiesTraitsAccessTokenTrait'" not found
My hosting support can't help me, saying it's a plugin issue.
Has anyone any suggestions?
JohntheFish replied on at Permalink Reply
JohntheFish
try
youtsite.com/dashboard/system/environment/entities
-> refresh entities
fatcatsanonymous replied on at Permalink Reply
Hi, Thanks so much for your reply!
Unfortunately I can't login to the backend either to do this.
Can you tell me how - or where - I can refresh entities programmatically?
Thanks,
Una
JohntheFish replied on at Permalink Reply
JohntheFish
You should be able to edit the settings directly in the file application/config/generated_overrides/concrete.php
on one of my dev sites I have:
'cache' => [
        'blocks' => false,
        'assets' => false,
        'theme_css' => false,
        'overrides' => false,
        'pages' => '0',
        'full_page_lifetime' => 'default',
        'full_page_lifetime_value' => null,
        'doctrine_dev_mode' => true,
        'clear' => [
            'thumbnails' => false,
        ],
    ],
JohntheFish replied on at Permalink Reply
JohntheFish
Then for diagnostics
'debug' => [
        'display_errors' => true,
        'detail' => 'debug',
        'error_reporting' => null,
    ],
fatcatsanonymous replied on at Permalink Reply
Hi,
no luck I'm afraid, but I have the full error message now, thanks to the change in debug mode.
.
The problem is in the following in src/Entity/OAuth/AccessToken.php
use AccessTokenTrait;
    /**
     * @ORM\Id @ORM\Column(type="guid")
     * @ORM\GeneratedValue(strategy="UUID")
     */
    protected $identifier;
    /**
     * @var \DateTime
     * @ORM\Column(type="datetime")
     */
    protected $expiryDateTime;

and I'm thinking it may be the protected by $expiryDateTime -?
As I rolled back to a back up from the day before, the accesstoken had probably expired, right?
JohntheFish replied on at Permalink Reply
JohntheFish
You will certainly need to login again to get to the dashboard after moving a site. But a missing login shouldn't affect the front end.

Check through your config for canonical URLs. Check your server for .htaccess (a hidden file) in the directory you moved the site into, or any parents of that directory.
fatcatsanonymous replied on at Permalink Reply
Hi,
it was probably a composer issue. The composer library version on the server was probably not compatible with the C5 Version. However I uploaded an older DEV version of the site and reverted to that rather than wait any longer as the site was down for days.
I'm changing to a new hoster, so I'll update C5 after I've moved.
Thanks for your help!
Una