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

    andrewsamuelhan

    08/09/2021, 4:08 PM
    Okay now tried to clear cached files such as routes, config, etc
  • a

    andrewsamuelhan

    08/09/2021, 4:09 PM
    Then this error appears. Even calling
    artisan twill:update
  • a

    andrewsamuelhan

    08/09/2021, 4:11 PM
    I only fix that by uploading cache from my local and its fixed
  • a

    andrewsamuelhan

    08/09/2021, 4:12 PM
    Now I stayed away of using those commands. 😭
  • a

    andrewsamuelhan

    08/09/2021, 4:18 PM
    Im using php 7.4.2 and laravel framework v7.29. Twill ^2.4
  • p

    pboivin

    08/09/2021, 4:20 PM
    I'm wondering if this could be a permissions problem... can you run
    ls -l storage/framework/cache/*
    on your server, and see what's on the first column (drwxrwxr-x ...)
  • p

    pboivin

    08/09/2021, 4:20 PM
    Copy code
    $ ls -l storage/framework/cache/*
    total 4
    drwxrwxr-x 1 vagrant vagrant 4096 Aug  9 16:16 48/
    
    ...
  • a

    andrewsamuelhan

    08/09/2021, 4:24 PM
    All storage folders are 0755 and files are 0644
  • a

    andrewsamuelhan

    08/09/2021, 4:26 PM
    Clear cahce will remove those files and it will create new files using default 0644 for files and 0755 for folders
  • p

    pboivin

    08/09/2021, 4:27 PM
    When you clear cache + refresh the page, the files in
    storage/framework/cache
    get recreated properly, is that it?
  • a

    andrewsamuelhan

    08/09/2021, 4:27 PM
    Yes it remove all files in cache/data
  • p

    pboivin

    08/09/2021, 4:28 PM
    Ok, probably not a permissions issue then.
  • p

    pboivin

    08/09/2021, 4:28 PM
    Just brainstorming 🙂
  • a

    andrewsamuelhan

    08/09/2021, 4:28 PM
    Okay I’ll help
  • a

    andrewsamuelhan

    08/09/2021, 4:28 PM
    Ive seen your code seems fine
  • a

    andrewsamuelhan

    08/09/2021, 4:32 PM
    How to debug twill’s logincontroller?
  • p

    pboivin

    08/09/2021, 4:35 PM
    Not sure I understand your question. What are you trying to find in LoginController?
  • a

    andrewsamuelhan

    08/09/2021, 4:36 PM
    Just trying to figure out all the possibilites from controller to view
  • a

    andrewsamuelhan

    08/09/2021, 4:36 PM
    I think I’ve found it inside
    src
    folder
  • a

    andrewsamuelhan

    08/09/2021, 5:02 PM
    Hi, I think I found the issue
  • a

    andrewsamuelhan

    08/09/2021, 5:02 PM
    twillAsset managed to call readManifest, where you're loading the manifestfilename using cache
  • a

    andrewsamuelhan

    08/09/2021, 5:03 PM
    When the cache dissapears, it immedately showing error
  • a

    andrewsamuelhan

    08/09/2021, 5:06 PM
    So the solution maybe you should call
    getManifestFilename
    again if cache not found, if still fails then throw an exception. If found then remember it again
  • p

    pboivin

    08/09/2021, 5:07 PM
    Correct me if I'm wrong but if the cache is not found, it should run the callback and cache the value, or am I missing something obvious?
  • a

    andrewsamuelhan

    08/09/2021, 5:08 PM
    Yes, but I didn't really know how laravel Cache works
  • a

    andrewsamuelhan

    08/09/2021, 5:08 PM
    It made my project error too.
  • a

    andrewsamuelhan

    08/09/2021, 5:10 PM
    I debug the config at first and it works
  • a

    andrewsamuelhan

    08/09/2021, 5:10 PM
    But why it didn't load twill_manifest.json
  • a

    andrewsamuelhan

    08/09/2021, 5:12 PM
    Inside your
    dist
    folder its empty. So I managed to add
    assets/admin
    folder and copy
    twill-manifest.json
    inside, and it fix the problem
  • p

    pboivin

    08/09/2021, 5:13 PM
    Interesting... that's what
    php artisan twill:update
    is doing, essentially.
1...767778...484Latest