Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 9:00 – 15:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

This topic contains 12 replies, has 3 voices.

Last updated by Christopher Amirian 3 months ago.

Assisted by: Christopher Amirian.

Author Posts
August 20, 2024 at 9:35 am

caterinag-2

Background of the issue:
Sto cercando di risolvere un problema con il plugin Toolset che non riesce a connettersi a toolset.com. Ho aggiornato tutti i plugin WPML e ho aggiunto questa stringa a wp-config.php seguendo le istruzioni di un ticket precedente: define("OTGS_DISABLE_AUTO_UPDATES", true). Il problema persiste. Link alla pagina dove si può vedere il problema: hidden link
non ho mai installato Toolset e anche la assistenza alla installazione dei plugin di WPML non lo rileva

Symptoms:
Un messaggio di errore è apparso e il sito è diventato molto lento con diversi errori 503 del server. Il log degli errori mostra: Un errore di E_ERROR è stato causato nella linea 11 del file /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/translationproxy.class.php. Messaggio di errore: Uncaught Error: Failed opening required '/web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/translationproxy-basket.class.php' (include_path='.:/php8.1/lib/php') in /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/inc/translation-proxy/translationproxy.class.php:11

Questions:
Come posso risolvere l'errore di connessione del plugin Toolset a toolset.com?
Perché il sito è diventato molto lento e mostra errori 503 del server?
Come posso risolvere l'errore E_ERROR nel file translationproxy.class.php?

August 20, 2024 at 10:25 am
August 20, 2024 at 10:27 am #16086560

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Would you please provide the staging version of the website so we can check the database for the message problem?

You can set the next reply as private to provide the login info.

August 20, 2024 at 2:19 pm
August 22, 2024 at 4:40 pm #16096054

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Christopher is unavailable today, so I am stepping in to assist with your inquiry.

I've read this chat and accessed your staging site. However, when I go to the plugins page here: hidden link, I do not see the message about Toolset. Please see the attached screenshot. Since the message does not show on the staging site, we can't use it as an example to fix it on the live site.

Does the message still show on your live site?

Also, it occurred to me that it might be a caching issue. Please try clearing all the caching on your live site and see if the message goes away.

Regards,
Itamar.

2024-08-22_19-29-51.jpg
August 23, 2024 at 9:51 am #16098056

caterinag-2

Hi Itamar
alert message is still there in the living site

August 24, 2024 at 10:42 am #16100089

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Sorry for my late reply. I was sick.

I also checked the staging website and it seems to be working ok. Now as only the live website has that message, I need your permission to to install a plugin to access your website database on a live site and try to fix the issue there.

I will need you to have a backup of the website beforehand. If that is ok please get back to us with your permission and if the login info of the live website is changed, set the next reply as private and provide the login info.

Thanks.

August 26, 2024 at 8:34 am #16103120

caterinag-2

Hi, actually I have a severe issue that cannot let me login in. This seems to be created by WPML as well.
There was a snippet provide by WPML support to avoid htaccess to be rewrited

add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}

$wpml_root = parse_url(get_option('home'));
if ( isset( $wpml_root['path'] ) ) {
$wpml_root = trailingslashit($wpml_root['path']);
} else {
$wpml_root = '/';
}

$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);

return $rules;
}

It seems causing the issue now
Plugin corrente: WooCommerce Multilingual & Multicurrency (versione 5.3.7) Versione PHP 8.2.21 Dettagli dell'errore ==================== Un errore di E_ERROR è stato causato nella linea 232 del file /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/woocommerce-multilingual/classes/class-woocommerce-wpml.php. Messaggio di errore: Uncaught Error: Class "WCML_WC_Admin_Duplicate_Product" not found in /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/woocommerce-multilingual/classes/class-woocommerce-wpml.php:232 Stack trace: #0 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/woocommerce-multilingual/classes/class-woocommerce-wpml.php(203): woocommerce_wpml->init_full() #1 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(324): woocommerce_wpml->init() #2 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /web/htdocs/www.pievedepitti.it/home/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /web/htdocs/www.pievedepitti.it/home/wp-settings.php(700): do_action() #5 /web/htdocs/www.pievedepitti.it/home/wp-config.php(95): require_once('...') #6 /web/htdocs/www.pievedepitti.it/home/wp-load.php(50): require_once('...') #7 /web/htdocs/www.pievedepitti.it/home/wp-admin/admin.php(34): require_once('...') #8 {main} thrown

and that's what my web server support wrote me about that:
internal server error è dato dal plugin WPML che modifica all'interno del file .htaccess la direttiva da RewriteBase / a RewriteBase /en generando l'errore.

August 26, 2024 at 9:20 am #16103488

caterinag-2

UPDATING
error generated by the snippet code

An error of type E_ERROR was caused in line 54 of the file /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-headers-and-footers/includes/lite/loader.php. Error message: Uncaught Error: Failed opening required '/web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-headers-and-footers/includes/lite/auto-insert/class-wpcode-auto-insert-content.php' (include_path='.:/php8.1/lib/php') in /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/insert-headers-and-footers/includes/lite/loader.php:54 Stack trace: #0 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(324): wpcode_plugins_loaded_load_lite_files() #1 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #2 /web/htdocs/www.pievedepitti.it/home/wp-includes/plugin.php(517): WP_Hook->do_action() #3 /web/htdocs/www.pievedepitti.it/home/wp-settings.php(555): do_action() #4 /web/htdocs/www.pievedepitti.it/home/wp-config.php(95): require_once('...') #5 /web/htdocs/www.pievedepitti.it/home/wp-load.php(50): require_once('...') #6 /web/htdocs/www.pievedepitti.it/home/wp-admin/admin.php(34): require_once('...') #7 /web/htdocs/www.pievedepitti.it/home/wp-admin/update.php(16): require_once('...') #8 {main} thrown

August 26, 2024 at 9:38 am #16103706

caterinag-2

site is now on but htaccess issue still to be solved.
I kindly ask you to check the script and let me know eventually if the code is Ok or not.
I created a backup. User and password to log in are the same you used already

August 26, 2024 at 10:02 am #16103782

caterinag-2

I get this topic
https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/

and have added the code to functions.php of my child theme

add_filter('mod_rewrite_rules', 'fix_rewritebase');
function fix_rewritebase($rules){
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) ) {
$home_root = trailingslashit($home_root['path']);
} else {
$home_root = '/';
}

$wpml_root = parse_url(get_option('home'));
if ( isset( $wpml_root['path'] ) ) {
$wpml_root = trailingslashit($wpml_root['path']);
} else {
$wpml_root = '/';
}

$rules = str_replace("RewriteBase $home_root", "RewriteBase $wpml_root", $rules);
$rules = str_replace("RewriteRule . $home_root", "RewriteRule . $wpml_root", $rules);

return $rules;
}

August 26, 2024 at 11:38 am #16104175

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

The code you added in the functions.php file seems to be ok now.

Please consider as this is a matter of the "cannot connect" issue let's focus on that and not other issues.

For the other issues, you are welcome to open up another ticket and follow up.

I set the next reply as private so that you can provide the login info for the cannot connect issue.

August 26, 2024 at 11:47 am #16104300

caterinag-2

after all cleaning and imrpovement, the cannot conect message doesn't show on the linving site anymore. I contact you once again in case it comes back

August 28, 2024 at 11:19 am
August 28, 2024 at 11:21 am #16114499

caterinag-2

Hi, suddenly the Toolset error appears once again

Immagine 2024-08-28 131945.gif

The topic ‘[Closed] toolset and critical error’ is closed to new replies.