Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Hi,
Can you please check if this issue appears when:
- only WPML plugins are activated, as it will tell us if there is an interaction issue with other plugin
- theme is set to a WordPress default like Twenty Twenty as it will tell us if there is an interaction issue with your theme
If you find that the issue is no longer there, then I suggest you activate the theme first and check if the issue is still happening. If still all working well, then there is possibly some compatibility problem with any of your plugins, so you can for example activate 3 plugins at a time and observe the problem then.
Hello Kos,
Thank you for your reply and suggestions. Once we disabled WooCommerce and all its plugins, we were able to access the Settings page and update it.
However, our website is an e-commerce platform, and we need to have WooCommerce working.
The website is nearly unusably slow, and we are getting a lot of errors in our PHP regarding WPML.
[proxy_fcgi:error [pid 2602914:tid 2603054 [client 171.6.236.253:0 AH01071: Got error 'PHP message: PHP Warning: preg_match_all(): Compilation failed: regular expression is too large at offset 53152 in /home/1440858.cloudwaysapps.com/qzhcrhvbnq/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 447', referer: hidden link
Thanks for your reply. Woocommerce is fully compatible with WPML. It could be caused by another 3rd Party Woocommerce plugin. Could you please try reactivating the plugin one at a time to see which one is causing the issue? If you're unsure, you can share temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.
Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.
Your upcoming reply will be treated with confidentiality and will only be visible to you and me.
✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.
Thanks for your reply. I've checked and it looks like you've got lots of product attributes and WPML is trying to load all translation options for the attributes, hence causing the delay.
Before I escalate this, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.
To guide you further, please adhere to these instructions:
1. View the Duplicator instructions video: hidden link
3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.
Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.
Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.
Thanks for your patience. I have some feedback, and I've applied this workaround on your Website directly. WPML > Settings > is now loading faster now. Could you check?
Workaround : WCML_Attributes::get_translatable_attributes in /wp-content/plugins/woocommerce-multilingual/inc/class-wcml-attributes.php line 303
Replace
public function get_translatable_attributes() {
$attributes = wc_get_attribute_taxonomies();
$translatable_attributes = [];
foreach ( $attributes as $attribute ) {
if ( $this->is_translatable_attribute( wc_attribute_taxonomy_name( $attribute->attribute_name ) ) ) {
$translatable_attributes[] = $attribute;
}
}
return $translatable_attributes;
}
with
public function get_translatable_attributes() {
$transient_key = 'wcml_translatable_attributes';
// Try to get cached value
$translatable_attributes = get_transient( $transient_key );
if ( false === $translatable_attributes ) {
$attributes = wc_get_attribute_taxonomies();
$translatable_attributes = [];
foreach ( $attributes as $attribute ) {
if ( $this->is_translatable_attribute( wc_attribute_taxonomy_name( $attribute->attribute_name ) ) ) {
$translatable_attributes[] = $attribute;
}
}
// Cache for 12 hours (43200 seconds)
set_transient( $transient_key, $translatable_attributes, 12 * HOUR_IN_SECONDS );
}
return $translatable_attributes;
}
The topic ‘[Closed] Settings Page Freezing’ is closed to new replies.