• Resolved Stescovich

    (@stescovich)


    Hello:

    We are facing a problem with the plugin. We were able to see graphs until we updated plugin few hours ago.

    During elementor EDIT, graph is shown perfectly, but when going to “published” page the graph is not visible anymore.

    We tried removing all JS and CSS from compressing or combining and still no change.

    Hope you can help.

    Thanks

    The page I need help with: [log in to see the link]

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

    (@iqonicdesign)

    Hello,
    Go to this file: wp-content/plugins/graphina/elementor/class-graphina-charts-for-elementor-public.php
    line no 144 to 146

    if( in_array(“apex_chart_js”, $selected_js_array) ) {
    wp_register_script(‘apexcharts-min’, plugin_dir_url(FILE) . ‘js/apexcharts.min.js’, array(‘jquery’), $this->version, false);
    }

    change to this

    if( true) {
    wp_register_script(‘apexcharts-min’, plugin_dir_url(FILE) . ‘js/apexcharts.min.js’, array(‘jquery’), $this->version, false);
    }

    Thread Starter Stescovich

    (@stescovich)

    Hello:

    Thanks for your answer, unluckly I get this error when doing that:

    Warning: Use of undefined constant 'apexcharts' - assumed 'apexcharts' (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.aripublic_html/wp-contentipluginsigraphina-elementor-charts-and-graphs/etementoriclass-graphina-charts-for-elementor-public.php on line 149 
    Warning: Use of undefined constant min' - assumed 'min" (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.aripublic_html/wp-content/plugins/graphina-elementor-charts-and-graphs/eLementor/class-graphina-charts-for-elementor-public.php on line 149 
    Warning: A non-numeric value encountered in /home/customer/www/hoppybox.com.arlpublic_html/wp-content/pluginsigraphina-elementor-charts-and-graphs/etementorklass-graphina-charts-for-etementor-public.php on line 149 
    Warning: Use of undefined constant FILE - assumed 'FILE' (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.aripublic_html/wp-content/plugins/graphina-elementor-charts-and-graphs/elementor/class-graphina-charts-for-elementor-public.php on line 149 
    Warning: Use of undefined constant 'js - assumed "js' (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.aripublic_html/wp-content/plugins/graphina-elementor-charts-and-graphs/etementor/class-graphina-charts-for-elementor-public.php on line 149 
    Warning: Use of undefined constant apexcharts - assumed 'apexcharts' (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.ar/public_html/wp-content/plugins/graphina-elementor-charts-and-graphs/etementor/class-graphina-charts-for-elementor-public.php on line 149 
    Warning: A non-numeric value encountered in /home/customer/www/hoppybox.com.aripublic_html/wp-content/plugins/graphina-elementor-charts-and-graphs/etementoriclass-graphina-charts-for-etementor-public.php on line 149 
    Warning: Division by zero in /home/customer/www/hoppybox.com.ar/public_htmliwp-content/plugins/graphina-elementor-charts-and-graphs/etementor/class-graphina-charts-for-etementor-public.php on line 149 
    Warning: Use of undefined constant min - assumed 'min' (this will throw an Error in a future version of PHP) in /home/customer/www/hoppybox.com.aripublic_html/wp-content/plugins/graphina-elementor-charts-and-graphs/eLementor/class-graphina-charts-for-elementor-public.php on line 149

    The error goes on… but I believe this helps you out to fix this bug.

    Hope you can help
    Thanks`

    • This reply was modified 2 years, 6 months ago by Stescovich.
    • This reply was modified 2 years, 6 months ago by Stescovich.
    Thread Starter Stescovich

    (@stescovich)

    Hello:

    I’ve seen your code and when analyzing if “in preview mode” you simply use “wp_register_script” but when result is “in live mode” you “wp_enqueue_script”.

    When I check if JS are loaded this happens:
    Preview mode apexcharts.min.js is loaded an so on the rest JS scripts
    Live mode none is loaded.

    Can this be the issue?

    wp_enqueue_script VS. wp_register_script

    Hope this helps…

    Thanks

    Plugin Author Iqonic Design

    (@iqonicdesign)

    Hello,
    Please deactivate all lazyload and cache plugin and check is chart working properly

    Thank You.

    Thread Starter Stescovich

    (@stescovich)

    Hello:

    I’ve deactivated both plugins and not even loading the corresponding JS files..

    Something in “live” mode in not being done in the code and in “preview” mode it is..

    Maybe I downgrade version of the plugin… It was working before last update.

    Hope you can help us.

    Thanks

    Thread Starter Stescovich

    (@stescovich)

    Hello:

    I’ve downgraded to 1.7.1 and all is working now. I really believe there is a bug in the code.

    It’s weird that in 1.7.3 in preview mode in Elementor the graph is shown and when looking and published page the graph is gone.

    To be more specific as I mentioned NO js is loaded regarding graphina.

    Hope you can solve this.

    Thanks

    Plugin Author Iqonic Design

    (@iqonicdesign)

    Hello,
    Kindly update the plugin with the latest version.

    Thank You.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Graphs not showing on website’ is closed to new replies.