sailoreudes

Aug 6th, 2019 11:03 AM

Image does not update ...

nate-johnson

Aug 6th, 2019 09:12 PM

Post some context, errors or somethung.New install?

sailoreudes

Aug 7th, 2019 05:40 AM

I installed everything, and I linked the storage folder but when I try to modify any image (logo, profile image and the rest) it doesn't update them.

nate-johnson

Aug 7th, 2019 11:50 AM

That happened to me my first time. I finally realized the storage symlnk was already set to the developer's filesystem in the zip file that was distrubuted. I had to delete it and then recreate it manually so that it linked to my filesystem.

sailoreudes

Aug 7th, 2019 12:33 PM

I deleted the storage file from the public folder and then I restarted the php storage link on my terminal, but the problem remains the same

nate-johnson

Aug 7th, 2019 06:56 PM

Check you symlnks. The first set are how mine came out of the box (wrong) and the second is when I manually recreated the symlnk not using the artisan command. The latter is the only way I got mine to work.

➜  pwd
/Users/naj/Code/myapp/public
➜  ls -al
total 24
-rwxr-xr-x@ 1 naj  staff     0B Mar 30 07:53 favicon.ico
-rwxr-xr-x@ 1 naj  staff   1.8K Mar 30 07:53 index.php
-rwxr-xr-x@ 1 naj  staff    34B Mar 30 07:53 mix-manifest.json
-rwxr-xr-x@ 1 naj  staff    24B Mar 30 07:53 robots.txt
lrwxr-xr-x@ 1 naj  staff    44B Aug  1 21:20 storage -> /Users/tony/Sites/wavedev/storage/app/public
drwxr-xr-x@ 4 naj  staff   128B Mar 30 07:53 themes
drwxr-xr-x@ 4 naj  staff   128B Mar 30 07:53 vendor
drwxr-xr-x@ 6 naj  staff   192B Mar 30 07:53 wave

➜  pwd
/Users/naj/Code/myapp/public
➜  ls -al
total 24
-rwxr-xr-x@ 1 naj  staff     0B Mar 30 07:53 favicon.ico
-rwxr-xr-x@ 1 naj  staff   1.8K Mar 30 07:53 index.php
-rwxr-xr-x@ 1 naj  staff    34B Mar 30 07:53 mix-manifest.json
-rwxr-xr-x@ 1 naj  staff    24B Mar 30 07:53 robots.txt
lrwxr-xr-x  1 naj  staff    47B Aug  2 09:17 storage -> /home/vagrant/Code/myapp/storage/app/public
drwxr-xr-x@ 4 naj  staff   128B Mar 30 07:53 themes
drwxr-xr-x@ 4 naj  staff   128B Mar 30 07:53 vendor
drwxr-xr-x@ 6 naj  staff   192B Mar 30 07:53 wave
nate-johnson

Aug 7th, 2019 06:59 PM

There's also a bug in how Voyager is set up.

https://github.com/the-control-group/voyager/issues/4082

A temp fix is to see if it works for you would be to modify the vended file.

In: TCG\Voyager\Models\User

public function setSettingsAttribute($value)
{
    // $this->attributes['settings'] = $value->toJson();
    $this->attributes['settings'] = $value ? $value->toJson() : null;
}