• Resolved realityman

    (@realityman)


    Hi, this plugin is great. I don’t know what exactly happened but it caused a critical error yesterday.

    It appears if I enable the Locotranslate plugin and disappears if I disable it.

    The cause that may have caused it is that I had not translated some words in the theme.
    I had some synchronization problems. I think I also deleted the translation of the Slovak language in the theme, or even in the child theme. But then I managed to translate everything but suddenly there was this critical error:

    Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-blogs/bp-blogs-activity.php:285 Stack trace: #0 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-blogs/bp-blogs-activity.php(285): sprintf('%1$s zverejnil ...', '<a href="https:...') #1 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/class-wp-hook.php(303): bp_blogs_format_activity_action_new_blog_post('<a href="https:...', Object(stdClass)) #2 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/plugin.php(189): WP_Hook->apply_filters('<a href="https:...', Array) #3 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/bp-activity-functions.php(1775): apply_filters('bp_activity_gen...', '<a href="https:...', Object(stdClass)) #4 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/classes/class-bp-activity-activity.php(976): bp_activity_generate_action_string(Object(stdClass)) #5 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/classes/class-bp-activity-activity.php(784): BP_Activity_Activity::generate_action_strings(Array) #6 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/bp-activity-functions.php(2043): BP_Activity_Activity::get(Array) #7 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/classes/class-bp-activity-template.php(242): bp_activity_get(Array) #8 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-activity/bp-activity-template.php(358): BP_Activity_Template->__construct(Array) #9 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/buddypress/activity/widget.php(10): bp_has_activities(Array) #10 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/template.php(772): require('/home/clients/4...') #11 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-core/bp-core-template-loader.php(163): load_template('/home/clients/4...', false) #12 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-core/bp-core-template-loader.php(60): bp_locate_template(Array, true, false) #13 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-templates/bp-nouveau/includes/activity/widgets.php(125): bp_get_template_part('activity/widget') #14 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/class-wp-widget.php(393): BP_Latest_Activities->widget(Array, Array) #15 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/widgets.php(831): WP_Widget->display_callback(Array, Array) #16 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/themes/buddyboss-theme/sidebar-buddypress.php(30): dynamic_sidebar('activity_right') #17 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/template.php(770): require_once('/home/clients/4...') #18 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/template.php(716): load_template('/home/clients/4...', true, Array) #19 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/general-template.php(136): locate_template(Array, true, true, Array) #20 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/themes/buddyboss-theme/buddypress.php(118): get_sidebar('buddypress') #21 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-includes/template-loader.php(106): include('/home/clients/4...') #22 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-blog-header.php(19): require_once('/home/clients/4...') #23 /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/index.php(17): require('/home/clients/4...') #24 {main} thrown in /home/clients/42c0347e91f0163ed14f232c2ce0e273/sites/sofiasocial.life/wp-content/plugins/buddyboss-platform/bp-blogs/bp-blogs-activity.php on line 285
    Na vašom webe sa vyskytla kritická chyba.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tim W

    (@timwhitlock)

    This is not an error in my plugin, or coming from my plugin.

    Sounds to me like a translation does not have correct formatting. It is the responsibility of the translator to unsure the correct number of arguments are present in the text. The editor does not currently validate this or warn about mistakes.

    Thread Starter realityman

    (@realityman)

    Thank you for the reply and the direction, anyway this is a super plugin.

    Thread Starter realityman

    (@realityman)

    For those to whom a similar thing has happened. Removing the bug was pretty much very easy.

    I got the critical error message above. i have no idea what it all means, but it said something about 3 arguments at the beginning. Somewhere in the middle of the text I found one translated word.

    I searched for it in Loco translate first in the topic. Didn’t find it. Then I went to another main plugin. There I found 3 lines where some special characters were added to the translated words. I removed those to match the original text on the left.

    The critical error disappeared, everything works.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Critical error’ is closed to new replies.