ddouglas/esiknife

error after clicking on Overview Button on dashboard

Closed this issue · 2 comments

I have added my character and granted the scope access, but when I click on the overview button on my character from the dashboard, I get the the following error:

ErrorException (E_ERROR)
`Trying` to get property 'name' of non-object (View: /home/anarchyg/public_html/esiknife/resources/views/portal/overview.blade.php)

the stacktrace is as follows:

/home/anarchyg/public_html/esiknife/storage/framework/views/942b5849e1fe2b0ca18a811be19b51d05433887b.php
                <hr />
            </div>
        </div>
        <?php echo $__env->make('portal.extra.nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="row">
            <div class="col-lg-3">
                <img src="<?php echo e(config('services.eve.urls.img')); ?>/Character/<?php echo e($member->id); ?>_512.jpg" class="img-fluid rounded mx-auto d-block" />
            </div>
            <div class="col-lg-9">
                <div class="row">
                    <div class="col-lg-6">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Gender:</strong> <?php echo e(title_case($member->info->gender)); ?></li>
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Race:</strong> <?php echo e(title_case($member->info->race->name)); ?></li>
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Ancestry:</strong> <?php echo e(title_case($member->info->ancestry->name)); ?></li>
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Bloodline:</strong> <?php echo e(title_case($member->info->bloodline->name)); ?></li>
                            <?php if(isset($scopes) && $scopes->contains(config('services.eve.scopes.readCharacterShip'))): ?>
                                <li class="list-group-item d-flex justify-content-between align-items-center">
                                    <strong>Current Ship:</strong>
                                    <?php echo e($member->ship->name); ?> (<?php echo e(!is_null($member->ship->type) ? $member->ship->type->name : $member->ship->type_id); ?>)
                                </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                    <div class="col-lg-6">
                        <ul class="list-group">
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Birthday:</strong> <?php echo e($member->info->birthday->toDateString()); ?></li>
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Age:</strong> <?php echo e(age($member->info->birthday, now())); ?></li>
                            <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Corporation:</strong> <?php echo e($member->info->corporation->name); ?></li>
                            <?php if($member->info->alliance_id !== null): ?>
                                <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Alliance:</strong> <?php echo e($member->info->alliance->name); ?></li>
                            <?php endif; ?>
                            <?php if(isset($scopes) && $scopes->contains(config('services.eve.scopes.readCharacterLocation'))): ?>
                                <?php if($scopes->contains(config('services.eve.scopes.readUniverseStructures'))): ?>
                                    <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Current Location:</strong> <?php echo e(!is_null($member->location->info) ? $member->location->info->name : "Unknown Location ". $member->location->location_id); ?></li>
                                <?php else: ?>
                                    <li class="list-group-item d-flex justify-content-between align-items-center"><strong>Current Location:</strong> <?php echo e($member->location->system->name); ?></li>
                                <?php endif; ?>
                            <?php endif; ?>
                            <?php if(isset($scopes) && $scopes->contains(config('services.eve.scopes.readCharacterWallet'))): ?>
Arguments
"Trying to get property 'name' of non-object (View: /home/anarchyg/public_html/esiknife/resources/views/portal/overview.blade.php)"

I am unsure on how to remedy this error. Any help would be greatly appreciated. Thank you.

Yeah sorry about just getting to this. If you refresh the character, that may take care of it. This is generally due to deeply flawed logic in the engine that resolves all of the scopes that you selected. My apologies

Regarding this, it came to my attention yesterday that ancestries are being removed. As a result, new characters are being assigned a new ancestry id in the interim. You will need to rerun the SDE Import from PHP Artisan to get the new ID

php artisan import:sde