Skip Navigation

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

Problem:
The client encountered a fatal error when trying to activate the OTGS Installer and WPML Multilingual CMS plugins, resulting in a class not found error. Additionally, when the WPML String Translation plugin was activated, the site experienced a critical error and could not load the Spanish homepage.
Solution:
1. We recommended removing the OTGS installer.
2. We advised the client to create a full website backup.
3. We instructed the client to manually download the WPML Multilingual CMS plugin from the WPML downloads page, upload it to the website, and activate it.
4. If the issue persisted, we suggested performing a compatibility test by deactivating all non-WPML plugins and switching to a default theme to identify any conflicts.
5. We manually uploaded and extracted the WPML files to ensure no files were missing and asked the client to try activating the plugin again.
6. Since a new issue arose, we created a separate ticket to handle it, as per our support policy of one issue per ticket.

If this solution doesn't look relevant, please open a new support ticket here.

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 2 voices.

Last updated by Mihai Apetrei 1 year, 6 months ago.

Assisted by: Mihai Apetrei.

Author Posts
November 20, 2023 at 3:35 am #14872533

moodyH

once installed OTGS, it gives a fatal error as follows:

Error Details
=============
An error of type E_ERROR was caused in line 6 of the file /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/otgs-installer-plugin/vendor/otgs/installer/includes/functions-core.php. Error message: Uncaught Error: Class "WP_Installer" not found in /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/otgs-installer-plugin/vendor/otgs/installer/includes/functions-core.php:6
Stack trace:
#0 /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/otgs-installer-plugin/vendor/otgs/installer/installer.php(15): WP_Installer()
#1 /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/otgs-installer-plugin/vendor/otgs/installer/loader.php(227): include_once('...')
#2 /home/fcadmin/domains/fanclb.com/public_html/wp-includes/class-wp-hook.php(324): wpml_installer_instance_delegator()
#3 /home/fcadmin/domains/fanclb.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /home/fcadmin/domains/fanclb.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /home/fcadmin/domains/fanclb.com/public_html/wp-settings.php(621): do_action()
#6 /home/fcadmin/domains/fanclb.com/public_html/wp-config.php(96): require_once('...')
#7 /home/fcadmin/domains/fanclb.com/public_html/wp-load.php(50): require_once('...')
#8 /home/fcadmin/domains/fanclb.com/public_html/wp-admin/admin.php(34): require_once('...')
#9 /home/fcadmin/domains/fanclb.com/public_html/wp-admin/plugins.php(10): require_once('...')
#10 {main}
thrown

November 21, 2023 at 10:41 am #14885513

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there.

Sorry for the delayed response - it has been a full queue for the past few days and it can take a bit longer to respond.

Now, in regards to your current situation, that can happen either due to the current server settings/limitations or due to one (or more) active plugins (or the current theme) that is not fully compatible with WPML.

Let's try something else and let's avoid using the OTGS installer for now.

1. Remove the OTGS installer
2. Create a full website backup
3. Then go here (https://wpml.org/account/downloads/) > Select "Download WPML manually" > download the WPML Multilingual CMS plugin and then go to your website's backend > Plugins > Add new > Upload the zip file you just downloaded > then install and activate WPML.

Let's see if it works like that.

If it works like this, you should be able to download the other plugins/add-ons that you want from that same URL that I shared with you above and upload + install them.

Please let me know how things go. I will be waiting for your response.

Mihai Apetrei

November 22, 2023 at 2:39 am #14892449

moodyH

Thanks for the reply.
I installed "WPML Multilingual CMS, Version 4.6.7.

when I try to activate it, this is the error I am getting:

Plugin could not be activated because it triggered a fatal error.

Thanks
M

November 22, 2023 at 5:41 pm #14901639

moodyH

Hi, i enabled the debug log.... i am copying the debug log below:

[22-Nov-2023 17:36:14 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:14 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:16 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:16 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:17 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:17 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:19 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:19 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:21 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:21 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:24 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:30 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:30 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:34 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:34 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:40 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:40 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:48 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:48 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223
[22-Nov-2023 17:36:49 UTC] PHP Fatal error: Uncaught Error: Class "Composer\Autoload\ComposerStaticInit7962ced4684423dd4a24478d958818d5" not found in /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_real.php:35
Stack trace:
#0 /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/autoload.php(7): ComposerAutoloaderInit7962ced4684423dd4a24478d958818d5::getLoader()
#1 /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.php(54): require_once('...')
#2 /home/fcadmin/domains/fanclb.com/public_html/wp-admin/includes/plugin.php(2318): include_once('...')
#3 /home/fcadmin/domains/fanclb.com/public_html/wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
#4 /home/fcadmin/domains/fanclb.com/public_html/wp-admin/plugins.php(58): activate_plugin()
#5 {main}
thrown in /home/fcadmin/domains/fanclb.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/autoload_real.php on line 35
[22-Nov-2023 17:36:50 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1212
[22-Nov-2023 17:36:50 UTC] PHP Notice: unserialize(): Error at offset 10897 of 54365 bytes in /home/fcadmin/domains/fanclb.com/public_html/wp-content/themes/ann/includes/utils.php on line 1223

November 25, 2023 at 11:52 am #14922241

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and thank you for all the valuable information.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please make a backup of the site files and database before providing us access.

- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this: hidden link

I will be waiting for your response.

Kind regards,
Mihai Apetrei

November 29, 2023 at 4:49 pm #14954241

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and thank you for the credentials.

1. This error that you get when you try to enable WPML, it seems that it is a pretty general type of error, not sure that this is related to just WPML:
hidden link

Also, the error that you were receiving when you were trying to activate the OTGS Installer plugin seems to be related to the PHP version used on the server or, again, to server settings. I created this custom search so that you can find the existing tickets on that exact same error message:
hidden link

I removed WPML from your site and manually uploaded and extracted all the files just to make sure that there were no missing files because we had this part of text inside the error message: "not found in".

Can you please create a full website backup and then try to activate the latest version of WPML that I already installed here:
hidden link

Please let me know if it worked this time or if you are still getting an error.

2. If that did not work, another thing you can do is try a compatibility test so that we can see if, somehow, this issue doesn't come from (at least) one of the active plugins or the active theme.

- create a full website backup
- disable all plugins except WPML and its add-ons
- check if the issue is happening again

- if it's not, reactivate your plugins one by one, checking every time if the issue shows up again so that you can understand which plugin is causing that issue

If the issue happens even with the non-WPML plugins disabled:
- leave all the non-WPML plugins deactivated

- switch to a default theme like TwentySeventeen

- try to recreate the issue now

If you have the chance, it would be best to do this in a staging (testing) environment.

Please let me know how that goes and if following any of these steps solved your issue or brought any change.

I will be waiting for your response.

Mihai

November 30, 2023 at 5:04 am #14957711
moodyH

the home page loads if i disable "WPML String Translation"
but when i load the spanish home, i get this error:
hidden link

the site build using elementor so i will need the String plugin but when i activate it, the site dont load at all, pleaes let me know if i should keep it inactive.

how can i fix the loading issue of the spanish home?

New threads created by Mihai Apetrei and linked to this one are listed below:

https://wpml.org/forums/topic/split-fatal-error-cant-load-spanish-homepage/

December 4, 2023 at 12:32 pm #14986643

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hi there and welcome back!

I am happy to hear that the initial issue was resolved and that you were able to install the plugin.

It seems however that you are now dealing with a new issue.

Per our Support Policy, we can handle only one issue per ticket.

Continuing with one issue per ticket helps not only supporters to focus on one issue at once but also enables other users to find solutions to their questions faster.

I am moving this new issue to a new ticket and I am getting back to you in the new ticket with some steps that I will need you to follow to speed things and and help us figure out what is causing the new error.

You can find the new ticket I created here:
https://wpml.org/forums/topic/split-fatal-error-cant-load-spanish-homepage/

You can mark this current one as resolved.

Mihai