Title: Notice: Array to string conversion
Last modified: February 6, 2018

---

# Notice: Array to string conversion

 *  [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/)
 * Hi! How are you?
 * There’s a Notice when passing a **array of arrays** as `$args` to scheduled events.
 * The plugin should consider it in the two blocks:
 *     ```
       foreach ( $this->get_var( 'event' )->args as $arg ): ?>
       	<span><?php echo esc_html( $arg ); ?></span>
       endforeach
       ```
   
 * I suggest check it’s a array:
 *     ```
       foreach ( $this->get_var( 'event' )->args as $arg ): ?>
       	<span><?php echo esc_html( is_array( $arg ) ? 'Array' : $arg ); ?></span>
       endforeach
       ```
   
 * Files:
    `advanced-cron-manager/views/parts/events/row.php` `advanced-cron-manager/
   views/parts/events/tabs/arguments.php`
 * Best regards,
    Mário Valney

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-9943318)
 * Hi Mário,,
 * thank you very much for the information! I’ll definitely include it in the next
   update
 *  Thread Starter [Mário Valney](https://wordpress.org/support/users/mariovalney/)
 * (@mariovalney)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-9943368)
 * Cool! Thanks for the plugin.
 *  [redraider90](https://wordpress.org/support/users/redraider90/)
 * (@redraider90)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-10047341)
 * I cannot seem to create or get to other topics within the Advanced Cron Mgr plugin.
 * But I am getting this error when trying to activate the plugin.
 * Parse error: syntax error, unexpected T_STRING in /home1/locdir/public_html/Site/
   wp-content/plugins/advanced-cron-manager/advanced-cron-manager.php on line 72
 * Any ideas on what I should do? I’m on WP 4.9.3 and Paid Member Subscriptions 
   1.6.8.
    Not sure what PHP ver I have.
 * Thanks!
 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-10047447)
 * Hi, this is weird. Do you have the latest ACM version?
 * The line where this problem occurs is:
    `$files = new underDEV\Utils\Files( $
   plugin_file );`
 * So I’m guessing it’s a problem with \ character which points to the PHP version.
   Can you check what’s your version? You can do this with [https://wordpress.org/plugins/health-check/](https://wordpress.org/plugins/health-check/)
   plugin
 *  [redraider90](https://wordpress.org/support/users/redraider90/)
 * (@redraider90)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-10062772)
 * Kuba, was your reply to me, or someone else above? I would gladly have started
   a new topic if appropriate, if it would have allowed me to do so.
 * Thanks,
 * rr90
 *  Plugin Author [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * (@kubitomakita)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-10062801)
 * To you [@redraider90](https://wordpress.org/support/users/redraider90/) 🙂
 * Can’t you start a new thread at the bottom of this page: [https://wordpress.org/support/plugin/advanced-cron-manager/](https://wordpress.org/support/plugin/advanced-cron-manager/)?
 * Or you can reply here, really.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Notice: Array to string conversion’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Kuba Mikita](https://wordpress.org/support/users/kubitomakita/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/notice-array-to-string-conversion-6/#post-10062801)
 * Status: not a support question