Skip Navigation

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

Problem:
The client was trying to network activate WPML Multilingual CMS on a WordPress Multisite installation but encountered issues.

Solution:
1. We asked the client to enable error logging by adding the following lines to the

wp-config.php

file:

define('WP_DEBUG', true);<br />define('WP_DEBUG_LOG', true);<br />define('WP_DEBUG_DISPLAY', false);

2. After reviewing the debug.log file, we determined that the issue was not with WPML but with the "MarceloSolis" theme.
3. We advised the client to switch to a default theme like "Twenty Twenty-One" to see if the issue persisted.
4. We suggested downloading the latest version of WPML from the WPML account downloads page and trying to activate it.
5. If the problem continued, we recommended deactivating all plugins and then trying to activate WPML and the String Translation, followed by reactivating other plugins one by one.
6. The client resolved the issue by updating the plugin.

If the solution provided here does not apply to your case, or if it seems outdated, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you still encounter problems, please do not hesitate to open a new support ticket. Contact WPML support for further assistance.

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

Last updated by Prosenjit Barman 1 year, 1 month ago.

Assisted by: Prosenjit Barman.

Author Posts
April 15, 2024 at 1:39 am #15516876

Marcelo Solis

Tell us what you are trying to do? I am trying to network activate WPML Multilingual CMS.

Is there any documentation that you are following? No.

Is there a similar example that we can see? Yes. I attached an image. This is a WordPress Multisite.

What is the link to your site? hidden link

Screenshot 2024-04-14 at 6.32.09 PM.jpg
April 15, 2024 at 7:24 am #15517287

Dražen
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.

Please enable error logging that will save all errors in a file called debug.log, log file inside the /wp-content/ directory.

To do so, please add the following

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false);

Once you have added those lines to your wp-config.php file, please try andreplicate the issue. Then go to your installation's wp-content folder and find the "debug.log" file that should've appeared by now (it will appear if it encounters an error in your server).

Then, upload that file into a storage platform of your choosing (Google Drive, Dropbox, etc) and send me the link (make sure it's set as "public" otherwise i won't be able to access its content) so i can download it and take a look at it, and determine where to go from there.

Regards,
Drazen

April 17, 2024 at 5:15 am #15529019

Marcelo Solis

Here's the link to the debug.log zip:
hidden link

Thank you.

April 17, 2024 at 11:00 am #15531110

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

I've taken over this ticket and would be happy to assist you further.

Thank you for sharing the error log. I have thoroughly inspected the log file and did not find any issues originating from WPML or its add-ons in the stack traces. The majority of the fatal errors are being generated by the "MarceloSolis" theme, specifically from the file `templates/post/content.php:12`.

Here is the full stack trace: `PHP Fatal error: Uncaught Error: Call to a member function get() on null in /www/wp-content/themes/MarceloSolis/templates/post/content.php:12`.

Since the fatal error appears to be coming from the theme, could you please switch to a default theme like "Twenty Twenty-One" and check if the issue with activating the WPML Plugin persists? This will help determine if the problem is specifically related to the theme.

If the issue persists even after that, you can download the latest version of WPML(4.6.10) from your WPML.ORG account(https://wpml.org/account/downloads/) and then try to install and activate the plugin.

Let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 17, 2024 at 2:29 pm #15533255

Marcelo Solis

OK, I'll try it and get back to you.
Thank you.

April 17, 2024 at 5:37 pm #15534390

Marcelo Solis

Hello,

Question: Do I need to buy the latest version? The link pointing to my account takes me to v 3.1.3

April 17, 2024 at 5:54 pm #15534432

Marcelo Solis

So far, trying a WP theme did not fix the problem.

April 18, 2024 at 4:36 am #15535327

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for the update.

By clicking on the "Download WPML Manually" link (Screenshot: hidden link) from the Downloads page, you'll be able to access the latest version of WPML and its add-ons. Please download the most recent version of WPML from there.

Once you have installed the latest version, please try to activate it and check if you're still having the issue.

If the problem continues, it might be due to a conflict between plugins. I kindly request you to deactivate all plugins on your site, and then try activating WPML and the String Translation. If the activation is successful, you can gradually reactivate the other plugins. Please ensure you take a backup of your site before proceeding with these steps.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 18, 2024 at 3:14 pm #15539934

Marcelo Solis

I'll go ahead and get back to you 👋🏻

April 19, 2024 at 4:08 am #15541651

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi,

Sure! Please check and let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

April 19, 2024 at 4:18 pm #15544674

Marcelo Solis

Problem solved!
Thank you very much 🙏🏻🙏🏻🙏🏻🙏🏻

April 22, 2024 at 3:03 am #15547921

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Glad to hear that updating the plugin has solved the issue. Please feel free to reach us if you ever need any assistance with our plugin. We will be happy to help.

For now, please consider marking this ticket as resolved. 🙂

Best regards,
Prosenjit