Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Serefor

    (@serefor)

    Hi @ancavictoria ,

    Thank you very much for your help and support.

    I just wanted to let you know that we decided to remove TranslatePress from the website. Apart from the issue with unwanted translations, we noticed that the plugin was causing a high server load, sometimes even bringing the server down.

    Clearly, something unusual was happening in this specific site, because I use TranslatePress on other websites without any issues. However, I wasn’t able to fully debug or identify the exact cause, and given that we couldn’t afford to have these kinds of problems on a production site, we had to make the decision to remove it.

    Thank you again for your time and assistance.

    Thread Starter Serefor

    (@serefor)

    Hi @ancavictoria,

    Thanks for your response.

    I ran a query to check the domain values in the trp_gettext_en_us table, and the issue is not limited to a single plugin. The translations are coming from multiple sources, including:

    • Elementor & Elementor Pro
    • JetMenu, JetEngine, JetSearch
    • WooCommerce & various WooCommerce-related plugins
    • WP Grid Builder
    • Rank Math
    • GDPR Cookie Compliance
    • ShortPixel Image Optimizer
    • FluentSMTP & FluentForm
    • And several others

    I have attached a screenshot of the SQL query results showing the affected domains.

    Since the issue affects multiple plugins, I’m not sure if excluding specific domains in TranslatePress settings would be an effective solution. Do you have any recommendations on what could be causing this behavior and how to prevent these unwanted translations from reappearing?

    Thanks in advance!

    • This reply was modified 1 year, 2 months ago by Serefor.
    Thread Starter Serefor

    (@serefor)

    Hi @jarryd-long,

    Thank you very much for your reply, it is very helpful.

    I will investigate all the methods you comment to see which one fits best for our project.

    Best regards

    Thread Starter Serefor

    (@serefor)

    Hola @jconti,

    He probado a volver a activar ModSecurity y hacer un pedido justo después y también se ha marcado como “Procesando”, no se si tarda un poco en hacer efecto pero creo que si que es el culpable.

    Ayer añadí la excepción para la URL y he esperado a que entraran varios pedidos para confirmar que funcionaba y todo bien. Han entrado unos 5 o 6 pedidos y todos han pasado a “Procesando” directamente, así que creo que está solucionado.

    Muchas gracias por tu ayuda en todo el proceso, te lo agradezco eternamente.

    Un saludo

    Thread Starter Serefor

    (@serefor)

    Perdona @jconti,

    Te dejo el debug.log con el pedido de prueba que acabo de hacer:

    [12-Sep-2024 12:53:43 UTC] PHP Warning:  Undefined array key "Ds_Merchant_Identifier" in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woo-redsys-gateway-light/includes/class-redsysapi.php on line 56
    [12-Sep-2024 12:53:43 UTC] PHP Warning: Undefined array key "Ds_ErrorCode" in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woo-redsys-gateway-light/includes/class-redsysapi.php on line 56
    [12-Sep-2024 12:53:43 UTC] PHP Warning: Undefined array key "Ds_PayMethod" in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woo-redsys-gateway-light/includes/class-redsysapi.php on line 56
    [12-Sep-2024 12:53:45 UTC] PHP Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php on line 447
    [12-Sep-2024 12:54:05 UTC] PHP Notice: La función post ha sido llamada de forma incorrecta. No se debería acceder a las propiedades del producto directamente. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook-&gt;apply_filters, Breakdance\ActionsFilters\template_include, Breakdance\Render\getWordPressHtmlOutputWithHeaderAndFooterDependenciesAddedAndDisplayIt, Breakdance\Render\getWordPressHtmlOutput, include('/plugins/breakdance/plugin/themeless/theme-simulator/breakdance-template.php'), Breakdance\Themeless\outputHeadHtml, wp_head, do_action('wp_head'), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, revi_schema_product, WC_Abstract_Legacy_Product-&gt;__get, wc_doing_it_wrong Por favor, ve <a>depuración en WordPress</a> para más información. (Este mensaje fue añadido en la versión 3.0). in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 6078
    [12-Sep-2024 12:54:14 UTC] PHP Deprecated: ¡El gancho rest_enabled está obsoleto desde la versión 4.7.0! Usa rest_authentication_errors en su lugar. La API REST ya no se puede desactivar completamente, no obstante se puede usar el filtro rest_authentication_errors para restringir el acceso a la API. in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 6078
    [12-Sep-2024 12:54:51 UTC] PHP Notice: La función post ha sido llamada de forma incorrecta. No se debería acceder a las propiedades del producto directamente. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook-&gt;apply_filters, Breakdance\ActionsFilters\template_include, Breakdance\Render\getWordPressHtmlOutputWithHeaderAndFooterDependenciesAddedAndDisplayIt, Breakdance\Render\getWordPressHtmlOutput, include('/plugins/breakdance/plugin/themeless/theme-simulator/breakdance-template.php'), Breakdance\Themeless\outputHeadHtml, wp_head, do_action('wp_head'), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, revi_schema_product, WC_Abstract_Legacy_Product-&gt;__get, wc_doing_it_wrong Por favor, ve <a>depuración en WordPress</a> para más información. (Este mensaje fue añadido en la versión 3.0). in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 6078
    [12-Sep-2024 12:54:54 UTC] PHP Notice: La función post ha sido llamada de forma incorrecta. No se debería acceder a las propiedades del producto directamente. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), apply_filters('template_include'), WP_Hook-&gt;apply_filters, Breakdance\ActionsFilters\template_include, Breakdance\Render\getWordPressHtmlOutputWithHeaderAndFooterDependenciesAddedAndDisplayIt, Breakdance\Render\getWordPressHtmlOutput, include('/plugins/breakdance/plugin/themeless/theme-simulator/breakdance-template.php'), Breakdance\Themeless\outputHeadHtml, wp_head, do_action('wp_head'), WP_Hook-&gt;do_action, WP_Hook-&gt;apply_filters, revi_schema_product, WC_Abstract_Legacy_Product-&gt;__get, wc_doing_it_wrong Por favor, ve <a>depuración en WordPress</a> para más información. (Este mensaje fue añadido en la versión 3.0). in /var/www/vhosts/domain.com/httpdocs/wp-includes/functions.php on line 6078

    He ido a comprobar en Pedidos y se ha marcado como “Procesando” y aparecen las Notas del pedido que en los otros no aparecían, ahora sí que no entiendo nada.

    He desactivado antes ModSecurity por completo por si podía ser eso, no sé si habrá afectado.

    Aun así el error que da en debug.log no es normal no?

    Un saludo

    Thread Starter Serefor

    (@serefor)

    Gracias @jconti,

    Resulta que ya teníamos activado el WP_DEBUG por otros temas. Es un archivo grande así que lo he subido a Drive, he dejado todos los registros del día 11 y de hoy. Hay algunas referencias a Redsys, a ver si ves algo.

    https://drive.google.com/file/d/1sE7MgsoWJ-DRQuJDseuhcn-RXrwZmR3f/view?usp=sharing

    Por cierto, la web está en PHP 8.1 por si es de ayuda.

    Un saludo

    Thread Starter Serefor

    (@serefor)

    Hola @jconti,

    Muchas gracias por contestar tan rápido.

    Efectivamente hay un archivo fatal-errors y está relacionado con el plugin oficial de Bizum, que se utilizó en algún momento y después de la migración rompía la web al activar o desactivar cualquier plugin. Este plugin ya está eliminado ya que utilizamos el tuyo. Te lo copio de todas maneras:

    2024-09-11T08:04:42+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T08:44:36+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T13:39:08+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T13:55:16+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T13:55:32+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T14:49:05+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T14:49:17+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T14:49:43+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T16:17:52+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T16:36:01+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T17:32:29+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T22:05:02+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T22:06:02+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T22:06:33+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T22:07:02+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}
    2024-09-11T22:08:02+00:00 CRITICAL Array and string offset access syntax with curly braces is no longer supported CONTEXT: {"error":{"type":64,"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/bizum/apiRedsys/json.php","line":164},"backtrace":[{"file":"/var/www/vhosts/domain.com/httpdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php","line":401,"function":"critical","class":"WC_Logger","type":"->"},{"function":"log_errors","class":"WooCommerce","type":"->"}]}

    Sin embargo hoy, después de haber eliminado el plugin los pedidos siguen quedando “Pendiente de pago” y siguen dando un error 500. Te pego otra operación de hoy con el mismo error:

    Fecha y hora

    12/09/2024 10:31:16

    Comercio

    126761527

    Terminal

    1

    Descripción

    Pedido 473927

    Fecha de sesión

    12/09/2024

    Tipo de operación

    Autorización

    N.º pedido

    841000473927

    Resultado operación

    Autorizada

    N.º autorización

    220439

    Importe

    25,98 EUR

    Importe devuelto

    0,00 EUR

    N.º sesión

    1

    Tipo de pago

    Frictionless Visa

    Moneda

    EUR(978)

    Nº de tarjeta

    415006******4258

    País de tarjeta

    España

    IP

    85.51.35.164

    País de conexión

    España

    Código tipo operación

    0

    Permite devolución

    Si

    Cód. ECI

    05 - Segura

    Exención enviada por el comercio

    No se ha enviado exención

    Exención tras análisis PSD2 del SIS

    No se ha fijado exención

    Respuesta TRA

    No se ha pasado el análisis TRA

    Acción a aplicar

    Autenticar

    Resumen operación

    Se elimina el CVV en el mensaje de autorización

    Detalle de la notificación 1

    Fecha y hora

    12/09/2024 10:32:06

    Tipo notificación

    HTTP

    Modo de comunicación

    Síncrona

    Resultado operación

    0000

    Cod. respuesta servidor

    Error (Server returned HTTP response code: 500 for URL: https://domain.com/?wc-api=WC_Gateway_redsys)

    Destino notificación

    https://domain.com/?wc-api=WC_Gateway_redsys

    Datos notificación

    Ds_SignatureVersion=HMAC_SHA256_V1&Ds_MerchantParameters=eyJEc19EYXRlIjoiMTIlMkYwOSUyRjIwMjQiLCJEc19Ib3VyIjoiMTAlM0EzMiIsIkRzX1NlY3VyZVBheW1lbnQiOiIxIiwiRHNfQ2FyZF9UeXBlIjoiRCIsIkRzX0NhcmRfQ291bnRyeSI6IjcyNCIsIkRzX0Ftb3VudCI6IjI1OTgiLCJEc19DdXJyZW5jeSI6Ijk3OCIsIkRzX09yZGVyIjoiODQxMDAwNDczOTI3IiwiRHNfTWVyY2hhbnRDb2RlIjoiMTI2NzYxNTI3IiwiRHNfVGVybWluYWwiOiIwMDEiLCJEc19SZXNwb25zZSI6IjAwMDAiLCJEc19NZXJjaGFudERhdGEiOiIiLCJEc19UcmFuc2FjdGlvblR5cGUiOiIwIiwiRHNfQ29uc3VtZXJMYW5ndWFnZSI6IjEiLCJEc19BdXRob3Jpc2F0aW9uQ29kZSI6IjIyMDQzOSIsIkRzX0NhcmRfQnJhbmQiOiIxIiwiRHNfUHJvY2Vzc2VkUGF5TWV0aG9kIjoiODAifQ==&Ds_Signature=aOrOItLkdxhKPz3Gw3jCFWwhetdnp42nX2oWKQK_jeo=

    Detalle de la notificación 2

    Fecha y hora

    12/09/2024 10:32:06

    Tipo notificación

    E-Mail

    Modo de comunicación

    Asíncrona

    Resultado operación

    0000

    Cod. respuesta servidor

    Correcto (OK)

    Destino notificación

    [email protected]

    Datos notificación

    Ds_TransactionType:0; Ds_Card_Country:724; Ds_ProcessedPayMethod:80; Ds_Card_Brand:1; Ds_Order:841000473927; Ds_Date:12/09/2024; Ds_SecurePayment:1; Ds_Hour:10:32; Ds_Response:0000; Ds_AuthorisationCode:220439; Ds_Currency:978; Ds_ConsumerLanguage:1; Ds_MerchantCode:126761527; Ds_Card_Type:D; Ds_Terminal:001; Ds_Amount:2598; Server URL: sis.redsys.es; Si desea desactivar este tipo de notificaciones, acceda al portal de administración del tpv virtual (https://canales.redsys.es/portal) y en la configuración de su terminal establezca uno de lo siguientes valores de notificación ON-LINE: HTTP, HTTP (si falla, envia email al comercio) o sin notificación ON-LINE;

    En los registros de WooCommerce no veo ningún fatal-errors de hoy:

    Un saludo

    Thread Starter Serefor

    (@serefor)

    Hi Alex,

    Thanks for your reply.

    I was able to exclude the problematic strings and fix the problem.

    I didn’t understand why those strings weren’t working properly when the rest of the site was, but the important thing is that it’s fixed.

    Thanks a lot for your help.

    Thread Starter Serefor

    (@serefor)

    Hi @alexcozmoslabs,

    Thanks for your reply.

    I have already tried to have 2 listing grids, one for each language, restricted by Elementor with the TranslatePress integration, but the result is the same, the query is not applied in the secondary language.

    I thought it was a problem with TranslatePress, but if as you say it is a Jet Engine problem, I will open a support ticket with Crocoblock to see if I can find a solution.

    Thanks for your help

    Thread Starter Serefor

    (@serefor)

    I tried this option but could not find a way to schedule it 2 times a day, at 12pm and 00am.

    So I decided to create two cron jobs at each of the times I need it to call a cron_purge.php file with this code:

    <?php
    require( './wp-load.php' );
    if ( defined('LSCWP_V')) {
    do_action( 'litespeed_purge_all' );
    }

    As explained here:

    https://ww.wp.xz.cn/support/topic/auto-purge-site-with-cron-job/

    And it works!

    @qtwrk Thanks for your help

    • This reply was modified 2 years, 3 months ago by Serefor.
    Thread Starter Serefor

    (@serefor)

    In all Single Product, Shop Page, Home and all categories. The best thing to do would be to purge the whole page, right?

    Thread Starter Serefor

    (@serefor)

    How could I do that? Through a cron job? Can you give me an example?

    Thanks

    Thread Starter Serefor

    (@serefor)

    Hey @iovamihai,

    Of course I did! I left a fully deserved review.

    Thanks again!

    Serefor

    Thread Starter Serefor

    (@serefor)

    Hello @iovamihai,

    The code works perfectly!

    Thank you so much for your speedy and generous help. I couldn’t have done it without your support.

    You saved my day.

    Many congratulations for this amazing plugin.

    Regards!

    Serefor

Viewing 14 replies - 1 through 14 (of 14 total)