• Resolved notor

    (@notor)


    So I have a development site, a staging site, and a live site.

    I installed Easy Watermark on the development site. I enabled the ‘restore backup’ feature (it’s insane that it’s disabled by default, by the way) and watermarked my images. I can restore them all as well, everything works fine.

    Then I cloned the site over to the staging area. But now the restore watermark feature is broken. It still works on the Dev site but it doesn’t work on the Staging area site.

    Here’s what it looks like when I try to restore:

    /home4/devsite/public_html/wp-content/ew_backup/2015/01/image-0248.jpg

    Like, wtf? Why is it trying to restore from home4/devsite? We’re not in devsite anymore, we are in /somethingsomething/stagingsite/

    This plugin is like, 75% awesome. 25% DANGEROUS

    https://www.ads-software.com/plugins/easy-watermark/

Viewing 1 replies (of 1 total)
  • Plugin Author Wojtek Sza?kiewicz

    (@szaleq)

    Hello,

    That’s good you pointed this out. There is some logical error in the restoring function: after creating the backup copy of the watermarked file it saves the backed up filename in the post meta for the watermarked attachment. It’s unnessesary, since the backed up file has the same name as the original and the directories hierarchy is equal to the original attachments directory.

    Solution for you is simple: just use an sql query on the database in your staging area to simply change all the “/home4/devsite/public_html/” to “/staging/wordpress/directory/” or whatever in the wp_postmeta table
    (use the path on the server, not the domain since it’s all done on the server side)

    Please let me know if you can do this, or if you don’t know sql or have some problems I can prepare a precise instructions or even do it for you.

    Sorry for the problems, it will be simplified in the next version!

    Best Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Restore feature is quite broken’ is closed to new replies.