• Resolved Nick

    (@nicknoordijk)


    When replacing it shows a fatal error. This is what I got in my email. 
    
    
    
    WordPress version 6.2
    Current plugin: Enable Media Replace (version 4.1.1)
    PHP version 7.4.33
    
    Error Details
    
    An error of type E_ERROR was caused in line 191 of the file /wp-content/plugins/enable-media-replace/classes/external/wp-offload.php. Error message: Uncaught Error: Call to a member function original_path() on bool in /wp-content/plugins/enable-media-replace/classes/external/wp-offload.php:191
    Stack trace:
    
    0 /wp-includes/class-wp-hook.php(308): EnableMediaReplace\Externals\WPOffload->updateOriginalPath()
    
    1 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    2 /wp-includes/plugin.php(517): WP_Hook->do_action()
    
    3 /wp-content/plugins/enable-media-replace/classes/Controller/ReplaceController.php(264): do_action()
    
    4 /wp-content/plugins/enable-media-replace/classes/ViewController/UploadViewController.php(87): EnableMediaReplace\Controller\ReplaceController->run()
    
    5 /wp-content/plugins/enable-media-replace/classes/emr-plugin.php(235): EnableMediaReplace\ViewController\UploadViewController->load()
    
    6 /wp-includes/class-wp-hook.php(308): EnableMediaReplace\EnableMediaReplacePlugin->route()
    
    7 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    8 /wp-includes/plugin.php(517): WP_Hook->do_action()
    
    9 /wp-admin/admin.php(259): do_action()
Viewing 7 replies - 1 through 7 (of 7 total)
  • Getting an error as well that started today. Replaces the media but on the success page (that normally comes up) it says a fatal error occurred. This is in the logs.

    Fatal error: Uncaught Error: Call to a member function original_path() on bool in /var/web/site/public_html/wp-content/plugins/enable-media-replace/classes/external/wp-offload.php:191

    PHP Stacktrace:

    – undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined- undefined/var/web/site/public_html/wp-includes/class-wp-hook.php(308): EnableMediaReplace\Externals\WPOffload->updateOriginalPath(‘https://40k.gal…’, ‘https://artwork…’, 76815)/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)/var/web/site/public_html/wp-content/plugins/enable-media-replace/classes/Controller/ReplaceController.php(264): do_action(‘enable-media-re…’, ‘https://40k.gal…’, ‘https://artwork…’, 76815)/var/web/site/public_html/wp-content/plugins/enable-media-replace/classes/ViewController/UploadViewController.php(87): EnableMediaReplace\Controller\ReplaceController->run()/var/web/site/public_html/wp-content/plugins/enable-media-replace/classes/emr-plugin.php(235): EnableMediaReplace\ViewController\UploadViewController->load()/var/web/site/public_html/wp-includes/class-wp-hook.php(308): EnableMediaReplace\EnableMediaReplacePlugin->route(”)/var/web/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)/var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)/var/web/site/public_html/wp-admin/admin.php(259): do_action(‘media_page_enab…’)/var/web/site/public_html/wp-admin/upload.php(10): require_once(‘/var/web/site/p…’){main} thrown in /var/web/site/public_html/wp-content/plugins/enable-media-replace/classes/external/wp-offload.php on line 191

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi guys,

    Would you mind sending us your technical information? It’s on Tools > Info and then copy the site info to the clipboard.

    Also, have you used or are you using now any kind of image offloading service?

    Thank you!

    Thread Starter Nick

    (@nicknoordijk)

    @ecogmedia The above isn’t correct. It’s in Tools > Site Health > Info

    Can I do this in a protected area? I don’t want to put all information on a public page.

    Yes, I’m using WP Offload Media. The replacing has been working okay until the last upload.

    @sixaxis are you wanting the list of plugins?

    I have been using WP Offload Media for awhile now (at least over a year) and working great with Replace Media until just yesterday. I’ve disabled and re-enabled Replace Media with no change. Deleted and reinstalled Replace Media and no change.

    Plugin Author Pedro

    (@petredobrescu)

    Hello @nicknoordijk @ecogmedia,

    I’m sorry to hear that the last version of the plugin isn’t working properly on your sites. Can you please test the version below, by uploading it on top of version 4.1.1 (from Plugins -> Add New -> Upload):

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

    Thanks, I look forward to getting your confirmation about this!

    It appears to be working for me now, thanks.

    Plugin Author Pedro

    (@petredobrescu)

    Thanks for the confirmation @ecogmedia @nicknoordijk. Version 4.1.2 containing the necessary fix for this error has just been released, so feel free to update to this version.

    Please open a new thread if/when you spot new issues!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal error when replacing media’ is closed to new replies.