Hi @yolandal,
1) Please confirm you are using Checklists 2.5.3.
2) In addition, does the issue happens with a particular post type?
3) Are there any items in red in the checklist box of the post edit?
Regards
Hi Htmgarcia,
1. Yes, I’m using 2.5.3.
2. No, it happens with all kind of posts, concept and from publish to concept.
3. The Publish button works correct when all checks are green. But in the previous version that could be overruled, with keeping the warning sign on the Publish button.
I hope this helps to fix the issue!
Thank you
Thanks @yolandal! Unfortunately I’m not able to reproduce in my end.
Which PHP version are you using?
In addition and is possible for you, please try commenting or removing the code below from https://www.yory.nl/wp-content/plugins/publishpress-checklists/modules/checklists/assets/js/meta-box.js
if (PP_Checklists.is_gutenberg_active() && PP_Checklists.is_published() !== true) {
$(document).on(PP_Checklists.EVENT_TIC, function (event) {
var has_unchecked_block = $('#pp-checklists-req-box').children('.status-no.pp-checklists-block');
if (has_unchecked_block.length > 0) {
wp.data.dispatch( 'core/editor' ).lockPostSaving( 'ppcPublishButton' );
} else {
wp.data.dispatch( 'core/editor' ).unlockPostSaving( 'ppcPublishButton' );
}
});
}
Then refresh, clear cache and see if the issue is gone.
Regards
I’m using PHP-versie: 7.4.24
I’ve commented the code, and it seems that works!!!
I hope it won’t be overruled after a next update?
Thanks!
Yolanda
Thanks for the confirmation @yolandal !
Hello again,
Sorry to mention that the problem is back. The publish button is greyed out.
I’ve copied the code again and want to edit it to my snippets plugin.
But I’m getting a PHP error message now.
What can be the solution to fix this also after future updates?
Thank you,
Yolanda, NL
Hi @yolandal,
may you try the same solution in the meanwhile: https://wordpress.org/support/topic/last-update-disables-the-publish-button-2/#post-15100415
This issue is in our to-do list, however is tricky to even reproduce.
Regards
Hello,
Yes, the thread you link to is a thread I started.
I’ve done this solution again, but I’m sure it will be overwritten at a next update.
if you want I can give you an admin account to check my plugins and you can investigate etc?
But if so, please don’t change the theme!
Thank you!
And besides this bug, I really LOVE the Checklist plugin 🙂
Yolanda, NL
Hi @yolandal
That is a service we provide for our Checklists Pro members.
However, even if wanted to, asking for admin access is banned here on WordPress.org.
Hello Steve,
Just to notify you: Unfortunately the problem is back again, and the workaround mentioned earlier is not working anymore.
Can you help out?
Thank you,
Yolanda, NL
-
This reply was modified 4 years, 1 month ago by
yolandal.
-
This reply was modified 4 years, 1 month ago by
yolandal.