File does not exist error

ctdlg Member
edited December 11 in General support

Hello,

From time to time, not frequently, I get an error in my logs, and I do not fully understand it :

{3291765:Tue, 10 Dec 2024 14:23:29 GMT} Zenphoto v1.6.5
USER ERROR: Invalid image instantiation: file does not exist in /public_html/zp-core/classes/class-image.php on line 58
trigger_error called from Image->__construct (class-image.php [58])
from Image::newImage (class-image.php [120])
from full-image.php [51]

Does it mean a file (image) is no more available, or not ?
Reading the files class-image.php and full-image.php do not help me a lot to understand.
It is a user error. What kind of errors could users do ?

Comments

  • acrylian Administrator, Developer

    Hard to tell without knowing what image. PLease enable the image debugging: https://www.zenphoto.org/news/debugging/

    Could be an a lot like out of sync database with already deleted images. Or invalid broken images or somehow statically called i.php image processor urls for non existing images.

  • I have enabled the image debugging in the zenphoto.cfg.php file.
    Now, I have to wait for an error.
    Thank you for your help.

  • I now get many errors :
    {1987694:Thu, 12 Dec 2024 09:33:43 GMT}
    There is no PHP Graphics support.
    {1987694:Thu, 12 Dec 2024 09:33:43 GMT}
    Loading Imagick
    {1988472:Thu, 12 Dec 2024 09:33:54 GMT}
    There is no PHP Graphics support.
    {1988472:Thu, 12 Dec 2024 09:33:54 GMT}
    Loading Imagick

    But
    Server software: Apache
    PHP version: 8.1.31
    Graphics library: PHP Imagick library 3.7.0
    ImageMagick 7.1.1-39 Q16-HDRI x86_64 22428 https://imagemagick.org
    supported formats: avif, bmp, bmp2, bmp3, gif, gif87, jpeg, jpg, png, png24, png32, png8, tiff, tiff64, webp

    And my host answers :
    Supported formats : 3FR, 3G2, 3GP, A, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, B, BAYER, BAYERA, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FFF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, FTXT, G, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MDC, MEF, MIFF, MKV, MNG, MONO, MOS, MOV, MP4, MPC, MPEG, MPG, MPO, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, QOI, R, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, RWL, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, SRW, STEGANO, STI, STRIMG, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YAML, YCBCR, YCBCRA, YUV

    Before today, I was using GD library, and got same errors.

    What could be wrong ?

  • acrylian Administrator, Developer

    That is weird, I sadly have no idea right now.

  • ctdlg Member
    edited December 12

    I searched the Zenphoto forum.
    You wrote here :
    https://forum.zenphoto.org/discussion/1411103/error-in-debug-log-there-is-no-php-graphics-support

    No, if I remember correctly those log entries are false positive reports and actually mistakes in 1.6 (forgotten debug code for testing). If all images are generated all is fine.

    All images are generated, so, I suppose all is fine !

  • acrylian Administrator, Developer

    Ah, that debug code should have been removed by now as 1.6 has been a while. You are on 1.6.5 I suppose?

    We will review that again, perhaps that is a check somewhere buried that happens earlier and therefore throws still that false-positive.

    If the lib would really not be working there should be much more actual image processor errors, too.

  • Yes, I'm on 1.6.5 and get no problem.
    I have removed the image debug lines in the zenphoto.cfg.php file.

Sign In or Register to comment.