• Resolved bhkh

    (@bhkh)


    I am trying to build my own custom checklist from the following repository: https://github.com/publishpress/PublishPress-Checklist-Plugin-Bootstrap referenced on this page: https://publishpress.com/knowledge-base/custom-requirements-plugin/

    However when I try to install and activate this bootstrap plugin, I get the error:

    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    Learn more about troubleshooting WordPress.

    I turned on debugging and this is the error:

    Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class "PublishPressChecklistsBootstrap\Addon" not found in /home/sftp_user/mysite.com/staging/wp-includes/class-wp-hook.php:324 Stack trace: #0 /home/sftp_user/mysite.com/staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #1 /home/sftp_user/mysite.com/staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #2 /home/sftp_user/mysite.com/staging/wp-content/plugins/publishpress-checklists/modules/checklists/checklists.php(456): do_action('publishpress_ch...') #3 /home/sftp_user/mysite.com/staging/wp-content/plugins/publishpress-checklists/core/Legacy/LegacyPlugin.php(72): PPCH_Checklists->init() #4 /home/sftp_user/mysite.com/staging/wp-includes/class-wp-hook.php(324): PublishPress\Checklists\Core\Legacy\LegacyPlugin->init('') #5 /home/sftp_user/mysite.com/staging/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /home/sftp_user/mysite.com/staging/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/sftp_user/mysite.com/staging/wp-settings.php(727): do_action('init') #8 /home/sftp_user/mysite.com/staging/wp-config.php(140): require_once('/home/daily_t94...') #9 /home/sftp_user/mysite.com/staging/wp-load.php(50): require_once('/home/daily_t94...') #10 /home/sftp_user/mysite.com/staging/wp-admin/admin.php(35): require_once('/home/daily_t94...') #11 /home/sftp_user/mysite.com/staging/wp-admin/plugins.php(10): require_once('/home/daily_t94...') #12 {main} thrown in /home/sftp_user/mysite.com/staging/wp-includes/class-wp-hook.php on line 324

    I do have the main checklist plugin installed by publishpress (been using it for years!)

    I disabled all plugins besides your publishpress-checklists plugin to make sure it wasn’t a conflict. I also changed my theme to TwentyTwentyFive.

    Is your bootstrap plugin on github out of date? What else should I do to troubleshoot?

    (BTW, once I get your template to work my plan is to create a plugin that requires the publication time to be 5:30 am)

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Riza Maulana Ardiyanto

    (@rizaardiyanto)

    Hi @bhkh

    Thanks for your question.

    You need to update the composer first:

    composer update --no-dev

    Let me know if the issue persists

    Thread Starter bhkh

    (@bhkh)

    hello! Thanks for the help!

    I have no idea what “update the composer” means. Is that a command I issue on my local machine to do something with the local copy of the repo?

    Plugin Author Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @bhkh Ah, I should explain it in a better way.

    This GitHub repo: https://github.com/publishpress/PublishPress-Checklist-Plugin-Bootstrap is not a ready-to-use plugin, and instead a skeleton if you want to create custom plugin extending PublishPress Checklists.

    Part of extending it is by clone the repo locally, then run:

    composer update --no-dev

    Composer is a dependency manager for PHP. This is the official website: https://getcomposer.org/

    Do you have experience in coding with PHP?

    Thread Starter bhkh

    (@bhkh)

    Oh, very sorry! I didn’t read all of the instructions. I am familiar with js development but not PHP in this way. I will work on it though.

    It would be great if there was a library of other checks. Your plugin is so useful for serious WP sites.

    thank you !

    Plugin Author Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @bhkh Yeah composer is similar to npm in js.

    I’m currently developing this plugin. What other check you are currently needed? Would love to hear more ideas

    Thread Starter bhkh

    (@bhkh)

    Well, I can explain my use case…

    I schedule a daily post (and corresponding email) for 5:30AM every day. It should never be at any other time.

    When I make a new post it defaults, of course, to “immediately”. So every day I have to manually tick my box for “Change time to 5:30am”. However, I have several manual ticks so it is very easy for me to miss-tick. This is exactly the problem I’m trying to solve. The rule would be: Publication time must == 5:30am (site time)

    I don’t know how useful this would be for other people, but perhaps there are other people who need to schedule posts for exact times.

    My other manual checks are not possible to automate as they involve me making some kind of judgement/evaluation.

    I can’t think of anything else, but if you think my case above would be useful to others, I might wait for you to implement it. 🤩

    Plugin Author Riza Maulana Ardiyanto

    (@rizaardiyanto)

    @bhkh So, basically just need a checklists of “Publish time should be on xx:xx am” right? So you won’t forget to change the date time?

    Thread Starter bhkh

    (@bhkh)

    EXACTLY that. If I was just making website posts it wouldn’t be a big deal. (I could always unpublish) However since publishing triggers the sending of thousands of emails, it is very important that the time be 5:30 AM (site time of course).

    If you wanted other time related things… If there was a check to ensure “Publish date/time is in the future” I would also use that. Otherwise when setting up drafts (and editing/scheduling them later) I could end up with a post timed for 5:30am but for some previous date.

    Naturally if my brain was big enough I would be hyper aware if the button said “Publish” or “Schedule”, but it’s not, lol.

    • This reply was modified 2 months ago by bhkh.
    Plugin Support Riza Prihananto

    (@rizaprihananto)

    Hi @bhkh ,

    The feature that you concern about is going to be available on the next release. It will be launched around this week or next week. We will inform you once the update has been released.

    We really appreciate your understanding.

    Thread Starter bhkh

    (@bhkh)

    Well I appreciate your support!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.