Pregunta sobre Ultimate Reviews de Wordpress:

隆No recomendado! C贸digo inestable: lleno de errores

Un usuario pregunt贸 馃憞

Me encant贸 el plugin. Hay toneladas de caracter铆sticas que podr铆an hacer de este un plugin de revisi贸n de Woocommerce perfecto.

El c贸digo del plugin est谩 lleno de TODOS los errores: active el registro de depuraci贸n y vea los registros llenos de errores generados por el plugin.

Toneladas de advertencias de PHP (que son una gran molestia cuando se intenta depurar nuestro propio c贸digo), pero tambi茅n otros errores de PHP.

Finalmente tuve que desinstalar y cambiar a otro plugin, lo cual fue una pena.

(@jaysupport)

Hace 5 meses, 2 semanas

Hola chickwithbob,

Gracias por la rese帽a. 驴Ha contactado con nuestro equipo de soporte? Ser铆a 煤til saber las notificaciones exactas que estaba recibiendo y d贸nde, para que podamos verificar esto y, con suerte, hacer las correcciones necesarias para eliminarlas.

(@chickwithbob)

Hace 5 meses, 2 semanas

Como mencion茅, 隆todo lo que tienes que hacer es debug = true en tu archivo de configuraci贸n! Entonces comience a usar su鈥 plugin.

Hay muchos errores. No estoy seguro de por qu茅 necesito hablar en apoyo; ya le he dado la informaci贸n que necesita.

(@chickwithbob)

Hace 5 meses, 2 semanas

Sin embargo, modificar茅 mi revisi贸n si puede corregir todas las advertencias de PHP, ya que agradezco el esfuerzo realizado en la interfaz de usuario y la funcionalidad del plugin.

Ejemplo de errores: 隆mire las marcas de tiempo! Hubo tantas advertencias y errores que tuve que apagar el plugin porque no pudimos depurar nuestro propio c贸digo:

[05-Jul-2020 16:10:35 UTC] PHP Deprecated:  woocommerce_product_review_count is <strong>deprecated</strong> since version 3.0.0! Use woocommerce_product_get_review_count instead. in wp-includesfunctions.php on line 5088
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined variable: Product_Names in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 412
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined variable: Average_Score in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 672
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined variable: Total_Reviews in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 673
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined variable: Average_Score in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 676
[05-Jul-2020 16:10:36 UTC] PHP Notice:  Undefined variable: Total_Reviews in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 678
[05-Jul-2020 16:10:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:10:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:10:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:10:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:10:37 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined variable: Product_Names in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 412
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined variable: Average_Score in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 672
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined variable: Total_Reviews in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 673
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined variable: Average_Score in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 676
[05-Jul-2020 16:13:26 UTC] PHP Notice:  Undefined variable: Total_Reviews in wp-contentpluginsultimate-reviewsShortcodesDisplayReviews.php on line 678
[05-Jul-2020 16:13:26 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:13:27 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:13:27 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:13:27 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:13:27 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:34 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:34 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:34 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:34 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:35 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:35 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:35 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:35 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:35 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:14:36 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 130
[05-Jul-2020 16:19:00 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:00 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:00 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:00 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:01 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:02 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:02 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:02 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:02 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:19:02 UTC] PHP Warning:  A non-numeric value encountered in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 132
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:37 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:20:38 UTC] PHP Notice:  Undefined variable: rating_html in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Replace_WooCommerce_Reviews.php on line 135
[05-Jul-2020 16:22:41 UTC] PHP Deprecated:  update_usermeta is <strong>deprecated</strong> since version 3.0.0! Use update_user_meta() instead. in wp-includesfunctions.php on line 4713
[05-Jul-2020 16:24:39 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342

(@jaysupport)

Hace 5 meses, 2 semanas

Gracias por eso. Todo lo que tenemos que hacer es lanzar una nueva versi贸n del plugin que corrige todos los problemas que causan estos anuncios y los elimina. Aseg煤rese de actualizar a la versi贸n 2.1.30 del plugin.

(@chickwithbob)

Hace 5 meses, 1 semana

Hola,

Gracias por corregir ‘algunos’ de los errores. Todav铆a se est谩n produciendo errores en su 煤ltima versi贸n 2.1.3, 隆incluido uno grave que impide que las rese帽as puedan enviarlas mientras usa su acceso directo!

El campo de la direcci贸n de correo electr贸nico falta por completo (muestra un 谩rea en blanco donde deber铆a estar el campo) usando su c贸digo corto de direcci贸n enviada. Por lo tanto, no se pueden dejar rese帽as en nuestro sitio.

Qu茅 tuve que hacer para solucionarlo:

Confirme var $ Post_Email en la l铆nea 337 /Shortcodes/SubmitReview.php

$Post_Email = ( isset($_REQUEST['Post_Email']) ) ? esc_attr( $_REQUEST['Post_Email'] ) : '';

Luego, unas l铆neas m谩s abajo, agregue otra de la siguiente manera:

//$ReturnString .= "<input type='email' name='Post_Email' id='Post_Email' value='" . isset( $_REQUEST['Post_Email'] ) ? esc_attr( $_REQUEST['Post_Email'] ) : '' . "' required/>";

$ReturnString .= "<input type='email' name='Post_Email' id='Post_Email' value='" . $Post_Email . "' required />";

El uso de un isset en l铆nea como el suyo hace que PHP lo libere y no muestre el campo de direcci贸n de correo electr贸nico (probado en PHP 7.1 y 7.3 – mismo resultado)

Vea un ejemplo de los errores a continuaci贸n; nuevamente, active sus registros de depuraci贸n mientras realiza la prueba. Esto realmente deber铆a quedar atrapado por primera vez.

[14-Jul-2020 09:35:08 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[14-Jul-2020 09:39:21 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[14-Jul-2020 12:43:34 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[14-Jul-2020 12:58:46 UTC] PHP Notice:  Undefined index: Post_Email in wp-contentpluginsultimate-reviewsShortcodesSubmitReview.php on line 342
[14-Jul-2020 13:03:21 UTC] PHP Notice:  Uninitialized string offset: 62 in wp-contentpluginsultimate-reviewsFunctionsEWD_URP_Submit_Review.php on line 322

脥ndice no especificado: los errores de Post_Email ahora deber铆an desaparecer con mi correcci贸n. Te dejo para que arregles el 煤ltimo.

Esta respuesta fue modificada hace 5 meses, hace una semana por.

驴Solucion贸 tu problema??

0 / 0

Deja una respuesta 0

Tu direcci贸n de correo electr贸nico no ser谩 publicada. Los campos obligatorios est谩n marcados con *