adaddario
Forum Replies Created
-
Hi steve!
I tested the beta right now, seems OK, and working right!
All the problems I was having, seems gone!Appreciate the better translation inside the post full edit page!
Thanks!
Wonderful!
I’m very happy to have helped even a little with the fix!
Thanks for advising me about the new release! ??Thanks!
Take note that the code in the last comment, is just the code on line 841 in the file ‘post-expirator.php’ contained in ‘\wp-content\plugins\post-expirator’, so it’s the code already present in the plugin.
What we’ve done is just do a bypass in the IF statement, to resolve momentarily the problem, inserting the ” || true ” inside the IF, since the IF was always returning FALSE and we dont know the reason, but looking at our site it shouldnt.
Maybe the IF is correct doing it wrong, because the logic is wrong. We dont know, we just know that the result shoukd be true and not false.
We wait the fix, in the next release.
Have a nice day!if ( ! isset( $categoryTaxonomy ) || $categoryTaxonomy === ‘category’ ) {}
this is the check that returns false, whatever action we do using categories in expiration settings.
elseif ( $expireType === ‘category-add’ )
{
if ( ! empty( $category ) )
{
if ( ! isset( $categoryTaxonomy ) || $categoryTaxonomy === ‘category’ || true)ISSUE UPDATE:
We found that the problem is the IF wrote on line 841 in the file ‘post-expirator.php’ contained in ‘\wp-content\plugins\post-expirator’.
the IF statement return FALSE, and I dont know why. The category is created via the category settings inside the section “posts > categories”.
Forcing TRUE in that IF, everything works as it should.
We tested the plugin on a new enviroptment and the result is the same, with the same error.
We also tried logging errors generated from PHP / WP, and the only errors logged are these, and doesnt look relevant to the problem, just a random error.LOG:
[29-Oct-2021 08:47:10 UTC] PHP Warning: require_once(C:\xampp\htdocs\wordpress\wp-content\plugins\post-expirator\classes/post-expirator-debug.php): failed to open stream: No such file or directory in C:\xampp\htdocs\wordpress\wp-content\plugins\post-expirator\classes\Display.class.php on line 131
[29-Oct-2021 08:47:10 UTC] PHP Fatal error: require_once(): Failed opening required ‘C:\xampp\htdocs\wordpress\wp-content\plugins\post-expirator\classes/post-expirator-debug.php’ (include_path=’C:\xampp\php\PEAR’) in C:\xampp\htdocs\wordpress\wp-content\plugins\post-expirator\classes\Display.class.php on line 131I’m here for some solutions, or tips.
Thanks.
Hi @shawfactor I saw the comment only now…
I’m always running the latest version of WordPress on my website.
I will try doing a downgrade of the PHP version on my website, hope this can fix, thanks @sirtheta!