Title: Error for object arguments (fix included)
Last modified: November 17, 2018

---

# Error for object arguments (fix included)

 *  Resolved [jbeninger](https://wordpress.org/support/users/jbeninger/)
 * (@jbeninger)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/error-for-object-arguments/)
 * When I use an Object as the argument to a cron task, the Advanced Cron Manager
   fails, because it tries to treat the object as a string. I was able to fix it
   by updating /views/parts/events/row.php, Line 62
 *  <span><?php echo esc_html( is_array( $arg ) ? __( ‘Array’, ‘advanced-cron-manager’):(
   is_object($arg) ? get_class($arg) : $arg)); ?></span>
    -  This topic was modified 7 years, 6 months ago by [jbeninger](https://wordpress.org/support/users/jbeninger/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/error-for-object-arguments/#post-10892114)
 * Thanks [@jbeninger](https://wordpress.org/support/users/jbeninger/) for the report.
   This totally makes sense!
 * I’ll add that in the next release.

Viewing 1 replies (of 1 total)

The topic ‘Error for object arguments (fix included)’ is closed to new replies.

 * ![](https://ps.w.org/advanced-cron-manager/assets/icon.svg?rev=3096140)
 * [Advanced Cron Manager - debug & control](https://wordpress.org/plugins/advanced-cron-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-cron-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-cron-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-cron-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-cron-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-cron-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/error-for-object-arguments/#post-10892114)
 * Status: resolved