• Resolved viollaqq

    (@viollaqq)


    Hi there,
    I’m using your plugin with gravity forms survey add-on. I’m using the shortcode below to generate the reports:
    [gfchartsreports gf_form_id="1" include="10" color_set="red"]

    But I get this error when I try to load the reports:

    Notice: Undefined variable: reportFields in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 514
    
    Warning: Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 514
    
    Notice: Undefined variable: reportFields in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 734
Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author termel

    (@munger41)

    hum… interesting, let my fix that…
    Are there any datas available for field 10 of form 1 ?
    thanks

    Plugin Author termel

    (@munger41)

    can you please upgrade to 2.3.1 when available and re-test ?
    thanks

    Thread Starter viollaqq

    (@viollaqq)

    I have updated to 2.3.4. The errors have gone, but still no charts showing. I also checked error_log and these errors were added.

    [23-Feb-2017 08:30:30 UTC] Array
    (
        [gf_form_id] => 1
        [include] => 7,8
        [color_set] => red
    )
    
    [23-Feb-2017 08:30:30 UTC] pie
    [23-Feb-2017 08:30:30 UTC] GF data to dig 1 for crit 
    [23-Feb-2017 08:30:30 UTC] SETTING COLOR PALETTE...
    [23-Feb-2017 08:30:30 UTC] ### Color Set is : red
    [23-Feb-2017 08:30:30 UTC] 0 charts created
    Plugin Author termel

    (@munger41)

    Can you please post a URL to the problem please ?
    Thanks

    Thread Starter viollaqq

    (@viollaqq)

    Plugin Author termel

    (@munger41)

    I added debug to the plugin in order to find a solution.
    Can you please uninstall then reinstall the plugin and reactivate, then test again please ?
    If you can send me the log file great!
    thanks

    Thread Starter viollaqq

    (@viollaqq)

    I reinstalled the plugin and now it shows this error on the frontend:
    Please activate gravityforms plugin
    My Gravity Forms is installed, activated and working well.

    In the error_log it has been added:

    [26-Feb-2017 06:50:49 UTC] Array
    (
        [gf_form_id] => 1
        [include] => 7,8
        [color_set] => red
    )
    
    [26-Feb-2017 06:50:49 UTC] pie
    [26-Feb-2017 06:50:49 UTC] GF data to dig 1 for crit 
    [26-Feb-2017 06:50:49 UTC] Please activate gravityforms plugin
    Plugin Author termel

    (@munger41)

    ok, i updated again, can you please retry and send back the log ?
    thanks

    Thread Starter viollaqq

    (@viollaqq)

    Thank you @munger41 for your great support.
    I reinstalled the plugin and now it shows a chart with some errors. The post URL has not been changed, so you can see the output using that URL.
    Here’s the log:

    [27-Feb-2017 13:15:13 UTC] Array
    (
        [gf_form_id] => 1
        [include] => 7,8
        [color_set] => red
    )
    
    [27-Feb-2017 13:15:13 UTC] pie
    [27-Feb-2017 13:15:13 UTC] GF data to dig 1 for crit 
    [27-Feb-2017 13:15:13 UTC] All entries (also deleted!) : 4
    [27-Feb-2017 13:15:13 UTC] Create complete report for form 1
    [27-Feb-2017 13:15:13 UTC] entries : 4
    [27-Feb-2017 13:15:13 UTC] form fields : 13
    [27-Feb-2017 13:15:13 UTC] ### Processing field 6 of type survey
    [27-Feb-2017 13:15:13 UTC] Array
    (
        [7] => Array
            (
                [choices] => Array
                    (
                        [0] => Array
                            (
                                [text] => کم
                                [value] => glikertcol7c89df6da
                                [isSelected] => 
                                [score] => 2
                            )
    
                        [1] => Array
                            (
                                [text] => متوسط
                                [value] => glikertcol7e59ae63f
                                [isSelected] => 
                                [score] => 3
                            )
    
                        [2] => Array
                            (
                                [text] => زیاد
                                [value] => glikertcol767f90236
                                [isSelected] => 
                                [score] => 4
                            )
    
                        [3] => Array
                            (
                                [text] => بسیار زیاد
                                [value] => glikertcol7d8e6fcd2
                                [isSelected] => 
                                [score] => 5
                            )
    
                    )
    
                [label] => آیا کیفیت خدمات ارائه شده مناسب است؟
                [graphType] => pie
                [type] => survey
            )
    
    )
    
    [27-Feb-2017 13:15:13 UTC] --> Counting answers in entries for field survey () : 7
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 308
    [27-Feb-2017 13:15:13 UTC] 4 entries parsed for field 7
    [27-Feb-2017 13:15:13 UTC] --> Computing score for field 7
    [27-Feb-2017 13:15:13 UTC] Complete report of form  1
    [27-Feb-2017 13:15:13 UTC] SETTING COLOR PALETTE...
    [27-Feb-2017 13:15:13 UTC] ### Color Set is : red
    [27-Feb-2017 13:15:13 UTC] ### Charts to display : 2
    [27-Feb-2017 13:15:13 UTC] 
    [27-Feb-2017 13:15:13 UTC] 2 charts created
    Plugin Author termel

    (@munger41)

    updated again, can you please re-test ?

    Thread Starter viollaqq

    (@viollaqq)

    Still showing one chart with no errors on front-end and here’s the log:

    [27-Feb-2017 14:44:38 UTC] Array
    (
        [gf_form_id] => 1
        [include] => 7,8
        [color_set] => red
    )
    
    [27-Feb-2017 14:44:38 UTC] pie
    [27-Feb-2017 14:44:38 UTC] GF data to dig 1 for crit 
    [27-Feb-2017 14:44:38 UTC] All entries (also deleted!) : 4
    [27-Feb-2017 14:44:38 UTC] Create complete report for form 1
    [27-Feb-2017 14:44:38 UTC] entries : 4
    [27-Feb-2017 14:44:38 UTC] form fields : 13
    [27-Feb-2017 14:44:38 UTC] ### Processing field 6 of type survey
    [27-Feb-2017 14:44:38 UTC] Array
    (
        [7] => Array
            (
                [choices] => Array
                    (
                        [0] => Array
                            (
                                [text] => کم
                                [value] => glikertcol7c89df6da
                                [isSelected] => 
                                [score] => 2
                            )
    
                        [1] => Array
                            (
                                [text] => متوسط
                                [value] => glikertcol7e59ae63f
                                [isSelected] => 
                                [score] => 3
                            )
    
                        [2] => Array
                            (
                                [text] => زیاد
                                [value] => glikertcol767f90236
                                [isSelected] => 
                                [score] => 4
                            )
    
                        [3] => Array
                            (
                                [text] => بسیار زیاد
                                [value] => glikertcol7d8e6fcd2
                                [isSelected] => 
                                [score] => 5
                            )
    
                    )
    
                [label] => آیا کیفیت خدمات ارائه شده مناسب است؟
                [graphType] => pie
                [type] => survey
            )
    
    )
    
    [27-Feb-2017 14:44:38 UTC] --> Counting answers in entries for field survey (single row) : 7
    [27-Feb-2017 14:44:38 UTC] ### SINGLE ROW SURVEY FIELD ###
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : pie
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : survey
    [27-Feb-2017 14:44:38 UTC] ### SINGLE ROW SURVEY FIELD ###
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : pie
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : survey
    [27-Feb-2017 14:44:38 UTC] ### SINGLE ROW SURVEY FIELD ###
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : pie
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : survey
    [27-Feb-2017 14:44:38 UTC] ### SINGLE ROW SURVEY FIELD ###
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : pie
    [27-Feb-2017 14:44:38 UTC] WARNING not an array : survey
    [27-Feb-2017 14:44:38 UTC] 4 entries parsed for field 7
    [27-Feb-2017 14:44:38 UTC] --> Computing score for field 7
    [27-Feb-2017 14:44:38 UTC] Complete report of form  1
    [27-Feb-2017 14:44:38 UTC] SETTING COLOR PALETTE...
    [27-Feb-2017 14:44:38 UTC] ### Color Set is : red
    [27-Feb-2017 14:44:38 UTC] ### Charts to display : 2
    [27-Feb-2017 14:44:38 UTC] 
    [27-Feb-2017 14:44:38 UTC] 2 charts created
    Plugin Author termel

    (@munger41)

    Trying to understand what ‘s happening, may add some more debug infos, can you send your gravity forms form producing this please ? Export it from gravity sub menu so as i can import it and test locally ?

    Plugin Author termel

    (@munger41)

    Plugin Author termel

    (@munger41)

    You are expecting to see 2 charts right ?

    Thread Starter viollaqq

    (@viollaqq)

    Hello
    Yes I’m expecting to see two charts. I also sent you the export files using your contact form.
    I just reinstalled the plugin. One chart is showing up and this line of error is added:

    Notice: Undefined offset: 17 in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 260

    And here’s the log:

    [28-Feb-2017 06:51:28 UTC] Array
    (
        [gf_form_id] => 1
        [include] => 7,8
        [color_set] => red
    )
    
    [28-Feb-2017 06:51:28 UTC] pie
    [28-Feb-2017 06:51:28 UTC] GF data to dig 1 for crit 
    [28-Feb-2017 06:51:28 UTC] All entries (also deleted!) : 4
    [28-Feb-2017 06:51:28 UTC] Create complete report for form 1
    [28-Feb-2017 06:51:28 UTC] entries : 4
    [28-Feb-2017 06:51:28 UTC] form fields : 13
    [28-Feb-2017 06:51:28 UTC] ### Processing field 6 of type survey
    [28-Feb-2017 06:51:28 UTC] PHP Notice:  Undefined offset: 17 in /home/cp23702/public_html/wp-content/plugins/gf-charts-reports/gf_charts_reports.php on line 260
    [28-Feb-2017 06:51:28 UTC] 0 graph should be displayed
    [28-Feb-2017 06:51:28 UTC] Array
    (
        [7] => Array
            (
                [choices] => Array
                    (
                        [0] => Array
                            (
                                [text] => کم
                                [value] => glikertcol7c89df6da
                                [isSelected] => 
                                [score] => 2
                            )
    
                        [1] => Array
                            (
                                [text] => متوسط
                                [value] => glikertcol7e59ae63f
                                [isSelected] => 
                                [score] => 3
                            )
    
                        [2] => Array
                            (
                                [text] => زیاد
                                [value] => glikertcol767f90236
                                [isSelected] => 
                                [score] => 4
                            )
    
                        [3] => Array
                            (
                                [text] => بسیار زیاد
                                [value] => glikertcol7d8e6fcd2
                                [isSelected] => 
                                [score] => 5
                            )
    
                    )
    
                [label] => آیا کیفیت خدمات ارائه شده مناسب است؟
                [graphType] => pie
                [type] => survey
            )
    
    )
    
    [28-Feb-2017 06:51:28 UTC] --> Counting answers in entries for field survey (single row) : 7
    [28-Feb-2017 06:51:28 UTC] 7 <- MATCHES -> 7
    [28-Feb-2017 06:51:28 UTC] ### SINGLE ROW SURVEY FIELD ###
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : pie
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : survey
    [28-Feb-2017 06:51:28 UTC] 7 <- MATCHES -> 7
    [28-Feb-2017 06:51:28 UTC] ### SINGLE ROW SURVEY FIELD ###
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : pie
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : survey
    [28-Feb-2017 06:51:28 UTC] 7 <- MATCHES -> 7
    [28-Feb-2017 06:51:28 UTC] ### SINGLE ROW SURVEY FIELD ###
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : pie
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : survey
    [28-Feb-2017 06:51:28 UTC] 7 <- MATCHES -> 7
    [28-Feb-2017 06:51:28 UTC] ### SINGLE ROW SURVEY FIELD ###
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : آیا کیفیت خدمات ارائه شده مناسب است؟
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : pie
    [28-Feb-2017 06:51:28 UTC] WARNING not an array : survey
    [28-Feb-2017 06:51:28 UTC] 4 entries parsed for field 7
    [28-Feb-2017 06:51:28 UTC] 1 graph should be displayed
    [28-Feb-2017 06:51:28 UTC] Array
    (
        [7] => Array
            (
                [answers] => Array
                    (
                        [0] => متوسط
                        [1] => متوسط
                        [2] => بسیار زیاد
                        [3] => زیاد
                    )
    
            )
    
    )
    
    [28-Feb-2017 06:51:28 UTC] --> Computing score for field 7
    [28-Feb-2017 06:51:28 UTC] Complete report of form  1
    [28-Feb-2017 06:51:28 UTC] 2 graph should be displayed
    [28-Feb-2017 06:51:28 UTC] Array
    (
        [7] => Array
            (
                [choices] => Array
                    (
                        [0] => Array
                            (
                                [text] => کم
                                [value] => glikertcol7c89df6da
                                [isSelected] => 
                                [score] => 2
                            )
    
                        [1] => Array
                            (
                                [text] => متوسط
                                [value] => glikertcol7e59ae63f
                                [isSelected] => 
                                [score] => 3
                            )
    
                        [2] => Array
                            (
                                [text] => زیاد
                                [value] => glikertcol767f90236
                                [isSelected] => 
                                [score] => 4
                            )
    
                        [3] => Array
                            (
                                [text] => بسیار زیاد
                                [value] => glikertcol7d8e6fcd2
                                [isSelected] => 
                                [score] => 5
                            )
    
                    )
    
                [label] => آیا کیفیت خدمات ارائه شده مناسب است؟
                [graphType] => pie
                [type] => survey
                [scores] => Array
                    (
                        [متوسط] => 2
                        [بسیار زیاد] => 1
                        [زیاد] => 1
                    )
    
            )
    
        [title] => Complete report of form  1
    )
    
    [28-Feb-2017 06:51:28 UTC] SETTING COLOR PALETTE...
    [28-Feb-2017 06:51:28 UTC] ### Color Set is : red
    [28-Feb-2017 06:51:28 UTC] ### Charts to display : 2
    [28-Feb-2017 06:51:28 UTC] 
    [28-Feb-2017 06:51:28 UTC] 2 charts created
Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Error displaying the charts’ is closed to new replies.