Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Error Listing Routes and Displaying Images

    General Discussion
    2
    5
    360
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      tomatopi last edited by

      When I run the command:
      php artisan route:list

      I get the following error:
      In ResourceController.php line 47:
      Trying to access array offset on value of type null

      Looking in the ResourceController.php file, it's trying to access the array of request('_config') which appears to be null.

      I found this when trying to troubleshoot why images are not being displayed when trying to edit a product. Image links like:
      http://www.example.com/storage/product/43/VY7SVgn5wZhKSemkzbNeA6znKy1IS32gfYaDksoa.png
      are returning 404 errors. The file does exist. I was trying to determine the route to see what was happening. Images on the front-end are displaying fine, only not while editing products in the admin section.

      Thanks

      Peter

      1 Reply Last reply Reply Quote 0
      • V
        Vaishali Agarwal last edited by

        @tomatopi
        find the solution here for broken image;
        https://forums.bagisto.com/topic/188/broken-image-logo-in-bagisto-with-causes-and-solutions/1

        1 Reply Last reply Reply Quote 0
        • T
          tomatopi last edited by

          The Storage re-linking worked. During install, the artisan link didn't work and I had manually created the link.

          php artisan route:list

          is still broken.

          Peter

          1 Reply Last reply Reply Quote 0
          • V
            Vaishali Agarwal last edited by

            yes,
            php artisan route:list will cause issue, we will update you once this issue fixed

            1 Reply Last reply Reply Quote 0
            • T
              tomatopi last edited by

              Thanks.

              Great application. Nice work.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post