Support » Plugin: Enable Media Replace » File gets updated, links in posts not

  • Resolved jsterr

    (@jsterr)


    The following errors appear in my error.log (/var/log/apache2/error.log)

    [Tue May 09 13:15:04.964356 2017] [:error] [pid 6977] [client x.x.x.x:62657] PHP Warning: mysqli_query(): Empty query in /var/www/XYZ/wp-includes/wp-db.php on line 1877, referer: http://XYZ/wp-admin/upload.php?page=enable-media-replace%2Fenable-media-replace.php&action=media_replace&attachment_id=6352&_wpnonce=a101c85e05

    If I replace a old file with a new one (second option) it replaces the file. So the files correct (no caching issues there). I can view the file with the link and the old file is deleted. But the plugin isn’t updating the Posts Content, so there is still the old link to the old file.

    I have been using the plugin daily since okt/16, haven’t had any issues jet and I can say, that it has nothing to do with caching and file permissions (file gets updated although!). Thank you very much for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’m very sorry, but I do not recognize that error at all, and I don’t think I’ve seen it reported before.

    It is possible that you have another plugin messing with the hook for metadata, which is probably what is happening here. Is this happening with every file or just with some?

    Thread Starter jsterr

    (@jsterr)

    Sometimes it is working, most of the time not. I cant say why it is working some times, and why it isn’t. I am testing with the same files over and over. But error log is full of this errors referring to the plugin, so I guess thats the point.

    root@sp2:/var/www/sp2# wp plugin list –allow-root
    +——————————+——–+——–+———+
    | name | status | update | version |
    +——————————+——–+——–+———+
    | active-directory-integration | active | none | 1.1.8 |
    | all-in-one-event-calendar | active | none | 2.5.19 |
    | contact-form-7 | active | none | 4.7 |
    | custom-sidebars | active | none | 3.0.5 |
    | display-widgets | active | none | 2.05 |
    | enable-media-replace | active | none | 3.0.6 |
    | ewww-image-optimizer | active | none | 3.3.1 |
    | loco-translate | active | none | 2.0.13 |
    | nextgen-gallery | active | none | 2.2.3 |
    | remove-widget-titles | active | none | 1.0 |
    | simple-history | active | none | 2.14.1 |
    | tinymce-advanced | active | none | 4.5.6 |
    | metronet-profile-picture | active | none | 1.4.3 |
    | wordpress-search-filename | active | none | |
    | wp-mail-smtp | active | none | 0.10.1 |
    | wp-extra-file-types | active | none | 0.4.0 |
    | wp-lightbox-2 | active | none | 3.0.6.2 |
    | wp-ulike | active | none | 2.5.1 |

    haven’t had any problems with these plugins. Although it works sometimes I guess it is a bug in the plugin not a basic problem.

    Thank you for you help.

    Thread Starter jsterr

    (@jsterr)

    Is there a way to COMPLETLY remove the plugin (including) database-tables? Perhaps it will help to deal with this problem.

    Thread Starter jsterr

    (@jsterr)

    I have rebooted server and installed latest os-updates (ubuntu 16.04) worked!!!

    Good to hear!

    I’ve only been using this app for a few days and experienced the same issue of post content not updating, but old image being removed and newly named image uploading correctly.

    It was only after finding this thread that i had the processes stop/started, but with no luck to this issue.

    At the moment my workaround is to run the replace app, and then copy/paste the image URL into another app called SEARCH REGEX. That app replaces all the old image links with the new link name – but for only one image at a time.

    It’s better than manually changing each entry, but would appreciate any advice on what else to try to have this link updating taking place within the 1 app.

    thx

    Matt

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘File gets updated, links in posts not’ is closed to new replies.