Forum Replies Created

Viewing 15 replies - 1 through 15 (of 54 total)
  • I had a look at the code. You can achieve this easily by not putting the variables in global scope but in a function scope.

    Hi,

    Some feedback after doing a short audit for including it in our page.

    (1) Where did you get minify_js from? I just spotted several bugs looking at the source code.

    (2) You are polluting the global scope a lot with JS variables (mapTiles, …) which can lead to plugin conflicts that are really hard to debug

    (3) I suggest you move the auto-generated JS code to a separate JS file. In that file, you define a JS function (e.g. output_events_map(settings)). In your PHP code, you only generate a short script that calls that function:
    echo ‘<script>output_events_map(‘ . json_encode($settings) . ‘)</script>’;

    Other than that, it is a great plugin 😉

    Plugin Author Michael Zangl

    (@michaelzangl)

    Hi,

    Sorry for the late reply. The problem was more difficult to track than I initially thought. It was a conflict in the JS code of both plugins. I resolved it on side of the add-watermark plugin, so after an update to 2.0.2 it should work. Can you test?

    Michael

    Plugin Author Michael Zangl

    (@michaelzangl)

    Hi,

    Can you tell me which plugin exactly you are using (there are many pagebuilder plugins for wordpress) and which error message you are getting / what functionality you are missing?

    I can then look into it tomorrow.

    Michael

    Plugin Author Michael Zangl

    (@michaelzangl)

    Problems like this depend on your setup/server type.

    A fix will probably not be available as long as people that encounter issues confuse the “review” section with the “support” section.

    (and you should not confuse your production and testing site either)

    Plugin Author Michael Zangl

    (@michaelzangl)

    The plugin seems to have had a problem with the deactivation hooks (not fireing in some configs). Now it should be fixed – so if anyone else has the problem: Update to current version first, activate plugin, then deactivate the plugin again and/or uninstall.

    Plugin Author Michael Zangl

    (@michaelzangl)

    The basic idea is that once the plugin is activated, only the first user viewing an image (that is you browsing the website) will notice. After that, images will load from a watermark cache. Most of the time, this first user will be you checking if everything looks correctly 😉

    Plugin Author Michael Zangl

    (@michaelzangl)

    The cache should not be a problem, but the .htaccess file in the upload directory.

    To fix, follow the steps in ‘Manual uninstall’:

    https://wordpress.org/plugins/add-watermark/#installation

    Plugin Author Michael Zangl

    (@michaelzangl)

    If the file is not deleted and the plugin is deleted, uploading new pictures might cause those pictures not to be displayed. So I’d suggest to either remove the file manually or leave the plugin avtive (but set watermarks to disabled on default) so that it will pick up new files correctly and flag them for the server to just serve. It should not cause any performance impact.

    I’ll look into the problem and test why this file was not deleted upon plugin deactivation.

    Plugin Author Michael Zangl

    (@michaelzangl)

    There seems to be a problem removing the .htaccess-Rules the plugin installed to intercept image requests.

    You can try removing /wp-content/uploads/.htaccess on the server file system, this should fix it.

    Plugin Author Michael Zangl

    (@michaelzangl)

    No, not true.

    It is actively deployed on several sites, some of which I maintain professionally.

    It did not use any experimental API, so it did not break. I’m just not updating the compatibility field, since this would be a lot of work.

    Plugin Author Michael Zangl

    (@michaelzangl)

    The $_SERVER['DOCUMENT_ROOT'] seems to be wrong then.

    The github repo is a bit out of date:
    https://github.com/michaelzangl/add-watermark

    I’m working on the wordpress svn for now. But you can post the patch here, if you find a solution that works across other hosters.

    Plugin Author Michael Zangl

    (@michaelzangl)

    I guess that /home/content/x/x/html/ points to http://…/ and is your wordpress-root.

    So your files are in:

    /home/content/x/x/html/wp-content/uploads/ and end with .jpg, .jpeg or .png

    And your cached files are in:
    /home/content/x/x/html/wp-content/plugins/add-watermark/cache/
    with the same directory structure.

    This is odd. I don’t see a problem with the htaccess file. You can try replacing the // with a /, but it should not make that much of a difference.

    Is your server using apache2? Are there any odd server configurations?

    If you have access to the server configuration for that vhost, you can add: LogLevel warn mod_rewrite.c:trace4 to get a detailed trace of what mod_rewrite is searching for and why it is not using that cached image.

    An other solution might be to add Options -Multiviews to the beginning of the .htaccess file.

    Plugin Author Michael Zangl

    (@michaelzangl)

    I did not have time to look into it. My first guess was a problem with the write permissions for that directory. But since this is not a problem, there might be a problem with your servers mod_rewrite.

    It is hard to debug what mod_rewrite does. I guess GoDaddy does not allow you to change any configuration files. This script is tested on 1und1 hosting and some other hosters.

    What you can do to check if the cache is used: Load a image (only the image), then change something in the plugin to make it not compile (just add some garbage at the end of the file), then load that image again. If you see the error, we can try to debug the .htaccess-End. If you don’t, your hoster is slowing down requests that got redirected by .htaccess and there is nothing we can do (which I have not experienced for now)

    For the .htaccess-Problems: It could be possible that the base directory of your hosting is not detected correctly. Can you have a look into the .htaccess-file that is generated and see if the f-Rule has the correct directory specified?

    Plugin Author Michael Zangl

    (@michaelzangl)

    Hi,

    Can you have a look in the plugin directory:
    /wp-content/plugins/add-watermark

    There should be a directory named cache. Are there files in that directory?

Viewing 15 replies - 1 through 15 (of 54 total)