Bad filename suffix in newImage

Hi, i have a problem.
OK, i have modded my zenphoto, and my last work on zenphoto is 12 weeks ago. My zenphoto gallery is still not online. I have no time...
I search for more infos about this error:

{4897:Wed, 20 Jun 2018 18:23:13 GMT} Zenphoto v1.4.14[f5b47da52feacae4e5e081b977e60ee0b2fe1bc5]
  USER NOTICE: Bad filename suffix in newImage(PICT1105.JPG) in /var/www/virtual/xxx/html/zp-core/class-image.php on line 73
  trigger_error called from newImage (class-image.php [73])
    from AlbumBase->getAlbumThumbImage (class-album.php [443])
      from printAlbumThumbImage (template-functions.php [1881])
        from include (index.php [63])
          from include (index.php [130])
            from index.php [28]

Comments

  • acrylian Administrator

    If this is your modded version, try if you get the same error with the unmodded one.

  • wibbi Member
    edited June 20

    I have no unmodded installed. But fresh install have no errors.
    The thumbs in parent-albums are not displayed.

    I have found this function and a little bit confused.
    zp-core/class-album.php

     function getThumb() {
            $image = $this->getAlbumThumbImage();
            return $image->getThumb('album');
        }

    getThumb() call getThumb('album') in getThumb() ???

  • wibbi Member

    $thumbobj = $_zp_current_album->getAlbumThumbImage()
    have a result.
    $thumbobj->getThumb('album')
    have no result, but the error.

    $_zp_current_album->getAlbumThumbImage()

    
    object(Album)#14 (29) {
    ...
    ["albumthumbnail":protected]=>
      object(Transientimage)#12 (30) {
        ["filename"]=>
        array(2) {
          ["source"]=>
          string(36) "zp-core/images/err-imagenotfound.png"
          ["name"]=>
          string(36) "zp-core_images_err-imagenotfound.png"
        }
        ["exists"]=>
        bool(false)
        ["webpath"]=>
        NULL
        ["localpath"]=>
        string(63) "/var/www/virtual/xxx/html/zp-core/images/err-imagenotfound.png"
        ["displayname"]=>
        string(17) "err-imagenotfound"
        ["album"]=>
    ...
    object(AlbumBase)#11 (29) {
    ...
          ["albumthumbnail":protected]=>
          NULL
    ...
        ["objectsThumb"]=>
        NULL
    ...
      ["data":"PersistentObject":private]=>
      array(37) {
    ...
        ["thumb"]=>
        string(31) "/summer/2018-holla/PICT1105.JPG"
    ...
    
  • acrylian Administrator
    edited June 20

    Nothing confusing about getThumb() call getThumb('album') in getThumb() ???. The album class method getThumb() which is for the thumb representing the album calls the getThumb() function of the image class since the album class method getAlbumThumbImage() returns an image object. (The parameter "album" is useless actually)

    So basically the error says the image that is set as the album thumb does not exist. So does it exist?

  • wibbi Member
    edited June 20

    The file exist on FTP and have a database entry, i have checked it.

  • acrylian Administrator
    edited June 21

    So without any specific error I cannot help and only suggest to re-assign a specific image as the album thumb.

  • wibbi Member

    Everyone is affected. It is a common problem.
    I'm not satisfied because it's a lot of work.
    Now I will install 1.5 new and enter my moddings. let's see...
    there are from 1.4. to 1.5 changes in the database (rows / cols)?
    It's too complicated ... for a simple photo CMS. sorry, my problem ...

  • acrylian Administrator
    edited June 21

    Everyone is affected. It is a common problem.

    If you having an issue makes this "common" and "everyone" affected… Never had this issue, which of course does not mean it does not exist but I cannot help without a more concrete error since I cannot reproduce it.

    And Zenphoto is not a "simple photo cms" for a long time already :-)

  • wibbi Member

    ZenPhoto: "The simpler media website CMS" ;)

    "common" and "everyone" on my installation.

    Good news. Now that I have installed ZenPhoto 1.5 and have insert all my modding (without modding themes), everything works without error. I can not explain it. It is a lot of time and a lot of work. It is not good if the CMS suddenly stops working.

  • acrylian Administrator

    ZenPhoto: "The simpler media website CMS"

    Zenphoto actually. Note the case ;-) And it refers to general usage. Sadly with the flexibility and also not all servers behaving the same simple is a bit relative…

    It is not good if the CMS suddenly stops working.

    Absolutely. As said we had some bugs regarding fresh installs although we tested it that now should be fixed in the support build.

  • wibbi Member

    What is the support build? Is there any version other than the v1.5.tar.gz? The master.zip?

  • acrylian Administrator

    Yes, that's the master before it becomes the next version. Named that way here https://www.zenphoto.org and explained here https://www.zenphoto.org/news/installation-and-upgrading/#--support-build-vs-development-build

  • wibbi Member

    Then master.zip is a snapshot without its own version number, but always newer than the release with the highest version number?
    How often are such snapshots / masters created?

  • acrylian Administrator
    edited June 21

    Yes, but it's not a snapshot. It's just the current state and gets everything as soon as any change is committed (as it is called in Git terms). Which means it might not always be fully stable since also work in progress.

Sign In or Register to comment.