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

    Images won't show up

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    2
    2
    77
    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
      TimBr
      last edited by

      Goodday all,

      So yesterday I’ve updated my FOG server to the DEV branch to check some things out. However, when I wanted to list all my images I got a blank screen as return.When looking into /var/log/apache2/error.log I’m greeted with the following error message:

      Got error 'PHP message: PHP Fatal error:  Uncaught ValueError: min(): Argument #1 ($value) must 
      contain at least one element in /var/www/fog/lib/fog/image.class.php:496\nStack trace:\n#0
      /var/www/fog/lib/fog/image.class.php(496): min()\n#1 /var/www/fog/lib/fog/image.class.php(389):
      Image->getPrimaryGroup()\n#2 /var/www/fog/lib/router/route.class.php(1319): 
      Image->getStorageGroup()\n#3 /var/www/fog/lib/router/route.class.php(488): Route::getter()\n#4 /
      var/www/fog/lib/fog/fogpage.class.php(491): Route::listem()
      \n#5 /var/www/fog/lib/fog/fogpagemanager.class.php(220): FOGPage->index()\n#6 
      /var/www/fog/management/index.php(58): FOGPageManager->render()\n#7 {main}\n  
      thrown in /var/www/fog/lib/fog/image.class.php on line 496'
      

      I did some checks to see if all the data was valid. But couldn’t find anything. Does anyone knows what’s happening here?

      Thanks!

      Tom ElliottT 1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @TimBr
        last edited by

        @TimBr Did you migrate this from an older server?

        The getPrimaryGroup/getStorageGroup’s are the indicator of the problem here.

        Basically, you would likely see the same type of problem if you were to goto snapins:

        Effectively the issue is the Image (in this instance) is associated to a StorageGroup that simply doesn’t exist or that storage group has no storage nodes associated to it.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

        216

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project