Support » Plugin: Database Cleaner: Clean, Optimize & Repair » Assign to WordPress

  • Resolved osaopaulo

    (@osaopaulo)


    Hello!

    First of all, thanks for the awesome plugin!

    I have a question: is there a way to assign the cron jobs (or anything, in truth) to WordPress? When I fetch the list for my cron jobs, I see a some “publish_future_post” as unknown, but they are used by WordPress to publish my scheduled posts…

    Also, I am having troubles fetching the list of my post types; here is the error log:
    [16-Aug-2022 21:02:23 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/josp/public_html/wp-content/plugins/database-cleaner/classes/support/core.php:85
    Stack trace:
    #0 /home/josp/public_html/wp-content/plugins/database-cleaner/classes/support/core.php(95): Meow_DBCLNR_Support_Core->user_item_to_plugin(Array, ‘post_type’)
    #1 /home/josp/public_html/wp-includes/class-wp-hook.php(307): Meow_DBCLNR_Support_Core->user_post_type_to_plugin(Array)
    #2 /home/josp/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
    #3 /home/josp/public_html/wp-content/plugins/database-cleaner/classes/support.php(50): apply_filters(‘dbclnr_post_typ…’, Array)
    #4 /home/josp/public_html/wp-content/plugins/database-cleaner/classes/support.php(141): Meow_DBCLNR_Support->get_post_type_to_plugin()
    #5 /home/josp/public_html/wp-includes/class-wp-hook.php(309): Meow_DBCLNR_Support->check_post_type_info(‘attachment’)
    #6 /home/josp/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(‘attachment’, Array)
    #7 /home/josp/p in /home/josp/public_html/wp-content/plugins/database-cleaner/classes/support/core.php on line 85`

    Any idea if it is my installation, or if it is a bug in the plugin?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @osaopaulo,

    I have a question: is there a way to assign the cron jobs (or anything, in truth) to WordPress?

    Actually, no 🙂 The reason is that I actually should be handling already all the cron jobs native to WordPress. I have added now in the code, and will push a release later.

    If you want it to work right away, you can edit the classes/support/core_crons.csv (actually not a CSV, but well :p) and insert “publish_future_post” at the end of it. But that will be part of the next version, thanks to you.

    Also, I am having troubles fetching the list of my post types

    This is strange. Which version of PHP are you using? I am working always on PHP 7.4 or 8+. Are you using an older version?

    Thread Starter osaopaulo

    (@osaopaulo)

    Hello @tigroumeow ,

    Actually, no 🙂 The reason is that I actually should be handling already all the cron jobs native to WordPress. I have added now in the code, and will push a release later.

    Fantastic! I’ll wait!

    This is strange. Which version of PHP are you using? I am working always on PHP 7.4 or 8+. Are you using an older version?

    Using PHP 7.4.30. The plugin was fetching correctly 2 (maybe 3) versions ago, but since then it became unable to do so…

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @osaopaulo,

    I am not sure what the issue is exactly, it seems like your PHP doesn’t support a specific syntax I am using but I am not sure why.

    I would like to send you a new version. Can you contact me directly through https://meowapps.com/contact?

    Thread Starter osaopaulo

    (@osaopaulo)

    Contacted!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Assign to WordPress’ is closed to new replies.