Skip Navigation

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

Problem:
The client was experiencing an E_ERROR in the RecommendationsManager.php file (Uncaught Error: Call to a member function get_subscription()) when trying to edit content in the admin area.

Solution:
We suggested that the error might be related to a problem with the options table, possibly missing an auto-increment index, which could happen after a migration. We recommended checking the status of the options table.

We directed the client to a thread with a similar issue that could offer a solution, advising to take a full backup of the site and database before applying any changes: https://wpml.org/forums/topic/you-are-using-an-unregistered-version-of-wpml-and-are-not-receiving/page/3/#post-11988427

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you need further assistance, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/.

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 7 replies, has 3 voices.

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

Assisted by: Waqas Bin Hasan.

Author Posts
January 22, 2024 at 2:20 pm #15211972

tatianaG-3

I am trying to: go to admin When I try to edit my content get the error

Link to a page where the issue can be seen: hidden link

I expected to see:

Instead, I got:

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.4.2
Active theme: YOOtheme (version 4.2.12)
Current plugin: WPML Multilingual CMS (version 4.6.9)
PHP version 8.1.27

Error Details
=============
An error of type E_ERROR was caused in line 400 of the file /home/whgpascn/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/src/Recommendations/RecommendationsManager.php. Error message: Uncaught Error: Call to a member function get_subscription() on null in /home/whgpascn/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/src/Recommendations/RecommendationsManager.php:400
Stack trace:
#0 /home/whgpascn/public_html/wp-includes/class-wp-hook.php(324): OTGSInstallerRecommendationsRecommendationsManager->getRecommendationStoredNotices()
#1 /home/whgpascn/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /home/whgpascn/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/admin-notices/notices/Recommendation.php(30): apply_filters()
#3 /home/whgpascn/public_html/wp-includes/class-wp-hook.php(324): OTGSInstallerAdminNoticesNoticesRecommendation::getCurrentNotices()
#4 /home/whgpascn/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#5 /home/whgpascn/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/installer/includes/admin-notices/Loader.php(31): apply_filters()
#6 /home/whgpascn/public_html/wp-includes/class-wp-hook.php(324): OTGSInstallerAdminNoticesLoader::initDisplay()
#7 /home/whgpascn/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#8 /home/whgpascn/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#9 /home/whgpascn/public_html/wp-admin/includes/class-wp-screen.php(424): do_action()
#10 /home/whgpascn/public_html/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#11 /home/whgpascn/public_html/wp-admin/admin.php(212): set_current_screen()
#12 {main}
thrown

Screenshot 2024-01-22 at 10.08.20 AM.png
January 22, 2024 at 4:59 pm #15212941

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+02:00)

Hello there,

Welcome to WPML support forum.

While one of my teammates takes care of your case I will provide you with the first debugging steps.

This error is usually associated to a problem with the options table which could be corrupted and missing auto-increment index. Have you performed any migration lately or do you have a way to check its status?

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us:
http://wpml.org/faq/provide-debug-information-faster-support/

Let us know if it helps.
Andrés

January 22, 2024 at 5:31 pm #15213043

tatianaG-3

Hola Andrés, veo que hablas español!!!

Hemos tenido que restaurar un backup de dias anteriores porque teniamos quejas de los usuarios. En esta version no se habian actualizado los plugins.

Estoy creandoi un ambiente de prueba para luego hacer nuevamente las actualizaciones y ver si se puede replicar el error.

Saludos

January 22, 2024 at 7:37 pm #15213347

tatianaG-3

No puedo entrar al debug, cuando lo intento me sale wordpress error

January 22, 2024 at 7:46 pm #15213358

tatianaG-3

Here is!!!!

January 23, 2024 at 9:34 am #15215207

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support. I am assigned this ticket and 'll try my best to help fix the problem. I hope continuing in English won't be a problem.

In the context of previous messages here, please let me know that:

- were you able to reproduce the problem in your test site?
- can you use latest version of WordPress and WPML plugins, in your test site?
--- if yes, then please try with only WPML plugins and a standard WordPress theme. Because your current theme isn't compatible with WPML (https://wpml.org/theme/yootheme/).

Looking forward.

February 5, 2024 at 1:44 pm #15266440

tatianaG-3

Hello, Please do you have some news or advance of the issue. I sent a ticket support to YOOTHEME but they are not responding at the moment.

Best regards.

February 6, 2024 at 7:43 am #15269145

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Unfortunately we don't have any update on the theme, but you can find the solution to the error mentioned earlier, in this thread: https://wpml.org/forums/topic/you-are-using-an-unregistered-version-of-wpml-and-are-not-receiving/page/3/#post-11988427

Please remember to take full backup of your site and database before applying it.