[Geschlossen] Website goes Down when activating WPML
Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.
Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.
Sun
Mon
Tue
Wed
Thu
Fri
Sat
-
8:00 – 13:00
9:00 – 13:00
9:00 – 13:00
8:00 – 12:00
8:00 – 12:00
-
-
14:00 – 17:00
14:00 – 18:00
14:00 – 18:00
13:00 – 17:00
13:00 – 17:00
-
Zeitzone des Supporters: Europe/Zagreb (GMT+02:00)
I haven't increased the Memory Limit, it stayed the same and the performance is still the same.
Also our Homepage is not loaded the right way, with the OLD WPML we used to have another Homepage - how can we restore it?
Again, we haven't increased it and it didn't change anything. The website went down several times the last hour and as well, Caching won't help anything here.
Ok, for the "WordPress database error MySQL server has gone away", in one of the cases we had it was caused because this option was active. I deactivated it and the site seems to load faster for me.
I deactivated it just now, right after you sent me logs as we had some cases where server hit "WordPress database error MySQL server has gone away" and this helped in one of such cases.
Given the error log from above - it seems that there might be an issue with SQL server not responding to requests (the rows: #10 /home/dartera/bck.one/wp-includes/functions.php(5388): wp_die()
#11 /home/dartera/bck.one/wp-includes/class-wpdb.php(2277): dead_db())
In our opinion, this should be investigated by the hosting, there should be server logs with the same timestamp why this is happening.
Perhaps a temporary workaround would be to add a case to check if the result is null and return. To do that, replace : \SitePress::get_current_language in wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php with:
function get_current_language() {
/**
* @var WPML_Request $wpml_request_handler
* @var WPML_Language_Resolution $wpml_language_resolution
*/
global $wpml_request_handler, $wpml_language_resolution;
if ( ! $this->this_lang ) {
if ($wpml_request_handler !== null) {
$this->set_this_lang( $wpml_request_handler->get_requested_lang() );
}
return;
}
if ( ! $this->this_lang ) {
if ($wpml_request_handler !== null) {
$this->set_this_lang( $this->get_default_language() );
}
return;
}
return $wpml_language_resolution->current_lang_filter( $this->this_lang, $wpml_request_handler );
}
Can you try the above?
Also, I marked replies with logs as private.
Das Thema „[Geschlossen] Website goes Down when activating WPML“ ist für neue Antworten geschlossen.