• Resolved Peter Smits

    (@psmits1567)


    Hi Pedro,

    Installed this plugin on my WordPress, the stats are not loaded for every plugin.
    I see the following errors is my debug
    jquery.js?ver=3.6.1:10135 POST https://psmits.com/wp-admin/admin-ajax.php 500
    admin-plugins.js?ver=1.2.1:52 Translation Stats Ajax Error.
    admin-plugins.js?ver=1.2.1:50 End plugin ‘wpforms-lite’ Translation Stats update.
    admin-plugins.js?ver=1.2.1:50 End plugin ‘so-css’ Translation Stats update.
    Any idea what causes this ?
    Regards,
    psmits1567

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Pedro Mendon?a

    (@pedromendonca)

    Hi Peter,

    Can you give me some more details on your install and the plugins you are trying to see the translation stats?

    To start, you can select which plugins you want to see the Stats, and you must select it on the Settings > Translation Stats options page. Have you checked the plugin you want to see the Stats and saved the settings?

    Second, have you tested with only Translation Stats and the plugin you want to see the stats active?

    I’ve just tested with a brand new install, with some plugins you have on the error message, WPForms Lite and SiteOrigin CSS, both enabled, and I have no errors, both plugins are on wp.org and I can get and see both Stats.

    What language is your site/user?
    What is your WP and PHP versions?
    Have you customized any of the plugin default options?

    Thread Starter Peter Smits

    (@psmits1567)

    Hi Pedro,

    Here are my answers to your questions
    I started with setting the plugins I want to see the details for
    My installation is running on PHP 8.0
    My WP version is 6.1 the latest.
    The language locale is Dutch e.g. nl_NL
    I have not yest tested with only Translation Stats active, but for that plugin stats are shown.
    I have not customized any of the default settings of the plugin
    I see several 500 errors and have the inpression that a memory problem is created when the plugin runs.
    The next step is disable all plugins I do not directly need

    Thread Starter Peter Smits

    (@psmits1567)

    Hi Pedro,

    Here are my answers to your questions
    I started with setting the plugins I want to see the details for
    My installation is running on PHP 8.0
    My WP version is 6.1 the latest.
    The language locale is Dutch e.g. nl_NL
    I have not yest tested with only Translation Stats active, but for that plugin stats are shown.
    I have not customized any of the default settings of the plugin
    I see several 500 errors and have the inpression that a memory problem is created when the plugin runs.
    The next step is disable all plugins I do not directly need
    With only Translation Stats, there are no errors.
    It seems that one of the plugins within the settings is causing the problem
    So I need to set them one by one to see which one is causing the crash

    Thread Starter Peter Smits

    (@psmits1567)

    Hi Pedro,

    Further investigation reveals that it is the amount and size of the plugin that causes my problem
    If I set Page Builder SiteOrigin to show stats together with several other smaller plugins, then my installation seems to run out of memory. If I remove Page Builder, but set UpdraftPlus active, the same problem as back again

    Plugin Author Pedro Mendon?a

    (@pedromendonca)

    Hi Peter,

    The messages “End plugin ‘plugin-slug’ Translation Stats update.” means that plugin stats ajax request was succeded. Even if a plugin has no stats (bad i18n), the request should be succeded, being the response the info that the plugin isn’t prepared for i18n.

    The message “Translation Stats Ajax Error.” means that particular ajax request to get the translation stats for a plugin has failed.

    I’ve updated the plugin to v1.2.2 with a more detailed console log for those cases.
    You can now see which plugin is failing the Ajax request.

    Still, this ajax request failing seems to me that is a server load issue.

    With the new v1.2.2 console logging maybe now you can have a more clear idea of the problem.

    Thread Starter Peter Smits

    (@psmits1567)

    Hi Pedro,

    Ok will test with this new version today.
    The more plugins are selected then the problem starts. With only a few plugins selected it works.
    My WordPress installation is running within a virtual server hosted somewhere else. I have another WordPress site, running on a different type of server, if the problem persists I will take that installation and test what happens.

    Thread Starter Peter Smits

    (@psmits1567)

    Hi Pedro,
    I installed the new version, but the problem persists
    This is a piece of the log

    [07-Nov-2022 18:11:42 UTC] PHP Notice:  include_once(): Read of 1659 bytes failed with errno=12 Cannot allocate memory in plugins/so-widgets-bundle/widgets/slider/slider.php on line 10
    [07-Nov-2022 18:11:42 UTC] PHP Notice:  file_get_contents(): Read of 8192 bytes failed with errno=12 Cannot allocate memory in wp-includes/functions.php on line 6620
    [07-Nov-2022 18:11:42 UTC] PHP Notice:  require(): Read of 7588 bytes failed with errno=12 Cannot allocate memory in /wp-content/themes/fameup/functions.php on line 16
    
    /wp-includes/l10n.php(139): get_locale()
    /httpdocs/wp-includes/l10n.php(766): determine_locale()
    /wp-includes/load.php(1395): load_textdomain()
    /wp-includes/class-wp-fatal-error-handler.php(174): wp_load_translations_early()
    /wp-includes/class-wp-fatal-error-handler.php(154): WP_Fatal_Error_Handler->display_default_error_template()
    /wp-includes/class-wp-fatal-error-handler.php(58): WP_Fatal_Error_Handler->display_error_template()
    #6 [internal function]: WP_Fatal_Error_Handler->handle()

    I removed pieces of text to not reveal my system

    Plugin Author Pedro Mendon?a

    (@pedromendonca)

    Hi,

    The v1.2.2 doesn’t solve anything, just prints a more detailed console log to allow to identify clearly which Ajax requests might fail.

    The above log data doesn’t show any failure on Translation Stats, only some server memory failure.
    Can you provide some detailed server specs?

    Have you found which plugin/theme produces this error?
    Also, where do you see these errors? On the plugins page or the settings page?

    Thread Starter Peter Smits

    (@psmits1567)

    Hi,

    Yes that is what I understood.
    These errors are within my debug.log
    I can see that the errors are generated, because within the plugin list, the spinner keeps turning at a plugin. Others do get a result. It is not a specific plugin that causes this, it is the amount of plugins selected to fetch the data for.
    If I only have one or two plugins selected, then it works as expected. The server seems to run out of memory when more then a couple of plugins are selected

    Plugin Author Pedro Mendon?a

    (@pedromendonca)

    Hi @psmits1567,

    Just released v.1.2.4 that queues the Ajax requests in sequence, so you won’t have a bunch of requests all at the same time. Each request is added to the queue and starts after the previous one.

    Let me know if this solves your issue.

    Thread Starter Peter Smits

    (@psmits1567)

    Hi @pedromendonca,

    Well done with the new version no more errors, and the statistics are shown pretty quick!
    No more errors within my debug.log

    Thanks for your efforts

    Plugin Author Pedro Mendon?a

    (@pedromendonca)

    You’re welcome.
    Thanks for reporting it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error 500 when fetching stats’ is closed to new replies.