David
Forum Replies Created
-
Forum: Plugins
In reply to: [Zero Spam for WordPress] Few QuestionsGot it and it is working for me, thanks again!
Forum: Plugins
In reply to: [Zero Spam for WordPress] Few QuestionsI think I may have found an issue with the WP-CLI set command.
When I run a command that worked prior to the upgrade:
wp zerospam set –stop_forum_spam=enabled
I get the following:
Warning: Thewp zerospam setcommand has an invalid synopsis part: [–=]
Error: Parameter errors:
unknown –stop_forum_spam parameter
Thanks.Forum: Plugins
In reply to: [Zero Spam for WordPress] Few Questions@bmarshall511
Big thanks for taking the time to address and fix all of these! As well as the other form plugins and security hardening.
I’ll install the plugin update now and thanks again.Forum: Plugins
In reply to: [Stream] Certificate errors with added Stream trackerApologies, it seems it was another plugin that Stream’s HTML comment was attached to. Please ignore.
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Error with HandL UTM Grabber Version 2.7.27The WordPress – Site Health Status, now loads as expected. Thanks again.
Forum: Plugins
In reply to: [HandL UTM Grabber / Tracker] Error with HandL UTM Grabber Version 2.7.27Will do, thank you very much!
Forum: Plugins
In reply to: [Route ‑ Shipping Protection] Fatal Error after 2.2.15 updateForum: Plugins
In reply to: [Query Monitor] Last update 6 min ago dependency fail!!Crashed my site as well.
Forum: Plugins
In reply to: [SVG Support] Still getting fatal PHP error with 2.5.3It seems to be resolved for me as well. Thanks!
Forum: Plugins
In reply to: [SVG Support] Still getting fatal PHP error with 2.5.3@dwaynepivac Glad it helped you out.
Also, I want to add that PHP 7.4 as of a couple days ago, has been retired. So being compatible with PHP 8.+ would probably be a very good thing.
https://www.php.net/supported-versions.phpForum: Plugins
In reply to: [SVG Support] Still getting fatal PHP error with 2.5.3The error still exists in latest SVG Support v2.5.4.
PHP Notice: Trying to access array offset on value of type null in /var/www/example.com/wp-content/plugins/svg-support/functions/mime-types.php on line 22
Notice: Trying to access array offset on value of type null in /var/www/example.com/wp-content/plugins/svg-support/functions/mime-types.php on line 22While casting this value $allowed_roles_array = (array) $bodhi_svgs_options[‘restrict’]; to an array works. The problem is you’re attempting to fix an item in a global variable that is null (e.g. $bodhi_svgs_options).
So, I’m guessing you would want to verify your global is actually an array or just check for a $user->ID like @mabioneto did right after your global or both.
global $bodhi_svgs_options; if ( 0 === $user->ID || ! is_array( $bodhi_svgs_options ) ) { return $mimes; }Forum: Plugins
In reply to: [SVG Support] Still getting fatal PHP error with 2.5.3To Simplify where the error is occurring (line 28):
PHP Warning: array_intersect(): Expected parameter 1 to be an array, null given in /var/www/example.com/example_prod/wp-content/plugins/svg-support/functions/mime-types.php on line 28However, the problem is really with line 22.
When running WP-CLI, the variable $bodhi_svgs_options[‘restrict’] is null. And line 28’s array_intersect() parameter 1 is then null, which is throwing the error.For me I changed line 22 to actually check and set $allowed_roles_array properly.
Fix:
$allowed_roles_array = ( is_array( $bodhi_svgs_options ) && ! empty( $bodhi_svgs_options['restrict'] ) ) ? $bodhi_svgs_options['restrict'] : array();Additionally:
I commented out line 19 since its no longer doing anything.
e.g.
// $allowed_roles_array = array();After implementing the above code, I verified “SVG Support” doesn’t throw errors in WP-CLI and I verified as an admin that I was able to upload an SVG.
Hope this helps.
@wfphil
No I would not expect free support for a custom plugin. However, it would be nice if Wordfence in future considerations would expose specific methods for devs to build extensions/plugins for WP-CLI to access. Something like how UpdraftPlus in their __construct expose methods with add_action().e.g.
https://github.com/wp-plugins/updraftplus/blob/master/class-updraftplus.phpForum: Plugins
In reply to: [Redis Object Cache] Redis Object Cache 2.1.4 error@tillkruess Much appreciated!
Forum: Plugins
In reply to: [Redis Object Cache] Redis Object Cache 2.1.4 errorYou change it on line 284 of this file:
wp-content/plugins/redis-cache/includes/class-plugin.php