Support » Plugin: Koko Analytics » ClassicPress Error 500

  • Resolved mountbatt

    (@mountbatt)


    Hi, since 1 or 2 versions I get a blank Dashboard in combination with the latest “ClassicPress” CMS. I downgraded to 1.0.12 and it works … Any idea what can be the problem?

    Best
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Lap

    (@lapzor)

    Hi,

    I don’t think we officially support ClassicPress, but I would still like to know what the actual underlying PHP error was. There should be a more detailed error in your Apache/PHP error log. If you don’t know where to find that, you can ask your hosting provider.

    If we know the detailed error message there is more chance that we can fix this.

    Thanks!

    Thread Starter mountbatt

    (@mountbatt)

    Hi,

    i found this message:

    [Mon Jul 20 15:29:43 2020] [php7:notice] [pid 20305] [client 62.143.XX.XXX] [host www.example.com] ClassicPress database error Unknown column 'term_order' in 'field list' for query \n\t\t\t\t\tSELECT count(*) as cnt, max(term_order) as max, min(term_order) as min \n\t\t\t\t\tFROM wp_aero_terms AS terms \n\t\t\t\t\tINNER JOIN wp_aero_term_taxonomy AS term_taxonomy ON ( terms.term_id = term_taxonomy.term_id ) \n\t\t\t\t\tWHERE term_taxonomy.taxonomy = 'prodcategory'\n\t\t\t\t made by require_once('wp-admin/admin.php'), do_action('admin_init'), WP_Hook-]do_action, WP_Hook-]apply_filters, Hicpo-]refresh
    

    I totally agree, that you dont want to support ClassicPress. But maybe the fix is easy 🙂 But does “term_order” has something todo with Koko? Maybe the error does not come in combination with ClassicPress but with a term_order Plugin? I use “Intuitive Custom Post Order” but disabling this does not help.

    PHP Version 7.2

    • This reply was modified 3 years, 8 months ago by mountbatt.
    • This reply was modified 3 years, 8 months ago by mountbatt.
    • This reply was modified 3 years, 8 months ago by mountbatt.
    Plugin Support Lap

    (@lapzor)

    It should be a line with “error”, not “notice”.

    What you can do is install the latest version again, trigger the error a bunch of times in a row and then quickly check the error log, that makes it easier to spot the related error.

    Thread Starter mountbatt

    (@mountbatt)

    There is NO other “message” in error log.
    In Debug Console i get:

    Failed to load resource: the server responded with a status of 500 (Internal Server Error)

    Wordpress Dashboard loads until this:

    https://www.dropbox.com/s/8fcrjv520l4uhqd/Screenshot%202020-07-20%2019.48.27.png?dl=0

    Thread Starter mountbatt

    (@mountbatt)

    I found something:

    If i uncomment line 37 in src/class-admin.php it works on dashboard! (Version 1.0.15)

    //wp_set_script_translations( 'koko-analytics-dashboard-widget', 'koko-analytics' );

    But not here: wp-admin/index.php?page=koko-analytics
    For this page i have to uncomment line 56 too.

    • This reply was modified 3 years, 8 months ago by mountbatt.
    • This reply was modified 3 years, 8 months ago by mountbatt.
    Thread Starter mountbatt

    (@mountbatt)

    The function wp_set_script_translations is new in WP 5.0. This is the error cause I use ClassicPress (based on WP 4.x). So your plugin does not support WordPress lower than 5.0 now! (There is 4.6 compatibility written on the plugins page)

    • This reply was modified 3 years, 8 months ago by mountbatt.
    Thread Starter mountbatt

    (@mountbatt)

    Simple fix in src/class-admin.php:

    
    if ( function_exists( 'wp_set_script_translations' ) ) {
      wp_set_script_translations( 'koko-analytics-dashboard-widget', 'koko-analytics' );
    }
    
    
    if ( function_exists( 'wp_set_script_translations' ) ) {
      wp_set_script_translations( 'koko-analytics-admin', 'koko-analytics' );
    }
    
    Plugin Author Danny van Kooten

    (@dvankooten)

    Hey Tobias,

    Nice find. Merged your PR, we’ll be pushing an update for this soon! Thanks for helping out here.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘ClassicPress Error 500’ is closed to new replies.