Title: PHP Warning: Array to string conversion
Last modified: April 5, 2025

---

# PHP Warning: Array to string conversion

 *  Resolved [Nate](https://wordpress.org/support/users/goseongguy/)
 * (@goseongguy)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/)
 * Hello,
   I have discovered hundred or thousands of logs for the following, beginning
   December 10th, 2024:`PHP Warning: Array to string conversion in /home/.../wp-
   content/plugins/luckywp-table-of-contents/plugin/Shortcode.php on line 287`I 
   am using PHP 8.3. Is this expected behavior? Is this a bug to be fixed?

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

 *  Plugin Support [Ted](https://wordpress.org/support/users/ted86/)
 * (@ted86)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18403370)
 * Hi, Nate! Thanks for issue.
   1) Can you show table of contents options?2) Can 
   you try new version 2.1.13. Does the problem keeping?
 *  [paganini58](https://wordpress.org/support/users/paganini58/)
 * (@paganini58)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18417931)
 * Hi, I got the same problem (line 287). After rollback to Version 2.1.5 and then
   update to 2.1.13 again, it now shows the same mistake, but with line 301.
 * Can you please report how to fix this problem.
 * Thanks
 * Peter
 *  [paganini58](https://wordpress.org/support/users/paganini58/)
 * (@paganini58)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18418256)
 * line 301 reads as follows
 * $shortcode .= ‘ ‘ . $k . ‘=”‘ . $v . ‘”‘;
 * Peter
 *  Plugin Support [Ted](https://wordpress.org/support/users/ted86/)
 * (@ted86)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18419170)
 * [@paganini58](https://wordpress.org/support/users/paganini58/) Is there a problem
   with “2.1.5” version? 
   Can you show full stack trace of error (нou can send it
   by email [ted@theluckywp.com](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/ted@theluckywp.com?output_format=md))?
 *  Plugin Support [Ted](https://wordpress.org/support/users/ted86/)
 * (@ted86)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18419385)
 * Seems, this bug is fixed.
   [@goseongguy](https://wordpress.org/support/users/goseongguy/)
   [@paganini58](https://wordpress.org/support/users/paganini58/) Can you try new
   version 2.1.14?
 *  [paganini58](https://wordpress.org/support/users/paganini58/)
 * (@paganini58)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18419402)
 * I just installed version 2.1.14 (manually) and – hurray – the bug is fixed and
   gone.
 * Thank you so much for your quick response.
 * Peter
 *  Plugin Support [Ted](https://wordpress.org/support/users/ted86/)
 * (@ted86)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18419558)
 * Great!

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

The topic ‘PHP Warning: Array to string conversion’ is closed to new replies.

 * ![](https://ps.w.org/luckywp-table-of-contents/assets/icon-256x256.png?rev=2100677)
 * [LuckyWP Table of Contents](https://wordpress.org/plugins/luckywp-table-of-contents/)
 * [Support Threads](https://wordpress.org/support/plugin/luckywp-table-of-contents/)
 * [Active Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/luckywp-table-of-contents/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/luckywp-table-of-contents/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 7 replies
 * 3 participants
 * Last reply from: [Ted](https://wordpress.org/support/users/ted86/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-6/#post-18419558)
 * Status: resolved