Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an Error 500 when trying to access Learndash Groups. The issue was observed when the BuddyBoss Theme or BuddyBoss Platform Plugin was activated alongside the WPML String Translation plugin.

Solution:
1. We identified PHP Fatal errors related to memory exhaustion in the debug log.
2. We advised the client to consult with their hosting provider to address server/hosting settings or resource limitations.
3. We recommended updating all plugins, as several were outdated and could be contributing to the issue.
4. If the problem persists after taking these steps, we suggested setting up a staging site for further testing, and we can provide a temporary license for BuddyBoss if necessary.

Please note that the solution provided might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we encourage you to open a new support ticket. We also highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us in the WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 13 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 3 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
February 19, 2024 at 12:58 pm #15318296

mustaphaG-2

I am trying to: access Learndash Groups

Link to a page where the issue can be seen: Dashboard WordPress

I expected to see: The groups

Instead, I got: Error 500

Tried to analyze the issue , i Found that when i deactivate BuddyBoss Theme or BuddyBoss Plateform Plugin , I no longer have the issue.
When I Contacted BuddyBoss Support, they found out that their theme an plugin got a conflict with WPML String Translation plugin.

February 20, 2024 at 11:10 am #15322114

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hello Mustapha,

Thank you for contacting the support.

Can you enable debugging in your site? so we can have more details on the error. See https://wpml.org/documentation/support/debugging-wpml/ for details.

Besides this can you please also confirm if the issue happens when only WPML plugins are active with the said theme/plugin?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the above mentioned on a staging/dev site first, so your live website isn't compromised.

Please let me know and I'll try my best to help you further on the matter.

Regards.

February 20, 2024 at 11:33 am #15322386

mustaphaG-2

hi,
Debug is already activated, in logs i don't see any thing relevant.
And yes this issue occurs only when the WPML string translation precisely is activated

February 20, 2024 at 12:50 pm #15322743

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

February 21, 2024 at 6:42 am #15325342

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access.

I checked for the issue but can't reproduce it, while I can access the Groups in LMS LearnDash (see my screencast hidden link).

The BuddyBoss Theme and the Platform were also active.

Can you please check again and provide more details on how to reproduce the problem?

I'll also advise to update the plugins to the latest versions - there are several outdated ones.

February 21, 2024 at 6:21 pm #15329971

mustaphaG-2

When i access to the link hidden link , i'm getting the problem in the screenshot attached

Screenshot 2024-02-21 192052.png
February 21, 2024 at 7:34 pm #15330267

mustaphaG-2

Btw , sometimes i get this page with critical error :

Screenshot 2024-02-21 203355.png
February 22, 2024 at 5:09 am #15331036

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

hmmm strange, I'll check again and 'll get back to you accordingly.

Thank you for the details.

February 22, 2024 at 10:27 am #15332594

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for waiting on this.

Unfortunately I still can't see that error, the situation for me is the same as I showed in my previous screen recording.

Can you record your screen and show exactly what and when this happens?

February 22, 2024 at 7:51 pm #15335497

mustaphaG-2

I just found why you couldn't reproduce the issue , in fact the problem occurs only to users that have French as default language (see attached image) , i just changed the default language of the account i provided and could reproduce the issue

Screenshot 2024-02-22 205017.png
February 22, 2024 at 8:16 pm #15335554

mustaphaG-2

Would you please chnage all this thred to private , i'l lshare more informations but they should be private

February 23, 2024 at 7:45 am #15336192

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I've enabled your next reply as private.

February 23, 2024 at 12:28 pm #15337659

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates, I'll check again as early as Monday and 'll get back to you accordingly.

It'd be great if in the meanwhile you can prepare a staging/test site, where this issue can be replicated. So I can investigate in detail without risking the live site (i.e. activating/deactivating plugins and switching themes).

I've enabled your next reply as private, in case if you'd like to provide a staging/test site.

Have a great weekend.

February 26, 2024 at 6:28 am #15342265

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I was able to reproduce the error by switching user profile language to French. Then I observed the debug.log for latest errors and found a lot of repeating errors.

I've stripped down to the most important ones, specially the ones which are "PHP Fatal error". These are the errors which break the site and mostly are about "Allowed memory size of 536870912 bytes exhausted", see the stripped down version of the errors below:

[26-Feb-2024 00:00:57 UTC] PHP Notice:  ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 00:00:59 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query INSERT INTO `wp_cron_logs` (`executed`, `duration`, `info`) VALUES (1708905658, 0, 'Running ⏳ wp-cron.php') made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('plugins_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, CronLogger\Services\WPCron->start, CronLogger\Log->start
[26-Feb-2024 00:10:02 UTC] PHP Warning:  get_headers(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/gravitzero/public_html/wp-content/plugins/buddyboss-platform/bp-core/bp-core-avatars.php on line 697
[26-Feb-2024 00:10:02 UTC] PHP Warning:  get_headers(): This function may only be used against URLs in /home/gravitzero/public_html/wp-content/plugins/buddyboss-platform/bp-core/bp-core-avatars.php on line 697
[26-Feb-2024 00:33:21 UTC] PHP Notice:  Undefined index: nonce in /home/gravitzero/public_html/wp-content/themes/buddyboss-theme/inc/plugins/learndash-helper.php on line 296
[26-Feb-2024 00:33:23 UTC] PHP Notice:  ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 00:33:28 UTC] PHP Notice:  Undefined index: nonce in /home/gravitzero/public_html/wp-content/themes/buddyboss-theme/inc/plugins/learndash-helper.php on line 296
[26-Feb-2024 00:33:32 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /home/gravitzero/public_html/wp-content/plugins/instructor-role/modules/api/class-instructor-role-groups-api-handler.php on line 1494
[26-Feb-2024 00:52:06 UTC] PHP Notice:  Undefined offset: 0 in /home/gravitzero/public_html/wp-content/themes/buddyboss-theme/learndash/ld30/learndash-sidebar.php on line 143
[26-Feb-2024 00:52:06 UTC] PHP Notice:  Trying to access array offset on value of type null in /home/gravitzero/public_html/wp-content/themes/buddyboss-theme/learndash/ld30/learndash-sidebar.php on line 143
[26-Feb-2024 00:52:27 UTC] PHP Notice:  Trying to get property 'post_type' of non-object in /home/gravitzero/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-permalinks.php on line 377
[26-Feb-2024 00:52:27 UTC] PHP Notice:  Undefined variable: parent_slug in /home/gravitzero/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-permalinks.php on line 392
[26-Feb-2024 00:52:27 UTC] PHP Notice:  Trying to get property 'post_name' of non-object in /home/gravitzero/public_html/wp-content/plugins/sfwd-lms/includes/class-ld-permalinks.php on line 392
[26-Feb-2024 01:11:16 UTC] PHP Deprecated:  Le fichier /home/gravitzero/public_html/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Template__Month.php est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 01:11:16 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_first_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 01:11:16 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_final_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 01:11:16 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 01:36:59 UTC] PHP Notice:  Undefined index: . in /home/gravitzero/public_html/wp-content/plugins/embed-any-document-plus/ead-plus.php on line 585
[26-Feb-2024 01:54:21 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 02:31:59 UTC] PHP Notice:  La fonction register_rest_route a été appelée de façon incorrecte. L'espace de nom ne doit pas commencer ou se terminer par une barre oblique. Veuillez lire <a>Débogage dans WordPress</a> (en) pour plus d'informations. (Ce message a été ajouté à la version 5.4.2.) in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 02:39:08 UTC] WordPress database error Deadlock found when trying to get lock; try restarting transaction for query UPDATE `wp_cron_logs` SET `duration` = 3 WHERE `id` = 2010555 made by do_action_ref_array('learndash_woocommerce_cron'), WP_Hook->do_action, WP_Hook->apply_filters, CronLogger\Services\WPCron->before_execute_cron_hook, CronLogger\Log->addInfo, CronLogger\Log->update
[26-Feb-2024 02:46:16 UTC] PHP Warning:  The URL <em><u>hidden link</u></em>|-|All-in-One WP Migration|-|7.79::better-search-replace/better-search-replace.php|-|Better Search Replace|-|1.4.4::buddyboss-platform/bp-loader.php|-|BuddyBoss Platform|-|2.5.51::change-login-logo/change-wordpress-login-logo.php|-|Change WordPress Login Logo|-|1.2::classic-editor/classic-editor.php|-|Classic Editor|-|1.6.3::classic-widgets/classic-widgets.php|-|Classic Widgets|-|0.3::code-snippets/code-snippets.php|-|Code Snippets|-|3.6.2::cron-logger/plugin.php|-|Cron Logger|-|1.2.1::design-upgrade-pro-learndash/design-upgrade-pro-learndash.php|-|Design Upgrade Pro for LearnDash|-|2.21.1::duplicator/duplicator.php|-|Duplicator|-|1.5.8::elementor/elementor.php|-|Elementor|-|3.19.2::elementor-pro/elementor-pro.php|-|Elementor Pro|-|3.19.2::embed-any-document-plus in /home/gravitzero/public_html/wp-content/plugins/embed-any-document-plus/lib/kernl/Puc/v4p10/UpdateChecker.php on line 434
[26-Feb-2024 03:11:48 UTC] PHP Notice:  ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 03:11:53 UTC] PHP Notice:  ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 03:19:10 UTC] PHP Deprecated:  Le fichier /home/gravitzero/public_html/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Template__Month.php est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:10 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_first_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:10 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_final_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:11 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1190
[26-Feb-2024 03:19:31 UTC] PHP Deprecated:  Le fichier /home/gravitzero/public_html/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Template__Month.php est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:31 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_first_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:31 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_final_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:31 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 03:19:36 UTC] PHP Deprecated:  Le fichier /home/gravitzero/public_html/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Template__Month.php est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:36 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_first_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:36 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_final_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:19:37 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 03:20:21 UTC] PHP Deprecated:  Le fichier /home/gravitzero/public_html/wp-content/plugins/the-events-calendar/src/deprecated/Tribe__Events__Template__Month.php est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:20:21 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_first_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:20:21 UTC] PHP Deprecated:  La fonction Tribe__Events__Template__Month::calculate_final_cell_date est obsolète depuis la version 6.0.0, aucune alternative n'est disponible. in /home/gravitzero/public_html/wp-includes/functions.php on line 6031
[26-Feb-2024 03:20:22 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 03:27:38 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1190
[26-Feb-2024 04:02:11 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 05:18:44 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 05:28:54 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1159168 bytes) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 05:28:54 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
[26-Feb-2024 05:29:12 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1159168 bytes) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 05:29:12 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
[26-Feb-2024 05:31:03 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 05:31:47 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /home/gravitzero/public_html/wp-includes/meta.php on line 1194
[26-Feb-2024 05:33:38 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1159168 bytes) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 05:33:38 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
[26-Feb-2024 05:45:11 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1159168 bytes) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 05:45:11 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
[26-Feb-2024 05:50:34 UTC] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 1159168 bytes) in /home/gravitzero/public_html/wp-includes/functions.php on line 5373
[26-Feb-2024 05:50:34 UTC] PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0

The "allowed memory exhausted" error is related to server/hosting settings (or resources) so I recommend checking with your hosting/service provider. See https://wpml.org/forums/topic/allowed-memory-size-of-536870912-bytes-exhausted-tried-to-allocate-20480-bytes/#post-11770711 for details.

There are other errors in the log which also refer to different 3rd party plugins/theme. I recommend, updating all plugins because I see several needing an update.

I haven't deactivated any plugin in your site, there are 65 plugins active, many needs an update and since it is a live site, I am unable to take risk to test directly there.

If after updating plugins and consulting with your hosting provider about resources, you still run into the same issues, I'll recommend preparing a staging site by cloning the complete site. We can arrange for a temporary license of buddyboss for testing.