nicearma
Forum Replies Created
-
Forum: Reviews
In reply to: [Ultimate media cleaner] No way possible to use this pluginI will try to make some abstraction about how you write your review, and i will say that i will add one backup system with this plugin, but there are good backup system plugin out there.
I put a lot of warnings to help people like you to understand about the risk of using this plugin without any bits of knowledge, so yes delete this plugin if you don’t know what are you doing, this plugin is not for simple minds 😉
I don’t know what are you seeing about the PRO version.. it seems that the word are not the best to explain what the pro version will do, the UNDOS buttons are only to delete it from the list, not revert them if you already delete the file/image (I will try change the text, to add a better one)
For the moment the PRO version, i only add the ideas that i will put in the pro version, is not public yet, so I don’t know about your comment “unless you get the paid version”, for the PRO version I will add only “nice to have” (like remove from the list all image/files, and not one by one like the free version), in the free version (wp) you will have “need to have”
I think this this plugin is like “one-shot usage”, so in my mind, you should do:
In only one day (you can take one day without making news post or page, to make this maintenance activity )
* Make one backup of your site
* Add one test post or page with test images/files
* See if the plugin is working and detecting the images/file are used
* Delete the unused test files or images
* See if the test post or page is working as it should
* If the plugin is working for this test, go with some productions post and page (like the oldest or the least viewed posts or pages)
* See if the plugin is working and detecting the images/file are used
* Delete the unused files or imagesYou have two possible result: Working, not working
Working
* Keep going with other images and files, but trying to see if your site still working
* Delete all unused files/images
* Normally your site is free of unused files, so you can delete and forget about the pluginNot working
* restore your site from the backup system
* Delete the plugin
* Find another pluginForum: Plugins
In reply to: [License Manager for WooCommerce] Add post for activateAnd i don’t understand something about the code https://www.licensemanager.at/docs/tutorials-how-to/rest-api/validating-custom-request-data
Where i will add the UUID in the database? where i will call the lmfwc_add_license_meta ?
In your example you added the UUID, but when you saved the UUID? If i made at the verification phase i will have some problems, because if i’m at the max of my activation size, and i added in the verification, i will get fail, but if i check the licence it will be good.
This is the code i’m trying to do, but with URL and not with UUID (but is the same problem, where you call the save meta function?)
<?php /** * Plugin Name: licence manager url validator * Description: licence manager url validator */ function lmfwc_add_activate_check_url($result, $server, $request) { // Not our route, nothing to do... if (strpos($request->get_route(), '/lmfwc/v2/licenses/activate') === false) { return true; } // The request body was empty, or the "uuid" property is missing. if (!$request->params || !array_key_exists('url', $request->params)) { return new WP_Error( 'lmfwc_rest_data_error', 'The URL is missing from the request.', array('status' => 400) ); } // Obtain the license key from the request URL $licenseKey = explode('/lmfwc/v2/licenses/activate/', $request->get_route())[1]; // Retrieve the license object $license = lmfwc_get_license($licenseKey); // The license was not found if (!$license) { return new WP_Error( 'lmfwc_rest_validation_error', 'The license was not found.', array('status' => 404) ); } // Check if the license key already has this UUID $previousActivation = lmfwc_get_license_meta($license->getId(), 'activation_url'); $url = $request->params['url']; // Throw an error if that's the case if ($previousActivation && in_array($url, $previousActivation)) { return new WP_Error( 'lmfwc_rest_validation_error', 'The license was already activated using this URL.', array('status' => 403) ); } // TODO: validate number of licence available lmfwc_add_license_meta($license->getId(), 'activation_url', $url); // Hasn't been used before, proceed return true; } add_filter('lmfwc_rest_api_validation', 'lmfwc_add_activate_check_url', 11, 3); function lmfwc_validate_check_url($result, $server, $request) { if (strpos($request->get_route(), '/lmfwc/v2/licenses/validate') === false) { return true; } if (!$request->params || !array_key_exists('url', $request->params)) { return new WP_Error( 'lmfwc_rest_data_error', 'The URL is missing from the request.', array('status' => 400) ); } $url = $request->params['url']; // Obtain the license key from the request URL $licenseKey = explode('/lmfwc/v2/licenses/validate/', $request->get_route())[1]; $license = lmfwc_get_license($licenseKey); // The license was not found if (!$license) { return new WP_Error( 'lmfwc_rest_validation_error', 'The license was not found.', array('status' => 404) ); } $previousActivation = lmfwc_get_license_meta($license->getId(), 'activation_url', true); if ($previousActivation && $previousActivation !== $url) { return new WP_Error( 'lmfwc_rest_validation_error', 'The license is not for this site URL.', array('status' => 403) ); } return true; } add_filter('lmfwc_rest_api_validation', 'lmfwc_tutorial_check_url', 10, 3);- This reply was modified 4 years, 10 months ago by nicearma.
Forum: Plugins
In reply to: [DNUI] A little note from the main devThis plugin will not longer be maintained, but you can find the new dev at https://ww.wp.xz.cn/plugins/ultimate-media-cleaner/ i’m working to add all the missing and new features
Forum: Plugins
In reply to: [Ultimate media cleaner] Show errorHelo @ramonjosegn,
I read about php versions and WP stats, i found that php 5.6 is the more used version, i downgrade the version to php 5.6, so probably the plugin will work for you now
Forum: Plugins
In reply to: [Ultimate media cleaner] Show errorHello @ramonjosegn,
I have to test it, but probably you are using PHP 5.x, i used some cool feature of PHP 7 (like typing), like i said i will test it in one PHP 5 install and add some better message to this kind of error.
https://ww.wp.xz.cn/about/requirements/
- This reply was modified 8 years, 4 months ago by nicearma.
Forum: Reviews
In reply to: [DNUI] big mess i lost all pictures !!!Sorry to see that this happen to you, did you fallow the recommendation? ALWAYS MAKE BACKUPS before extendsuse of DNUI (this and others DNUI plugin like have the same rule and recommendation)
Forum: Plugins
In reply to: [DNUI] Deleting Images vs. Different SizesHello,
DNUI will delete all unused image, but if you have one image size used, but not the original, DNUI will delete the other size, and keep the used size and the original unused image (maybe is used by onClick function call, like galleries)
Forum: Plugins
In reply to: [DNUI] Not working in WP 4.7I have two ideas:
1. You probably have securities configurations at you server, DNUI use a lots of Ajax call (but a lots) at it seem that your server doesn’t like it.
2. Another problem it that this call are for the DNUI PRO, so if you DNUI WP version and PRO at the same folder, you can have this kind of problem (you can use the official channel for the DNUI PRO, because i can not help you about the version PRO here, WP RULES)
Forum: Plugins
In reply to: [DNUI] Deleting Original Unused Images From Pages Concern!Hello,
the original image concept is about wp handle upload images, the original label is for the “original image” uploaded, and the other size label are the image size made by WP, so if you have “hola.png2 and you upload this one today 08/01/2017 to wp site, you will get at your folder wp-upload/2017/01/08 the hola.png image and hola_200x200.png hola_100x100.png (the number and label can change)
If you use DNUI the hola.png will be the original image and the others hola_size.png will be the sized image.
So i will never going to give you the right to delete the original image if one of the size are used, why? because you will lose the real image,
Maybe you really want to delete the original image and lost it, but if i do this i can really mess with WP logic and i have to be really careful about the logic (so to much problem for add this logic). You can change wp configuration and disable image size, this way you upload image will used by default at your post and pages (theme are other history)
Forum: Plugins
In reply to: [DNUI] Delete all button?Hello @wpcam, you have the delete all button in this version, but if you want something like scan and delete all and repeat, you have the PRO version (i can not speak here about it, WP rules)
Forum: Plugins
In reply to: [DNUI] Not working in WP 4.7Hello asle,
It seem that chrome-extension://mlomiejdfkolichcflejclcbmpeaniij is the “Extension
Ghostery” so try to open in another browser without Ghostery or simple try it with out Ghostery active. I test the plugin with WP 4.7 at seem to work okForum: Reviews
In reply to: [DNUI] Sadly, this didn’t workHello, you have right in one thing, the debug system is hard to understand (you have the log tab with all the call and returns, so you can understand what is calling, is more for advance user)
I recall you that WP have their own way to debug, so if you really want to debug and understand what is going on in your own WP site (the plugin work fine, but other plugin can add exceptions, and make this plugin work weird). You can see https://codex.ww.wp.xz.cn/Debugging_in_WordPress.
In the next version i will try to add other better way to debug and understand what is going on and way the plugin is failing.
Forum: Plugins
In reply to: [DNUI] Error, please see the console or the debug tabI reopen the ticket, this problem probably is about other plugin changing the way WP work, somebody have to share their plugin list to test do my own test
Forum: Plugins
In reply to: [DNUI] Possible to ignore specific images? + request for ACF compatibilityHello, i can’t speak about the pro version here. For the pro version you can contact me by the contact form at https://apps.nicearma.com/contact/ (i think this link is not against the WP rules)
For the moment you can not exclude all size from one image, you can select and ignore the size from the option size list. This can be a nice feature i will try to see if i can add this.
For the ACF compatibility i have to study how it work and see if i can do it, i’m working/making a web crawler, that will craw all your site and give the opportunity to aks if X file/image is at the final generate code, this way DNUI will be compatible with all plugins and themes
Forum: Plugins
In reply to: [DNUI] Do not delete any imageAny news about this problem?