https://twill.io logo
Join Discord
Powered by
# ❓questions
  • h

    Harings Rob

    02/01/2023, 11:59 AM
    did the directory get created?
  • k

    kerkness

    02/01/2023, 12:00 PM
    I believe that directory was created with
    php artisan twill:install
    it was there all along if I remember correctly. I neglected to note the initial permissions on the directory
  • k

    kerkness

    02/01/2023, 12:01 PM
    I can test for that tho if you like
  • h

    Harings Rob

    02/01/2023, 12:01 PM
    Anyway, I will check it. Should not error at all
  • k

    kerkness

    02/01/2023, 12:16 PM
    I checked. Folder is created on
    twill:install
    but with permissions
    700
    . So user has full permissions but group does not. In my case nginx is expecting group permissions to execute and read/write into that folder. I updated the issue on github
  • e

    elkex

    02/01/2023, 1:03 PM
    So I created the model & followed the steps from the tutorial, but it does not seem to show the fields..
  • i

    ifox

    02/01/2023, 1:05 PM
    did you set up a videos relationship on your Download model?
  • e

    elkex

    02/01/2023, 1:07 PM
    Jep..
    Copy code
    public function videos(){
        $this->hasMany(Video::class)->orderBy('position');
    }
    Could it be because I added the download_id to the videos table & not the video_translations table?
  • e

    elkex

    02/01/2023, 1:07 PM
    I id add the return word btw
  • i

    ifox

    02/01/2023, 1:07 PM
    download_id in the videos table is correct
  • e

    elkex

    02/01/2023, 1:08 PM
    Hm oke.. Weird..
  • i

    ifox

    02/01/2023, 1:09 PM
    can you show me your video model and repository, as well as your download model and repository (in a thread please!)
  • Repeater model not rendering in backend
    e

    elkex

    02/01/2023, 1:11 PM
    Video model: ``` <?php namespace App\Models; use A17\Twill\Models\Behaviors\HasTranslation; use A17\Twill\Models\Behaviors\HasMedias; use A17\Twill\Models\Behaviors\HasFiles; use A17\Twill\Models\Behaviors\HasPosition; use A17\Twill\Models\Behaviors\Sortable; use A17\Twill\Models\Model; class Video extends Model implements Sortable { use HasTranslation, HasMedias, HasFiles, HasPosition; protected $fillable = [ 'published', 'title', 'description', 'position', 'download_id' ]; public $translatedAttributes = [ 'title', 'description', 'active', ]; public $mediasParams = [ 'cover' => [ 'default' => [ [ 'name' => 'default', 'ratio' => 16 / 9, ], ], 'mobile' => [ [ 'name' => 'mobile', 'ratio' => 1, ], ], 'flexible' => [ [ 'name' => 'free', 'ratio' => 0, ], [ 'name' => 'landscape', 'ratio' => 16 / 9, ], [ 'name' => 'portrait', 'ratio' => 3 / 5, ], ], ], ]; }
    i
    • 2
    • 28
  • j

    jefsev

    02/01/2023, 2:09 PM
    Hi after uploading the storage using ftp all images seem to not be rendered correctly. Any idea what is going wrong? Files are working correctly so it seems everything that is in medias is not displaying right.
  • i

    ifox

    02/01/2023, 2:16 PM
    @jefsev considering the output, most likely your PHP image rendering driver is not installed correctly. Are you using GD or Imagick?
  • j

    jefsev

    02/01/2023, 2:17 PM
    Not sure, im fooling around with this hosting company all day. I will check with them if that's the case.
  • j

    jefsev

    02/01/2023, 2:18 PM
    Is there a quick way to check that? I have limited ssh acces to the website root
  • i

    ifox

    02/01/2023, 2:21 PM
    I guess you have access to a phpinfo() page?
  • b

    BA7YA

    02/01/2023, 2:22 PM
    Hi guys! Im investigated one problem. I have module - page and file create.form.php for that. Inside that file I have this code , which generate slug base on title (screenshot 1). It's working good. Problem: If after creating page , im opening edit modal window and change slug - it will save it and will work good. If I will delete page and then restore it from trash it will change slug to title value , but not using my saved slug. Is it a bug or just normal behaviour. Problem comes from
    getSlugParams ( )
    method in HasSlug.php file.
    i
    • 2
    • 7
  • j

    jefsev

    02/01/2023, 2:23 PM
    Yup GD Support enabled
  • j

    jefsev

    02/01/2023, 2:26 PM
    If i remove ?fm=jpg&q=80&fit=max&crop=2121%2C1193%2C0%2C177 from my slug i get: Reading Exif data is not supported by this PHP installation.
  • j

    jefsev

    02/01/2023, 2:29 PM
    Seems like their problem.
  • j

    jefsev

    02/01/2023, 2:44 PM
    If i replace fm= in the url with gd= it works: https://uk.boalextrusion.com/img/79ec669b-7c26-4742-9482-5cd7bbcedf61/-p7b4759.jpg?fm=jpg&q=80&fit=max&crop=2048%2C1152%2C0%2C213 https://uk.boalextrusion.com/img/79ec669b-7c26-4742-9482-5cd7bbcedf61/-p7b4759.jpg?gd=jpg&q=80&fit=max&crop=2048%2C1152%2C0%2C213 Any idea how i can fix this?
  • i

    ifox

    02/01/2023, 2:45 PM
    gd isn't a parameter the glide server is using so it has no effect. So your problem is on the format conversion. Since you're not passing fm anymore it doesn't have to convert
  • j

    jefsev

    02/01/2023, 2:46 PM
    Ah oke 😛
  • j

    jefsev

    02/01/2023, 2:47 PM
    So still serverside then. On our own server it works..
  • e

    EpicKau

    02/01/2023, 7:20 PM
    is there an estimated release date for twill3?
  • i

    ifox

    02/01/2023, 7:58 PM
    hi @EpicKau yes, as soon as possible this month. You can definitely start on Twill 3 if you are getting started with Twill
  • i

    ifox

    02/01/2023, 7:58 PM
    @jefsev looks like your image is working now 😉
  • e

    EpicKau

    02/01/2023, 8:41 PM
    @ifox nice 🙂 How are updates handled? Only via composer or also via admin ui? And how often? Can it be my Wordpress killer?
1...457458459...484Latest