Title: Shortcode does nothing
Last modified: December 11, 2017

---

# Shortcode does nothing

 *  Resolved [kirska](https://wordpress.org/support/users/kirska/)
 * (@kirska)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/)
 * I have tried a variety of short codes including just the basic [gfchartsreports]
   and they do nothing, in fact they appear to break the page entirely because the
   footer is also cut out.
 * I’m a bit stumped, is there a log or something to look at?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-does-nothing-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9769996)
 * Hi [@kirska](https://wordpress.org/support/users/kirska/),
    Thanks for tour feedback.
   Did you install Maxicharts and Gravity Forms addon in order to use the shortcode
   you mentionned ? Do you have a link to the page? Yes there is a log file under
   maxicharts/logs/…, but first double check the previous things. Cheers
 *  Thread Starter [kirska](https://wordpress.org/support/users/kirska/)
 * (@kirska)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9771681)
 * Yes I have the two plugins installed and activated.
 * > MaxiCharts
   >  Deactivate Create beautiful interactive HTML5 charts from Gravity
   > Forms / CSV into your posts with a simple shortcode. Uses chart.js. Version
   > 1.2.4 | By MaxiCharts | View details
   > MaxiCharts Gravity Forms Source Add-on
   >  Deactivate Extend MaxiCharts : Add 
   > the possibility to graph Gravity Forms submitted datas Version 1.3.5 | By MaxiCharts
   > | View details
 * I have several Gravity Forms.
 * Also the maxicharts/logs directory is empty.
 * URL: [http://dallaspetsalive.org/charts/](http://dallaspetsalive.org/charts/)
 *  Plugin Author [termel](https://wordpress.org/support/users/munger41/)
 * (@munger41)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9771979)
 * thanks for your feedback, looking at the console of your web page, it seems there
   is an error with a plugin called FitVids.
    Can you try deactivate it and reload
   the charts page please ? Cheers
 *  Thread Starter [kirska](https://wordpress.org/support/users/kirska/)
 * (@kirska)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9772033)
 * I do not have a plugin named FitVids.
 * I changed the permissions on the plugin folder and got the log to come up, but
   still no chart:
 * > 2017-12-11 17:11:12,839 MAXICHARTSAPI DEBUG /var/www/html/wp-content/plugins/
   > maxicharts/mcharts_utils.php:93 Logger up!…
   >  2017-12-11 17:11:12,840 GF DEBUG/
   > var/www/html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:42 Adding Module : maxicharts_gravity_forms 2017-12-11 17:11:12,842 MAXICHARTS
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_data_conversion_plugin.
   > php:19 Adding Module : mcharts_data_conversion_plugin 2017-12-11 17:11:12,843
   > MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_custom_criteria_plugin.
   > php:20 Adding Module : mcharts_custom_criteria_plugin 2017-12-11 17:11:12,843
   > MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_table_plugin.
   > php:15 Adding Module : mcharts_table_plugin 2017-12-11 17:11:12,843 MAXICHARTS
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/maxicharts.php:64 Construct
   > maxicharts_reports 2017-12-11 17:11:12,843 GF DEBUG /var/www/html/wp-content/
   > plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php:
   > 100 Adding shortcode : gfchartsreports 2017-12-11 17:11:12,844 GF DEBUG /var/
   > www/html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:106 Adding shortcode : gfentryfieldvalue 2017-12-11 17:11:13,152 GF DEBUG/
   > var/www/html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:121 Executing shortcode gfchartsreports 2017-12-11 17:11:13,153 MAXICHARTS
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/maxicharts.php:595 MAXICHART
   > DO Report from gf to chartjs 2017-12-11 17:11:13,153 MAXICHARTS DEBUG /var/
   > www/html/wp-content/plugins/maxicharts/maxicharts.php:664 Array ( [type] =>
   > pie [url] => [position] => [float] => [center] => [title] => chart [width] 
   > => 48% [height] => auto [margin] => 5px [relativewidth] => 1 [align] => [class]
   > => [labels] => [data] => 30,50,100 [data_conversion] => [datasets_invert] =
   > > [datasets] => [data_only] => [gf_form_ids] => [multi_include] => [gf_form_id]
   > => 1 [maxentries] => 200 [gf_criteria] => [include] => [exclude] => [colors]
   > => [color_set] => [color_rand] => [chart_js_options] => [tooltip_style] => 
   > BOTH [custom_search_criteria] => [fillopacity] => 0.7 [pointstrokecolor] =>#
   > FFFFFF [animation] => true [xaxislabel] => [yaxislabel] => [scalefontsize] 
   > => 12 [scalefontcolor] => #666 [scaleoverride] => false [scalesteps] => null[
   > scalestepwidth] => null [scalestartvalue] => null [case_insensitive] => [compute]
   > => [header_start] => 0 [x_stacked] => [y_stacked] => [x_step_size] => [y_step_size]
   > => [decimal_separator] => [thousands_separator] => )
   >  2017-12-11 17:11:13,153 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/
   > maxicharts/maxicharts.php:677
   >  2017-12-11 17:11:13,154 MAXICHARTS DEBUG /var/
   > www/html/wp-content/plugins/maxicharts/maxicharts.php:682 pie 2017-12-11 17:
   > 11:13,154 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/maxicharts.
   > php:685 CHECK TYPE : pie 2017-12-11 17:11:13,813 MAXICHARTSAPI DEBUG /var/www/
   > html/wp-content/plugins/maxicharts/mcharts_utils.php:93 Logger up!… 2017-12-
   > 11 17:11:13,814 GF DEBUG /var/www/html/wp-content/plugins/maxicharts-gravity-
   > forms-source-add-on/mcharts_gf_source_add_on.php:42 Adding Module : maxicharts_gravity_forms
   > 2017-12-11 17:11:13,821 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/
   > mcharts_data_conversion_plugin.php:19 Adding Module : mcharts_data_conversion_plugin
   > 2017-12-11 17:11:13,822 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/
   > mcharts_custom_criteria_plugin.php:20 Adding Module : mcharts_custom_criteria_plugin
   > 2017-12-11 17:11:13,822 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/
   > mcharts_table_plugin.php:15 Adding Module : mcharts_table_plugin 2017-12-11
   > 17:11:13,823 MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/maxicharts.
   > php:64 Construct maxicharts_reports 2017-12-11 17:11:13,823 GF DEBUG /var/www/
   > html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:100 Adding shortcode : gfchartsreports 2017-12-11 17:11:13,823 GF DEBUG/
   > var/www/html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:106 Adding shortcode : gfentryfieldvalue 2017-12-11 17:11:17,653 MAXICHARTSAPI
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_utils.php:93 Logger
   > up!… 2017-12-11 17:11:17,654 GF DEBUG /var/www/html/wp-content/plugins/maxicharts-
   > gravity-forms-source-add-on/mcharts_gf_source_add_on.php:42 Adding Module :
   > maxicharts_gravity_forms 2017-12-11 17:11:17,656 MAXICHARTS DEBUG /var/www/
   > html/wp-content/plugins/maxicharts/mcharts_data_conversion_plugin.php:19 Adding
   > Module : mcharts_data_conversion_plugin 2017-12-11 17:11:17,657 MAXICHARTS 
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_custom_criteria_plugin.
   > php:20 Adding Module : mcharts_custom_criteria_plugin 2017-12-11 17:11:17,657
   > MAXICHARTS DEBUG /var/www/html/wp-content/plugins/maxicharts/mcharts_table_plugin.
   > php:15 Adding Module : mcharts_table_plugin 2017-12-11 17:11:17,658 MAXICHARTS
   > DEBUG /var/www/html/wp-content/plugins/maxicharts/maxicharts.php:64 Construct
   > maxicharts_reports 2017-12-11 17:11:17,658 GF DEBUG /var/www/html/wp-content/
   > plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.php:
   > 100 Adding shortcode : gfchartsreports 2017-12-11 17:11:17,658 GF DEBUG /var/
   > www/html/wp-content/plugins/maxicharts-gravity-forms-source-add-on/mcharts_gf_source_add_on.
   > php:106 Adding shortcode : gfentryfieldvalue
 *  Thread Starter [kirska](https://wordpress.org/support/users/kirska/)
 * (@kirska)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9772368)
 * Found the following errors in the httpd error log:
 * [Mon Dec 11 12:47:07.724995 2017] [:error] [pid 18422] [client 205.145.193.6:
   37000] PHP Warning: Illegal string offset ‘type’ in /var/www/html/wp-content/
   plugins/maxicharts/maxicharts.php on line 665
    [Mon Dec 11 12:47:07.725599 2017][:
   error] [pid 18422] [client 205.145.193.6:37000] PHP Fatal error: Call to undefined
   function boolval() in /var/www/html/wp-content/plugins/maxicharts/maxicharts.
   php on line 703
 *  Thread Starter [kirska](https://wordpress.org/support/users/kirska/)
 * (@kirska)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9772478)
 * I fixed the error by adding this code to theme’s functions.php
 *     ```
       /**
        * Get the boolean value of a variable
        *
        * @param 	mixed 	The scalar value being converted to a boolean.
        * @return 	boolean The boolean value of var.
        * @refer	http://php.net/manual/en/function.boolval.php#114013
        */
       if( !function_exists('boolval')) {
   
           function boolval($var){
               return !! $var;
           }
       }
       ```
   
 *  Plugin Author [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * (@maxicharts)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9772634)
 * Ok, thank you very much, it seems your PHP version is then < 5.5, i will add 
   exactly what your did to the plugin in order to prevent the problem next time.
   
   thanks a lot! 🙂

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

The topic ‘Shortcode does nothing’ 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/)

 * 7 replies
 * 3 participants
 * Last reply from: [maxicharts](https://wordpress.org/support/users/maxicharts/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/shortcode-does-nothing-2/#post-9772634)
 * Status: resolved