Title: PHP Warning: error
Last modified: June 25, 2019

---

# PHP Warning: error

 *  Resolved [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/)
 * Hi, I have this error:
    `PHP Warning: count(): Parameter must be an array or 
   an object that implements Countable in /var/www/html/wp-content/plugins/maxicharts/
   maxicharts.php on line 969,` from a page with 2 maxicharts. Can you please help
   me fix it? Thanks
    -  This topic was modified 6 years, 11 months ago by [luciche](https://wordpress.org/support/users/luciche/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-error-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11670845)
 * These are the 2 shortcodes for the charts:
    `[gfchartsreports count_answers="
   1" gf_form_id="26" gf_entry_id="2456" group_fields="1" colors="#19bf05,#ED6D62,#
   018fde,#82483c" include="2,6,7,8" type="pie" tooltip_style="SUM" chart_js_options
   ="title: {display: true, text: 'Exemplu calculator salariu', fontSize:22,fontFamily:'
   Arial',fontColor:'#757575',fontStyle:'bold',padding:5}" height="350px"]`
 * `[gfchartsreports count_answers="1" gf_form_id="26" gf_entry_id="2456" group_fields
   ="1" colors="#19bf05,#ED6D62,#018fde,#82483c" include="14,15" type="bar" tooltip_style
   ="SUM" chart_js_options="title: {display: true, text: 'Exemplu comparator salariu',
   fontSize:22,fontFamily:'Arial',fontColor:'#757575',fontStyle:'bold',padding:5},
   legend: {display: false}" height="350px"]`
 * Am I doing something wrong?
    -  This reply was modified 6 years, 11 months ago by [luciche](https://wordpress.org/support/users/luciche/).
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671090)
 * Thanks [@luciche](https://wordpress.org/support/users/luciche/) for the feedback,
   the bug has been fixed.
    Can you please upgrade to 1.4.9 and tell us if everything
   is ok ? Cheers!
 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671185)
 * I’ve updated to 1.4.9 and the error is gone, but the legend is now being displayed
   when I use the below code to hide it.
 * `chart_js_options="legend: {display: false}"`
 * It was hidden in the previous version using the code above
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671204)
 * Thats true, a fix has been committed right now, can you please delete/reinstall
   maxicharts to fix that ?
 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671247)
 * Will all the settings be lost if I do it?
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671316)
 * There are no settings in maxicharts 🙂
 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671530)
 * Fixed. Thanks
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11671569)
 * With pleasure!
 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11700240)
 * Hi, I see a new error
    ‘PHP Warning: Use of undefined constant id – assumed ‘
   id’ (this will throw an Error in a future version of PHP) in /var/www/html/wp-
   content/plugins/maxicharts/maxicharts.php on line 186′
 * Can you please help me fix this one as well?
    Thanks
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11702998)
 * Thanks for your feedback [@luciche](https://wordpress.org/support/users/luciche/)!
   
   The bug has been fixed and released in version 1.4.10+

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

The topic ‘PHP Warning: error’ is closed to new replies.

 * ![](https://ps.w.org/maxicharts/assets/icon-256x256.png?rev=1737118)
 * [MaxiCharts](https://wordpress.org/plugins/maxicharts/)
 * [Support Threads](https://wordpress.org/support/plugin/maxicharts/)
 * [Active Topics](https://wordpress.org/support/plugin/maxicharts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/maxicharts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/maxicharts/reviews/)

## Tags

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

 * 10 replies
 * 2 participants
 * Last reply from: [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/php-warning-error-7/#post-11702998)
 * Status: resolved