coriolis_too
Forum Replies Created
-
Hi,
in “class.fpc-category-list.php”, line 73, you pass the argument “strict” to in_array, but you compare an int to a string.
Changing
<input type="checkbox" class="fpc-category" value="<?php echo (int) $category->term_id; ?>" <?php checked( in_array( $category->term_id, $values, true ) ); ?> />
to
<input type="checkbox" class="fpc-category" value="<?php echo (int) $category->term_id; ?>" <?php checked( in_array( $category->term_id, $values, false ) ); ?> />
categories are correctly checked when you return to the settings page.
Tested with WP 5.9.1, PHP 7.4
First, if I want to reinstall a new version of the plugin with the same version number 5.118, I need to do it manually.
Second, even if the version if different, it doesn’t work for me. Half of my WordPress are still using 5.117.1 and there’s no update button on the dashboard for these sites. And the website’s plugin page doesn’t propose an update.
I’ll open a ticket when I have some time.
Perfect, it works.
If you can release a new version, manually updating 20 sites is time consuming.
Thanks.
The new version has still the same error (and has still version 5.118)
Forum: Plugins
In reply to: [Spam protection, Anti-Spam, FireWall by CleanTalk] fatal error on updatingSame here.
the ip__v6_normalize function is defined with an utf8 char as the last ‘e’.
I’ve corrected the error by opening the file
cleantalk-spam-protect/lib/CleantalkHelper.phpsearch for ip__v6_normaliz (without the final e), select the complete name and
replace with ip__v6_normalizedo it for all occurences of ip__v6_normalize
I might work, and it’s more or less the same as my fix, so I wont replace the file.
But thanks for the quick response!
I have v2.61 and I still have this error. I made a fix to solve this:
Around line 72: replace
<?php if(count($imags_urls) > 0) { foreach($imags_urls
by
<?php if((is_array($imags_urls)) && (count($imags_urls) > 0)) { foreach($imags_urls
The fix you provided incorrectly uses “in_array”, did you mean “is_array” ??
Thanks, I’m glad you found the problem.
Stephan