Jump to content

With Dynamic Field Translations enabled, Product Duplicate runs until the PHP-FPM/Nginx timeout


Recommended Posts

Enabling Configuration → System Settings → General Settings → Localisation 

With Dynamic Field Translations enabled, Product Duplicate runs until the PHP-FPM/Nginx timeout.

PHP-FPM slowlog shows execution repeatedly inside WHMCS core classes: WHMCS\Language\Loader\DatabaseLoader, DynamicTranslation, Sanitize::purifyHtml(), and HTMLPurifier.

With it
disabled, the exact same operation completes within seconds.
 

WHMCS Admin:
Configuration → System Settings → Products/Services
Action: Duplicate Product

Dynamic Field Translations ENABLED:
- request runs >300 seconds
- ends in 504 Gateway Timeout

Dynamic Field Translations DISABLED:
- same product duplicates within seconds

PHP-FPM slowlog:
script_filename = .../ordadmin/configproducts.php

Stack:
convertFromUTF8()
HTMLPurifier::purify()
WHMCS\Input\Sanitize::purifyHtml()
WHMCS\Language\DynamicTranslation::getTranslationAttribute()
WHMCS\Language\Loader\DatabaseLoader::load()
Symfony Translation\Translator...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated