• Resolved kirska

    (@kirska)


    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 to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author termel

    (@munger41)

    Hi @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

    (@kirska)

    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: https://dallaspetsalive.org/charts/

    Plugin Author termel

    (@munger41)

    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

    (@kirska)

    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

    (@kirska)

    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

    (@kirska)

    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	https://php.net/manual/en/function.boolval.php#114013
     */
    if( !function_exists('boolval')) {
        
        function boolval($var){
            return !! $var;
        }
    }
    Plugin Author maxicharts

    (@maxicharts)

    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.