Title: Invalid argument Error after adding counter
Last modified: July 24, 2018

---

# Invalid argument Error after adding counter

 *  Resolved [biplaner](https://wordpress.org/support/users/biplaner/)
 * (@biplaner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-after-adding-counter/)
 * Hi,
 * after adding and saving 3 counter-items, I got this error (frontend and backend):
 *  Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/counter-
   number-showcase/inc/admin/add-counter-box.php on line 69
 * Maybe the reason was the “%” I wrote in the title (because the counter value 
   was 100, means “100% made in..”). I am not able to edit the counter-items (they
   are not even shown) anymore.
 * Any Suggestions?
 * Many Thanks!

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

 *  Thread Starter [biplaner](https://wordpress.org/support/users/biplaner/)
 * (@biplaner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-after-adding-counter/#post-10523293)
 * Edit: The error appears, after placing quotation marks in the title (produced“
   in Italy” e.g.). The error disappears after deleting and adding a new counterbox.
 *  [dikshita46](https://wordpress.org/support/users/dikshita46/)
 * (@dikshita46)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-after-adding-counter/#post-10525191)
 * do not use special characters it is not supported.
 *  Thread Starter [biplaner](https://wordpress.org/support/users/biplaner/)
 * (@biplaner)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-after-adding-counter/#post-10533431)
 * Thanks for your quick answer.
 * It works fine with all special characters tested – only quotes (“) are causing
   the error. Seems like quotes are not escaped properly! Maybe you can check this
   and update if so…
 * No critics, just an (important) bug report – really nice plugin nevertheless 
   🙂

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

The topic ‘Invalid argument Error after adding counter’ is closed to new replies.

 * ![](https://ps.w.org/counter-number-showcase/assets/icon-256x256.png?rev=1704297)
 * [Counter Number Showcase, Fun Facts - Wordpress Animated Counter Plugin](https://wordpress.org/plugins/counter-number-showcase/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/counter-number-showcase/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/counter-number-showcase/)
 * [Active Topics](https://wordpress.org/support/plugin/counter-number-showcase/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/counter-number-showcase/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/counter-number-showcase/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [biplaner](https://wordpress.org/support/users/biplaner/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/invalid-argument-error-after-adding-counter/#post-10533431)
 * Status: resolved