Fatal Error after update to 5.0.8
-
Error thrown
Call to undefined method ShortPixel\Model\Image\CustomImageModel::getWPMetaData()Added 20 images to a NextGen gallery and this error is thrown when I try to advance the page when managing the gallery in NextGen. It does not happen on other galleries that I have not added additional images to under 5.0.8
Also if I try to change the default (50) images per page shown in the gallery, the same error is thrown.
-
This topic was modified 2 years, 7 months ago by
badknees.
-
This topic was modified 2 years, 7 months ago by
-
Hi @badknees,
I tried to reproduce the issue, but on my side it’s working well. Could you please send us the following information?
- Some screenshots showing the issue would be helpful, including relevant links, but a screen recording is always better.
- Your site information. For this, please go to Tools > Site Health > Info, click on the “Copy site info to clipboard” button and paste the information here.
Screenshots of your ShortPixel plugin settings. - Finally, is the issue occurring in more than one web browser (Chrome, Firefox, Edge, Safari, etc.)?
Thank you,
This error does not occur on galleries “untouched” by 5.0.8.
The same error occurs on EDGE also.Link to zipfile with screen recording, health info and SP settings screen shots:
https://drive.google.com/file/d/17_f00JXggIbxeaa_fK_oRr2UJB6jc6gA/view?usp=sharing
### wp-core ### version: 6.0.1 site_language: en_US user_language: en_US timezone: America/Chicago permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 4 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home1/diver53/public_html/wordpress wordpress_size: 273.85 MB (287154582 bytes) uploads_path: /home1/diver53/public_html/wordpress/wp-content/uploads uploads_size: 1.45 GB (1559512004 bytes) themes_path: /home1/diver53/public_html/wordpress/wp-content/themes themes_size: 30.82 MB (32321390 bytes) plugins_path: /home1/diver53/public_html/wordpress/wp-content/plugins plugins_size: 89.72 MB (94076601 bytes) database_size: 31.06 MB (32570990 bytes) total_size: 1.87 GB (2005635567 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Astra_Child (astra-child) version: 1.0.1 author: Mirrormagic.com author_website: https://mirrormagic.com parent_theme: Astra (astra) theme_features: core-block-patterns, astra_hooks, widgets-block-editor, align-wide, automatic-feed-links, title-tag, post-thumbnails, html5, post-formats, custom-logo, customize-selective-refresh-widgets, editor-style, woocommerce, rank-math-breadcrumbs, amp, editor-color-palette, widgets, menus theme_path: /home1/diver53/public_html/wordpress/wp-content/themes/astra-child auto_update: Disabled ### wp-parent-theme ### name: Astra (astra) version: 3.9.1 author: Brainstorm Force author_website: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme theme_path: /home1/diver53/public_html/wordpress/wp-content/themes/astra auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Twenty-Two: version: 1.2, author: the WordPress team, Auto-updates disabled ### wp-plugins-active (26) ### Akismet Anti-Spam: version: 5.0, author: Automattic, Auto-updates disabled ARI Fancy Lightbox: version: 1.3.9, author: ARI Soft, Auto-updates disabled Astra Widgets: version: 1.2.12, author: Brainstorm Force, Auto-updates disabled Broken Link Checker: version: 1.11.17, author: WPMU DEV, Auto-updates disabled Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled Create And Assign Categories For Pages: version: 1.2, author: Sandeep Singh, Auto-updates disabled Disable Emojis (GDPR friendly): version: 1.7.4, author: Ryan Hellyer, Auto-updates disabled Disable Lazy Load: version: 1.6, author: Jeff Starr, Auto-updates disabled Enable Media Replace: version: 3.6.3, author: ShortPixel, Auto-updates disabled Import / Export Customizer Settings: version: 1.0.6, author: Brainstorm Force, Auto-updates disabled List category posts: version: 0.86.1, author: Fernando Briano, Auto-updates disabled MapPress Maps for WordPress: version: 2.83.12, author: Chris Richardson, Auto-updates disabled Media Sync: version: 1.2.9, author: Erol ?ivina, Auto-updates disabled Menu Icons: version: 0.12.12, author: ThemeIsle, Auto-updates disabled NextGEN Gallery: version: 3.28, author: Imagely, Auto-updates disabled Optimize Database after Deleting Revisions: version: 5.0.110, author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands, Auto-updates disabled Really Simple SSL: version: 5.3.3, author: Really Simple Plugins, Auto-updates disabled Regenerate Thumbnails Advanced: version: 2.4.0, author: ShortPixel, Auto-updates disabled ShortPixel Image Optimizer: version: 5.0.8, author: ShortPixel, Auto-updates disabled Ultimate Addons for Gutenberg: version: 1.25.6, author: Brainstorm Force, Auto-updates disabled W3 Total Cache: version: 2.2.4, author: BoldGrid, Auto-updates disabled WP Crontrol: version: 1.14.0, author: John Blackbourn & crontributors, Auto-updates disabled Yoast Comment Hacks: version: 1.7, author: Team Yoast, Auto-updates disabled Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates disabled Yoast SEO: version: 19.5.1, author: Team Yoast, Auto-updates disabled Yoast Test Helper: version: 1.17, author: Team Yoast, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1654 imagemagick_version: ImageMagick 6.7.6-8 2016-07-19 Q16 https://www.imagemagick.org imagick_version: 3.4.3 file_uploads: File uploads is turned off post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 115 GB imagick::RESOURCETYPE_DISK: -1 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 48 MB imagick::RESOURCETYPE_MEMORY: 48 MB imagick::RESOURCETYPE_THREAD: not available imagemagick_file_formats: 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, JNG, JP2, JPC, JPEG, JPG, JPX, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG24, PNG32, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RLA, RLE, SCR, SCT, SFW, SGI, SHTML, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, Y, YCbCr, YCbCrA, YUV gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, BMP, XPM ghostscript_version: 8.71 ### wp-server ### server_architecture: Linux 4.19.150-76.ELK.el6.x86_64 x86_64 httpd_software: Apache php_version: 7.4.28 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 120 memory_limit: 512M max_input_time: 60 upload_max_filesize: 256M php_post_max_size: 256M curl_version: 7.81.0 OpenSSL/1.1.1m suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.6.39-83.1 client_version: mysqlnd 7.4.28 max_allowed_packet: 268435456 max_connections: 150 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home1/diver53/public_html/wordpress/wp-content WP_PLUGIN_DIR: /home1/diver53/public_html/wordpress/wp-content/plugins WP_MEMORY_LIMIT: 512M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: undefined DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable
Hi @badknees,
Thanks for the information.
The only reason we can figure for this is that you have an image in a NextGEN Gallery with the same ID as one in the Media Library, which is blocked for optimization due to the error, and maybe it wasn’t converted properly. We will patch this for the next version, but in the meantime, I would suggest trying to resolve the issue in the Media Library. Perhaps by reuploading the affected images (so they get a different ID)?
Anyway, thanks for reporting this to us!
Best,
Thanks for the response.
Do you have any suggestions in the best way to find the image ID in nextgen. I know how to find it in WP library.Rgds
I think I’ve narrowed it down a bit. The problem seems to be the second page of a specific gallery. Would an underscore at the beginning of a file name cause this? Or a dash in the file name?
What would be the best way to delete and re upload these? I can’t get to the page to edit it or delete. I tried deleting on the server but I suspect the database needs to be edited also?
Thanks
Hi @badknees,
I guess the NextGEN team would be the ones to answer this, but maybe you can simply deactivate ShortPixel temporarily so the error doesn’t show up? And then start from scratch: remove the gallery, reupload the files and recreate the gallery. And finally reactivate ShortPixel.
Let me know how that goes ??
Best,
I couldn’t find the reason why, but two images (out of 252) were causing the problem. I displayed 25 images at a time until I found the offending batch and then narrowed down to the two files. Deleting those files and reloading them did not fix the problem. Deleting just the the two and appending the file name (xxxx.jpg-2) and then uploading fixed the problem. All is well.
Thanks for the diagnosis and the suggestions
https://mirrormagic.com/bird-images-by-year/birds-of-2022/
-
This reply was modified 2 years, 7 months ago by
badknees.
My pleasure!
Have a good one ??
- The topic ‘Fatal Error after update to 5.0.8’ is closed to new replies.