Skip to content Skip to sidebar

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

Problem:
The client is experiencing a fatal error when trying to update WPML String Translation using otgs-installer-plugin.3.1.3.zip, resulting in a frozen screen during the 'activating' process and subsequent fatal errors and notices about incorrect function calls.
Solution:
We recommend updating the plugins manually. First, download the latest versions from https://wpml.org/downloads/. If your site is down due to the error, navigate to wp-content/plugins/wpml-string-translation, rename the folder to 'wpml-string-translation.deactivate' to regain backend access, then delete and replace the plugin with the downloaded version. Always update the main WPML plugin before updating WPML String Translation. Additionally, ensure you have a recent and working backup before making any changes.

If this solution does not resolve your issue or seems outdated, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If problems persist, we highly recommend opening a new support ticket 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 1 reply, has 2 voices.

Last updated by Bobby 1 year, 1 month ago.

Assisted by: Bobby.

Author Posts
June 11, 2024 at 4:38 pm #15728282

astridH-4

I have WordPress 6.5.4 and trying to:

update the following plugins:
- WPML String Translation
Tienes la versión 3.2.3. Actualiza a la 3.2.12. Ver detalles de la versión 3.2.12.
Compatibilidad con WordPress 6.5.4: Desconocida

- WPML Multilingual CMS
Tienes la versión 4.5.14. Actualiza a la 4.6.11. Ver detalles de la versión 4.6.11.
Compatibilidad con WordPress 6.5.4: Desconocida

- WPML Media
Tienes la versión 2.7.1. Actualiza a la 2.7.4. Ver detalles de la versión 2.7.4.
Compatibilidad con WordPress 6.5.4: Desconocida

I tried update WPML String Translation with otgs-installer-plugin.3.1.3.zip, then when the process shown "activating" the screen freezzes.

When reload the page I got:

Fatal error: Uncaught Error: Undefined constant WPML\LIB\WP\User::CAP_MANAGE_TRANSLATIONS in C:\web\laragon\www\alfa\wp-content\plugins\wpml-string-translation\classes\actions\class-wpml-st-remote-string-translation-factory.php:18 Stack trace: #0 C:\web\laragon\www\alfa\wp-content\plugins\wpml-string-translation\classes\actions\class-wpml-st-remote-string-translation-factory.php(11): WPML_ST_Remote_String_Translation_Factory->on_tm_loaded() #1 C:\web\laragon\www\alfa\wp-content\plugins\sitepress-multilingual-cms\classes\action-filter-loader\class-wpml-action-filter-loader.php(74): WPML_ST_Remote_String_Translation_Factory->add_hooks() #2 C:\web\laragon\www\alfa\wp-content\plugins\sitepress-multilingual-cms\classes\action-filter-loader\class-wpml-action-filter-loader.php(47): WPML_Action_Filter_Loader->load_factory_or_action('WPML_ST_Remote_...', false) #3 C:\web\laragon\www\alfa\wp-content\plugins\wpml-string-translation\plugin.php(62): WPML_Action_Filter_Loader->load(Array) #4 C:\web\laragon\www\alfa\wp-includes\class-wp-hook.php(324): wpml_st_core_loaded(Object(SitePress)) #5 C:\web\laragon\www\alfa\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 C:\web\laragon\www\alfa\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #7 C:\web\laragon\www\alfa\wp-content\plugins\sitepress-multilingual-cms\sitepress.class.php(527): do_action('wpml_loaded', Object(SitePress)) #8 C:\web\laragon\www\alfa\wp-includes\class-wp-hook.php(324): SitePress->init('') #9 C:\web\laragon\www\alfa\wp-includes\class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #10 C:\web\laragon\www\alfa\wp-includes\plugin.php(517): WP_Hook->do_action(Array) #11 C:\web\laragon\www\alfa\wp-settings.php(550): do_action('plugins_loaded') #12 C:\web\laragon\www\alfa\wp-config.php(107): require_once('C:\\web\\laragon\\...') #13 C:\web\laragon\www\alfa\wp-load.php(50): require_once('C:\\web\\laragon\\...') #14 C:\web\laragon\www\alfa\wp-admin\admin.php(34): require_once('C:\\web\\laragon\\...') #15 C:\web\laragon\www\alfa\wp-admin\index.php(10): require_once('C:\\web\\laragon\\...') #16 {main} thrown in C:\web\laragon\www\alfa\wp-content\plugins\wpml-string-translation\classes\actions\class-wpml-st-remote-string-translation-factory.php on line 18

Notice: La función is_embed ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue añadido en la versión 3.1.0). in C:\web\laragon\www\alfa\wp-includes\functions.php on line 6078

Notice: La función is_search ha sido llamada de forma incorrecta. Las etiquetas de las consultas condicionales no funcionan antes de ejecutar la consulta. Haciéndolo antes, siempre devuelven falso. Por favor, ve depuración en WordPress para más información. (Este mensaje fue añadido en la versión 3.1.0). in C:\web\laragon\www\alfa\wp-includes\functions.php on line 6078
Ha habido un error crítico en esta web. Por favor, comprueba la bandeja de entrada del correo electrónico del administrador de tu sitio para obtener instrucciones.

June 11, 2024 at 8:33 pm #15728985

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

If possible, please update the plugins manually by downloading the latest versions via https://wpml.org/downloads/ OR you can also try to go to Plugins->Add new->Commercial tab-> update.

During the update, please make sure to update the main WPML plugin first, before updating WPML String Translation.

NOTE: If your site is currently down due to this fatal error, please go to wp-content/plugins/wpml-string-translation and change the name to "wpml-string-translation.deactivate" , then you can access the backend and delete the plugin before replacing it with the latest downloaded version.

Let me know your results, please.

NOTE: Always have a recent and working backup before making any changes recommended by our team or a 3rd party

June 14, 2024 at 5:35 pm #15741000

astridH-4

Thank you very much for your help. I have manually installed the 3 plugins, and they have been installed and updated correctly. Thanks