G
Asked
ErrorException
Trying to access array offset on value of type null
at vendor/tecdiary/installer/src/Commands/UpdateMPS.php:68
64▕ $time = mps_config('auto_update_time', true);
65▕ $next = isset($time->checked_at) ? Carbon::parse($time->checked_at)->addDays(6)->startOfDay() : now()->subDay()->startOfDay();
66▕ if ($this->updateNow || $now->greaterThan($next)) {
67▕ $keys = json_decode(Storage::disk('local')->get('keys.json'), true);
➜ 68▕ if ($keys['mps']) {
69▕ if ($time) {
70▕ $time->checked_at = $next->toDateString();
71▕ }
72▕ Artisan::call('down');
+15 vendor frames
16 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
Trying to access array offset on value of type null
at vendor/tecdiary/installer/src/Commands/UpdateMPS.php:68
64▕ $time = mps_config('auto_update_time', true);
65▕ $next = isset($time->checked_at) ? Carbon::parse($time->checked_at)->addDays(6)->startOfDay() : now()->subDay()->startOfDay();
66▕ if ($this->updateNow || $now->greaterThan($next)) {
67▕ $keys = json_decode(Storage::disk('local')->get('keys.json'), true);
➜ 68▕ if ($keys['mps']) {
69▕ if ($time) {
70▕ $time->checked_at = $next->toDateString();
71▕ }
72▕ Artisan::call('down');
+15 vendor frames
16 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
- GAnsweredI did artisan migrate it was succesul then i did php arisan mps:update
- GAnswered+------+------------------------------------------------------------+-------+
| Ran? | Migration | Batch |
+------+------------------------------------------------------------+-------+
| Yes | 2017_02_21_070324_create_attachments_table | 1 |
| Yes | 2017_03_17_070324_alter_attachments_table_extend_filetype | 1 |
| Yes | 2017_08_21_201100_alter_attachments_table_add_group_column | 1 |
| Yes | 2019_12_14_000001_create_personal_access_tokens_table | 1 |
| Yes | 2022_03_29_162019_create_model_names_table | 2 |
+------+------------------------------------------------------------+-------+
my migration status in my application on the bottom corner the version of the app is .7.4 idk is its updtated correctly to the newest how can i check - MSAnsweredHello,
Looks like I have missed some migrations for the basic version. The last migrations should be related to activity log. I am attaching the `patch.zip` file with migrations that you can copy to `database/migrations/updates/` folder and run `php artisan migrate` command again.
If the `migrate` command runs successfully, then you should be fine. **_Laravel 9 requires php8.0.3+_**
If you have standard/extended license, then you will need to run `composer install` too.
```sh
php artisan migrate
composer install # only for standard & extended licenses
```
The `mps:update` command try to do all these including download and checking your preferred update time. I will update the documentation for this.
I am sorry for the trouble and thank you for your patience, help and support in developing this item.Attachments - GAnsweredHi again i did the migration it was successful but i still cant update when i do the mps:update it gives me the same error
ErrorException
Trying to access array offset on value of type null
at vendor/tecdiary/installer/src/Commands/UpdateMPS.php:68
64▕ $time = mps_config('auto_update_time', true);
65▕ $next = isset($time->checked_at) ? Carbon::parse($time->checked_at)->addDays(6)->startOfDay() : now()->subDay()->startOfDay();
66▕ if ($this->updateNow || $now->greaterThan($next)) {
67▕ $keys = json_decode(Storage::disk('local')->get('keys.json'), true);
➜ 68▕ if ($keys['mps']) {
69▕ if ($time) {
70▕ $time->checked_at = $next->toDateString();
71▕ }
72▕ Artisan::call('down');
+15 vendor frames
16 artisan:37
Illuminate\Foundation\Console\Kernel::handle() - MSAnsweredHello,
You don't have to run `mps:update` You have already updated the file and database. Please try to access your install and if you have any issue, let me know.
Thank you - Login to Reply