• Resolved mondalaci

    (@mondalaci)


    Enable Media Replace 4.1.0 breaks my site, guys. Can you reproduce it based on the following call stack?

    Fatal error: Uncaught Error: Call to a member function get_source_type_class() on null
    in /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/plugins/enable-media-replace/classes/external/wp-offload.php on line 327 Call stack: EnableMediaReplace\Externals\WPOffload::getMediaClass()
    wp-content/plugins/enable-media-replace/classes/external/wp-offload.php:219
    EnableMediaReplace\Externals\WPOffload::getSourceIDByURL()
    wp-content/plugins/enable-media-replace/classes/external/wp-offload.php:151
    EnableMediaReplace\Externals\WPOffload::checkIfOffloaded()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-content/plugins/shortpixel-image-optimiser/class/Model/File/FileModel.php:601
    ShortPixel\M\F\FileModel::UrlToPath()
    wp-content/plugins/shortpixel-image-optimiser/class/Model/File/FileModel.php:66
    ShortPixel\M\F\FileModel::__construct()
    wp-content/plugins/shortpixel-image-optimiser/class/Controller/FileSystemController.php:36
    ShortPixel\Controller\FileSystemController::getFile()
    wp-content/plugins/shortpixel-image-optimiser/class/front/img-to-picture-webp.php:441
    ShortPixel\ShortPixelImgToPictureWebp::getImageBase()
    wp-content/plugins/shortpixel-image-optimiser/class/front/img-to-picture-webp.php:161
    ShortPixel\ShortPixelImgToPictureWebp::convertImage()
    preg_replace_callback()
    wp-content/plugins/shortpixel-image-optimiser/class/front/img-to-picture-webp.php:33
    ShortPixel\ShortPixelImgToPictureWebp::convert()
    wp-content/plugins/shortpixel-image-optimiser/class/Controller/FrontController.php:64
    ShortPixel\Controller\FrontController::convertImgToPictureAddWebp()
    wp-includes/class-wp-hook.php:308
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-includes/post-template.php:255
    the_content()
    wp-content/themes/Avada/100-width.php:23
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()
    index.php:17
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi mondalaci,

    Thank you for your message. We’re sorry to hear about this problem. ??

    In order to help you troubleshoot this, it would be helpful if you could provide us with some additional information, including:

    • Screenshots or a screen recording that show the issue in action. If possible, please include relevant links as well.
    • Your site information. Please?navigate to?Tools?>?Site Health?>?Info,?click on the?“Copy site info to clipboard”?button and paste the information in your reply.
    • Exact steps to reproduce the issue.

    We look forward to working with you to resolve the issue.

    Best,

    Thread Starter mondalaci

    (@mondalaci)

    I simply have to visit the main page to reproduce the issue.

    wp-core
    
    version: 6.2
    site_language: en_US
    user_language: en_US
    timezone: Europe/Budapest
    permalink: /blog/%year%/%monthnum%/%day%/%postname%
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 10001
    dotorg_communication: true wp-paths-sizes wordpress_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress
    wordpress_size: 65.74 MB (68935750 bytes)
    uploads_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/uploads
    uploads_size: 4.03 GB (4324497563 bytes)
    themes_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/themes
    themes_size: 109.44 MB (114758241 bytes)
    plugins_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/plugins
    plugins_size: 443.58 MB (465127312 bytes)
    database_size: 579.33 MB (607475300 bytes)
    total_size: 5.20 GB (5580794166 bytes) wp-active-theme name: Avada-UHK (avada-uhk)
    version: 1.0.0
    author: ThemeFusion
    author_website: https://theme-fusion.com
    parent_theme: Avada (Avada)
    theme_features: core-block-patterns, fusion-builder-options, widgets-block-editor, post-thumbnails, title-tag, automatic-feed-links, custom-header, custom-background, woocommerce, wc-product-gallery-zoom, wc-product-gallery-slider, wc-product-gallery-lightbox, post-formats, fusion-builder-demos, menus, align-wide, wp-block-styles, editor-styles, editor-font-sizes, editor-color-palette, widgets
    theme_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/themes/avada-uhk wp-parent-theme name: Avada (Avada)
    version: 7.10.0
    author: ThemeFusion
    author_website: https://themeforest.net/user/ThemeFusion
    theme_path: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/themes/Avada wp-themes-inactive (6) Astra: version: 4.1.2, author: Brainstorm Force
    Hello Elementor: version: 2.7.1, author: Elementor Team
    Kadence: version: 1.1.35, author: Kadence WP
    OceanWP: version: 3.4.2, author: OceanWP
    Twenty Twenty-Three: version: 1.1, author: the WordPress team
    XStore: version: 9.0.5, author: 8theme wp-mu-plugins (1) Code Profiler (mu-plugin): version: 1.0, author: Jerome Bruandet wp-plugins-active (60) Activity Log: version: 2.8.5, author: Activity Log Team
    AddFunc Head & Footer Code: version: 2.3, author: AddFunc
    Aelia Currency Switcher for WooCommerce: version: 4.15.3.230306, author: Aelia
    Aelia Foundation Classes for WooCommerce: version: 2.4.1.230214, author: Aelia
    Aelia Tax Display by Country for WooCommerce: version: 1.15.10.210406, author: Aelia
    Akismet Anti-Spam: version: 5.1, author: Automattic
    Autoptimize: version: 3.1.6, author: Frank Goossens (futtta)
    Avada Builder: version: 3.10.0, author: ThemeFusion
    Avada Core: version: 5.10.0, author: ThemeFusion
    Cancelled / Failed Order Email for WooCommerce: version: 1.1, author: Patrick Posner
    Cloudflare: version: 4.11.0, author: Cloudflare, Inc.
    Code Profiler Pro: version: 1.6, author: Jerome Bruandet ~ NinTechNet Ltd.
    Disable Bloat for WordPress & WooCommerce: version: 3.2.1, author: Disable Bloat (latest version: 3.2.2)
    Disable Emojis (GDPR friendly): version: 1.7.4, author: Ryan Hellyer
    Disable Search: version: 2.0, author: Scott Reilly
    Duplicate Page: version: 4.5.1, author: mndpsingh287
    Elementor: version: 3.12.0, author: Elementor.com
    Elementor Pro: version: 3.12.0, author: Elementor.com
    Envato Market: version: 2.0.8, author: Envato
    File Upload Types: version: 1.3.0, author: WPForms
    Flexible Checkout Fields: version: 3.5.7, author: WP Desk
    Flexible Checkout Fields PRO: version: 3.5.4, author: WP Desk
    Integration for Szamlazz.hu & WooCommerce: version: 2.1.2, author: Viszt Péter
    Lazy Loader: version: 8.1.1, author: Florian Brinkmann
    Limit Login Attempts Reloaded: version: 2.25.14, author: Limit Login Attempts Reloaded
    mame Saferpay for WooCommerce: version: 1.4.0, author: mame webdesign hüttig
    Manage Notification E-mails: version: 1.8.4, author: Virgial Berveling
    MC4WP: Mailchimp for WordPress: version: 4.9.3, author: ibericode
    MC4WP: Mailchimp for WordPress Premium: version: 4.9.3, author: ibericode
    Meta Generator and Version Info Remover: version: 15.1, author: Pankaj Kumar Mondal
    Perfect Images (Media Replace ? Generate Thumbnails ? Image Sizes ? Optimize ? HighDPI): version: 6.4.1, author: Jordy Meow
    Query Monitor: version: 3.12.1, author: John Blackbourn
    Raw HTML: version: 1.6.4, author: Janis Elsts
    reCaptcha by BestWebSoft: version: 1.70, author: BestWebSoft
    Redirection: version: 5.3.9, author: John Godley (latest version: 5.3.10)
    Rollbar: version: 2.6.3, author: Rollbar
    Search Exclude: version: 1.3.1, author: QuadLayers
    Sequential Order Numbers for WooCommerce: version: 1.9.7, author: SkyVerge
    Ship to Different Address Unchecked for WooCommerce: version: 1.2, author: eCreations
    Shortcoder: version: 6.2, author: Aakash Chakravarthy
    ShortPixel Image Optimizer: version: 5.2.1, author: ShortPixel - Convert WebP/AVIF & Optimize Images
    Subscribe to Comments Reloaded: version: 220725, author: WPKube
    Test Payment Module for Woocommerce: version: 1.5, author: Sean Barton (Tortoise IT)
    UGL Customizations: version: 1.0.0, author: UGL
    UGL DHL Shipping: version: 1.0.0, author: UGL
    UGL Knowledgebase: version: 1.0.0, author: UGL
    Visual Product Configurator - Configurator on Product Page: version: 1.0.0, author: ORION
    Visual Products Configurator: version: 4.0, author: ORION
    Widget Context: version: 1.3.2, author: Kaspars Dambis
    WooCommerce: version: 7.5.1, author: Automattic
    WooCommerce Attribute Swatches by Iconic: version: 1.14.2, author: Iconic [email protected]
    WooCommerce EU VAT Number: version: 2.8.2, author: WooCommerce
    WooCommerce Nested Category Layout: version: 1.18.1, author: SkyVerge
    WooCommerce Product Configurator by Iconic: version: 1.8.7, author: Iconic
    WP Fastest Cache: version: 1.1.2, author: Emre Vona
    WP Mail Logging: version: 1.11.0, author: WP Mail Logging Team
    WP Mail SMTP Pro: version: 3.7.0, author: WPForms
    WP Revision Master: version: 1.0.2, author: Md. Hasan Shahriar
    WPS Hide Login: version: 1.9.8, author: WPServeur, NicolasKulka, wpformation
    wpuntexturize: version: 2.2, author: Scott Reilly wp-plugins-inactive (2) Enable Media Replace: version: 4.1.0, author: ShortPixel
    XStore Core: version: 4.3.9, author: 8theme wp-media image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: File uploads is turned off
    post_max_size: 8M
    upload_max_filesize: 92M
    max_effective_size: 8 MB
    max_file_uploads: 20
    gd_version: 2.3.3
    gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
    ghostscript_version: 9.55.0 wp-server server_architecture: Linux 5.15.0-67-generic x86_64
    httpd_software: nginx/1.18.0
    php_version: 8.1.17 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 1000
    time_limit: 0
    memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 92M
    php_post_max_size: 8M
    curl_version: 7.81.0 OpenSSL/3.0.2
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true wp-database extension: mysqli
    server_version: 8.0.32-0ubuntu0.22.04.2
    client_version: mysqlnd 8.1.17
    max_allowed_packet: 67108864
    max_connections: 151 wp-constants WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content
    WP_PLUGIN_DIR: /home/laci/projects/ultimatehackingkeyboard.com/wordpress/wp-content/plugins
    WP_MEMORY_LIMIT: 256M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    DB_CHARSET: utf8
    DB_COLLATE: undefined wp-filesystem wordpress: writable
    wp-content: not writable
    uploads: not writable
    plugins: not writable
    themes: not writable
    mu-plugins: not writable wp_mail_smtp version: 3.7.0
    license_key_type: pro
    debug: No debug notices found.
    pro_install_date: Oct 12, 2022 @ 4:34pm
    email_log_entries: 124

    I have the same issue… the latest update broke all the admin pages display… (they all render as empty pages)… disabling the plug-in corrects the problem, so clearly the update broke something!

    The site itself is fine, it’s just the backend that is affected…

    Plugin Support Gerard Blanco

    (@sixaxis)

    @mondalaci I’m trying to reproduce the issue in the same conditions but from my side everything is working well. Can you perhaps deactivate all plugins except Enable Media Replace and tell me if the error is still there? If not, can you activate each plugin one by one until you find the conflicting one?

    @bluebearmedia I’d appreciate it if you could open a new thread for your particular issue. This way we can assist you better ??

    Plugin Author Pedro

    (@petredobrescu)

    hello @mondalaci, I have a few questions, since your Site Heath Info drew my attention on a few points:

    • file_uploads: File uploads is turned off –> is this done on purpose? if the file_uploads is turned off, how could our plugin work?
    • except for the WordPress files, all the rest are not-writable, from what I can see below, is that on purpose?:
      wordpress: writable
      wp-content: not writable
      uploads: not writable
      plugins: not writable
      themes: not writable
      mu-plugins: not writable
    • have you used it before, or are you using now any kind of image offloading service?

    These answers will help us pin-point the issue and hopefully reproduce it somehow.

    @bluebearmedia can you please tell us if you have used before, or are you using now any kind of image offloading service?

    Thank you!

    • This reply was modified 1 year, 7 months ago by Pedro. Reason: updated formatting
    Thread Starter mondalaci

    (@mondalaci)

    As it turns out, disabling the ShortPixel Image Optimizer plugin makes the issue not surface.

    I’d rather wait whether you can reproduce the issue based on my finding until I provide further information because it can be time consuming to share further details.

    Plugin Author Pedro

    (@petredobrescu)

    Hello @mondalaci @bluebearmedia,

    Can you please install the version below on top of the existing 4.1.0 version (go to Plugins -> Add New -> Upload, then select the zip downloaded from the link below):

    https://shortpixel.com/downloads/enable-media-replace-4.1.1-DEV01.zip

    Please let me know if this fixes the error you reported below.

    Thanks, I look forward to getting your confirmation!

    Thread Starter mondalaci

    (@mondalaci)

    The new version doesn’t break my site anymore.

    Plugin Author Pedro

    (@petredobrescu)

    Thanks for the confirmation @mondalaci, version 4.1.1 was just released earlier, so please update to that version.

    Thank you for your patience!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Enable Media Replace 4.1.0 breaks my site’ is closed to new replies.