• Resolved rkp

    (@melonmedia)


    Hey guys,

    Unfortunately I experience issues when running version 1.4.6.1 of your lovely plugin. After I open the Statistics page through URL “wp-admin/index.php?page=burst” it throws following error:

    [Error] Failed to load resource: the server responded with a status of 500 () (tracking, line 0)

    In detail it seems to be thrown once the following resource is called:

    https://www.domain.com/wp-json/burst/v1/do_action/tracking?_locale=user

    There is no error thrown with WP debug in relation to your plugin. Interestingly the error is not thrown for your error and debugging version available on GitHub. Everything seems to work smooth with that one.

    Can you do anything about it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Hessel de Jong

    (@hesseldejong)

    Hi @melonmedia,

    Can you maybe enable debugging with that branch enabled and tell me if there is anything in the debug.log?

    Kind regards,
    Hessel

    Thread Starter rkp

    (@melonmedia)

    I’m more than happy to do that. The debug.log has the following content for me:

    [23-Sep-2023 08:57:36 UTC] PHP Deprecated:  Creation of dynamic property BNFW::$translations is deprecated in /wp-content/plugins/bnfw/bnfw.php on line 89
    [23-Sep-2023 08:57:36 UTC] PHP Deprecated:  Creation of dynamic property BNFW::$translations is deprecated in /wp-content/plugins/bnfw/bnfw.php on line 89
    [23-Sep-2023 08:57:37 UTC] response: WP_REST_Response Object
    (
        [data] => Array
            (
                [data] => Array
                    (
                        [live] => Array
                            (
                                [value] => 0
                                [tooltip] => Die Anzahl der Besucher, die im Moment auf der Seite sind. Diese Zahl wird alle fünf Sekunden aktualisiert.
                            )
    
                        [today] => Array
                            (
                                [value] => 0
                                [tooltip] => Dies ist die Gesamtzahl individueller Besucher für heute.
                            )
    
                        [mostViewed] => Array
                            (
                                [title] => -
                                [value] => 0
                                [tooltip] => Dies ist die heute am h?ufigsten besuchte Seite.
                            )
    
                        [referrer] => Array
                            (
                                [title] => -
                                [value] => 0
                                [tooltip] => Von dieser Website kamen die meisten Besucher.
                            )
    
                        [pageviews] => Array
                            (
                                [title] => Seitenaufrufe gesamt
                                [value] => 0
                                [tooltip] => 
                            )
    
                        [timeOnPage] => Array
                            (
                                [title] => Durchschnittliche Zeit auf der Seite
                                [value] => 0
                                [tooltip] => 
                            )
    
                    )
    
                [request_success] => 1
            )
    
        [headers] => Array
            (
            )
    
        [status] => 200
        [links:protected] => Array
            (
            )
    
        [matched_route:protected] => 
        [matched_handler:protected] => 
    )
    
    [23-Sep-2023 08:57:37 UTC] response: WP_REST_Response Object
    (
        [data] => Array
            (
                [data] => 0
                [request_success] => 1
            )
    
        [headers] => Array
            (
            )
    
        [status] => 200
        [links:protected] => Array
            (
            )
    
        [matched_route:protected] => 
        [matched_handler:protected] => 
    )
    Plugin Author Hessel de Jong

    (@hesseldejong)

    Thank you @melonmedia, for providing the logs.

    I’m sorry to inform you that there doesn’t seem to be any logs recorded for the path you specified: https://www.domain.com/wp-json/burst/v1/do_action/tracking?_locale=user. Please note that Burst only verifies tracking once an hour when the dashboard is accessed to avoid running the test every time data is checked. This could possibly be the reason why there are nog logs for that path. I apologize for not mentioning this in my initial response.

    Could you maybe enable error logging and then visit the dashboard? If you hover over the tracking status, you can see when the status was last checked. If the status was checked a few seconds ago, there should be logs if something was off. If the last check was longer ago, you should wait for it to be an hour ago and it will rerun the test.

    Kind regards,
    Hessel

    Plugin Author Hessel de Jong

    (@hesseldejong)

    Hi @melonmedia,

    I’m guessing it was a one-off error since I haven’t heard back from you. I’ll go ahead and close this ticket for now. Feel free to reopen, if needed!

    Kind regards,
    Hessel

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error 500 when running Statistics page’ is closed to new replies.