Results 1 to 6 of 6

Thread: Laravel image uploaded successfully, but it shows Image Not Found error.

  1. #1
    Join Date
    Nov 2009
    Posts
    76,596

    Default Laravel image uploaded successfully, but it shows Image Not Found error.

    I have just tried to upload an image imagehostnow.dev and it upload successfully.But error showed "image not found"


  2. #2
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    Remove everything from error log.

    Now generate the error again. Check what is in the error log file. That will give you some information.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  3. #3
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    /home/sherly/www/imagehostnow.com/app/controllers/UploadController.php

    added

    Code:
    $image->status = 'active';
    Then tried again, uploaded image but i got error.


  4. #4
    Join Date
    Sep 2003
    Posts
    3,040

    Default

    This is because your database have no views column.

    If you have done git pull origin master, make sure what files are changed, if any database migrations are there, you should run it, then only database get updated.

    views column, will show how many times an image get viewed.

    http://git.buyscripts.in:10080/buysc...53c4291000ca45

    This is the commit/code changes that added tracking of image views.

    Previously, we have no idea which images get more view (popular image), now we can find which images are popular.
    Become PHP Expert in 30 days
    FreeMarriage.com - Free Online Matrimonial
    FlashWebHost.com - Professional Web Hosting, Designing.

  5. #5
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    I run below commands in this order and got below result:

    Code:
    git pull origin master 
    git stash
    git checkout master
    git pull
    php artisan migrate


    Result:

    Code:
    [email protected]:~/www/imagehostnow.com$ git pull origin master 
    From ssh://git.buyscripts.in:10022/buyscripts/imagehost
     * branch            master     -> FETCH_HEAD
    Updating 4833b21..dc3262f
    error: Your local changes to the following files would be overwritten by merge:
      app/controllers/UploadController.php
    Please, commit your changes or stash them before you can merge.
    Aborting
    [email protected]:~/www/imagehostnow.com$ git stash
    Saved working directory and index state WIP on master: 4833b21 Merge branch 'issue73' into 'master'
    HEAD is now at 4833b21 Merge branch 'issue73' into 'master'
    [email protected]:~/www/imagehostnow.com$ git checkout master
    Already on 'master'
    Your branch is behind 'origin/master' by 10 commits, and can be fast-forwarded.
      (use "git pull" to update your local branch)
    [email protected]:~/www/imagehostnow.com$ git pull
    remote: Counting objects: 6, done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 6 (delta 3), reused 0 (delta 0)
    Unpacking objects: 100% (6/6), done.
    From ssh://git.buyscripts.in:10022/buyscripts/imagehost
     * [new branch]      issue39    -> origin/issue39
    Updating 4833b21..dc3262f
    Fast-forward
     app/controllers/Admin/SearchController.php         | 37 ++++++++++
     app/controllers/Admin/SettingsController.php       |  1 -
     app/controllers/ImageController.php                |  8 ++-
     app/controllers/UploadController.php               |  2 +
     ...3023_alter_table_spam_reports_add_reason_id.php | 30 ++++++++
     ...2015_01_23_060356_alter_table_images_add_ip.php | 30 ++++++++
     app/models/SpamReport.php                          | 13 +++-
     app/routes.php                                     |  3 +-
     app/views/admin/layouts/master.blade.php           |  1 +
     app/views/admin/search/index.blade.php             | 79 ++++++++++++++++++++++
     app/views/admin/settings/index.blade.php           |  6 --
     app/views/admin/spam_reports/index.blade.php       |  2 +
     app/views/image/index.blade.php                    | 47 ++++++++-----
     13 files changed, 231 insertions(+), 28 deletions(-)
     create mode 100644 app/controllers/Admin/SearchController.php
     create mode 100644 app/database/migrations/2015_01_23_043023_alter_table_spam_reports_add_reason_id.php
     create mode 100644 app/database/migrations/2015_01_23_060356_alter_table_images_add_ip.php
     create mode 100644 app/views/admin/search/index.blade.php
    [email protected]:~/www/imagehostnow.com$ php artisan migrate 
    Migrated: 2015_01_23_043023_alter_table_spam_reports_add_reason_id
    Migrated: 2015_01_23_060356_alter_table_images_add_ip
    [email protected]:~/www/imagehostnow.com$

    Now image upload is successfull.


  6. #6
    Join Date
    Dec 2017
    Location
    Russian
    Posts
    28

    Default Laravel image uploaded successfully but it shows Image Not Found error

    i am trying to run PHP Report Maker 9 Demo Version, and i completely setup the configuration.but when i run localhost/phprpt9demo i found this error "Fatal error: Class cremployees not found in D:xxxxxhtdocsphprpt9demoindex.php on line 173"how to fix this error?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •