Soporte » Buscar » Resultados de búsqueda para 'wpo'

Viendo 15 resultados - del 1 al 15 (de un total de 234)
    • N sé que pasa, pero me he dado cuenta hace días, que cuando realizo el login en woredpress.org se muestra la página sin estilos… con un monton de errores en la consola como los sigueintes:
      editor.min.js?ver=6.4-alpha-56702:2 Uncaught TypeError: g is not a function
      at new <anonymous> (editor.min.js?ver=6.4-alpha-56702:2:10688)
      at editor.min.js?ver=6.4-alpha-56702:2:82
      at editor.min.js?ver=6.4-alpha-56702:2:13115
      wplink.min.js?ver=6.4-alpha-56702:2 Uncaught ReferenceError: jQuery is not defined
      at wplink.min.js?ver=6.4-alpha-56702:2:11183
      core.min.js?ver=1.13.2:5 Uncaught ReferenceError: jQuery is not defined
      at core.min.js?ver=1.13.2:5:88
      at core.min.js?ver=1.13.2:5:96
      menu.min.js?ver=1.13.2:9 Uncaught ReferenceError: jQuery is not defined
      at menu.min.js?ver=1.13.2:9:97
      at menu.min.js?ver=1.13.2:9:105
      autocomplete.min.js?ver=1.13.2:9 Uncaught ReferenceError: jQuery is not defined
      at autocomplete.min.js?ver=1.13.2:9:106
      at autocomplete.min.js?ver=1.13.2:9:114
      thickbox.js?ver=3.1-20121105:15 Uncaught ReferenceError: jQuery is not defined
      at thickbox.js?ver=3.1-20121105:15:1
      media-upload.min.js?ver=6.4-alpha-56702:2 Uncaught ReferenceError: jQuery is not defined
      at media-upload.min.js?ver=6.4-alpha-56702:2:1110
      peticiones-y-feedback/:1978 Uncaught TypeError: Cannot read properties of undefined (reading ‘registerBlockStyle’)
      at peticiones-y-feedback/:1978:12
      at peticiones-y-feedback/:1980:4
      index.tsx:17 Uncaught TypeError: Cannot read properties of undefined (reading ‘createContext’)
      at index.tsx:17:17
      at index.min.js?ver=d5895c3cba13773503e5:1:4312
      peticiones-y-feedback/:1989 Uncaught TypeError: Cannot read properties of undefined (reading ‘setLocaleData’)
      at peticiones-y-feedback/:1989:10
      at peticiones-y-feedback/:1990:4
      reducer.js:103 Uncaught TypeError: Cannot read properties of undefined (reading ‘combineReducers’)
      at reducer.js:103:16
      at index.min.js?ver=18648569f80b62bad8b6:13:1195
      peticiones-y-feedback/:1999 Uncaught TypeError: Cannot read properties of undefined (reading ‘setLocaleData’)
      at peticiones-y-feedback/:1999:10
      at peticiones-y-feedback/:2000:4
      format-bold.js:7 Uncaught TypeError: Cannot read properties of undefined (reading ‘createElement’)
      at format-bold.js:7:2
      at index.min.js?ver=409006f6afa948203c8c:2:12222
      index.js:22 Uncaught TypeError: Cannot read properties of undefined (reading ‘createReduxStore’)
      at index.js:22:22
      at index.min.js?ver=7667a3bcc56e59266c82:1:1924
      peticiones-y-feedback/:2010 Uncaught TypeError: Cannot read properties of undefined (reading ‘setLocaleData’)
      at peticiones-y-feedback/:2010:10
      at peticiones-y-feedback/:2011:4
      archive.js:7 Uncaught TypeError: Cannot read properties of undefined (reading ‘createElement’)
      at archive.js:7:2
      at index.min.js?ver=b4f5f87dd3805a7970d1:142:7251
      at index.min.js?ver=b4f5f87dd3805a7970d1:142:7295
      index.min.js?ver=70ef450c066a7b640be8:1 Uncaught TypeError: Cannot read properties of undefined (reading ‘createHigherOrderComponent’)
      at 497 (index.min.js?ver=70ef450c066a7b640be8:1:3443)
      at r (index.min.js?ver=70ef450c066a7b640be8:42:44238)
      at index.min.js?ver=70ef450c066a7b640be8:42:45592
      at r.O (index.min.js?ver=70ef450c066a7b640be8:42:44549)
      at index.min.js?ver=70ef450c066a7b640be8:42:45606
      at index.min.js?ver=70ef450c066a7b640be8:42:45611
      editor.min.js?ver=2.7.0-alpha-2:3 Uncaught ReferenceError: jQuery is not defined
      at editor.min.js?ver=2.7.0-alpha-2:3:1
      engagements.min.js?ver=2.7.0-alpha-2:3 Uncaught ReferenceError: jQuery is not defined
      at engagements.min.js?ver=2.7.0-alpha-2:3:1
      forums.js?ver=20220217:2 Uncaught TypeError: $ is not a function
      at forums.js?ver=20220217:2:7
      at forums.js?ver=20220217:106:2
      wporg-bbp-code-blocks-expand-contract.js?ver=1670210936:1 Uncaught ReferenceError: jQuery is not defined

      He desactivado el antivirus, lo he vuelto a activar, lo he vuelto a desactivar, he reiniciado, he limpiado la caché del navegador… No se me ocurre nada más que hacer. Estoy más perdido que un torero al otro lado del telón de acero.
      Gracias por vuestro tiempo

      La página con la que necesito ayuda: [accede para ver el enlace]

    Gracias por compartir el código. Ya he escrito una nueva versión para ti.

    Por favor, reemplaza el contenido de las líneas 679 a 686 con este código:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Incluye el NIF en los documentos PDF (dentro de los datos de facturación) 
     */
    add_filter( 'wpo_wcpdf_billing_address', 'syv_wpo_wcpdf_billing_address', 10, 2 );
    function syv_wpo_wcpdf_billing_address( $address, $document ) {
      if ( ! empty( $document ) && is_callable( array( $document, 'get_custom_field' ) ) && ( $nif = $document->get_custom_field( '_billing_vat_number' ) ) ) {
    		$address .= sprintf( '<p>%s %s</p>', __( 'VAT number:', 'saberyvida' ), $nif );
    	}
      return $address;
    }

    ¡Hazme saber si funciona!

    Iniciador del debate saberyvida

    (@saberyvida)

    Buenos días. Creo que es esta línea 683:

      $wpo_wcpdf->custom_field( ‘_billing_vat_number’, __( ‘VAT number:’, ‘saberyvida’ ) );

    Pego también desde la 679 a la 686 que es donde sale la palabra billing address por si era el bloque completo:

    function syv_wpo_wcpdf_billing_address( $address ) {

      global $wpo_wcpdf;

      echo $address . ‘<p>’;

      $wpo_wcpdf->custom_field( ‘_billing_vat_number’, __( ‘VAT number:’, ‘saberyvida’ ) );

      echo ‘</p>’;

    }

    add_filter( ‘wpo_wcpdf_billing_address’, ‘syv_wpo_wcpdf_billing_address’ );

    Muchas gracias por la ayuda

    Yordan Soares

    (@yordansoares)

    Hola, @saberyvida:

    Parece que el error se está produciendo en el archivo saberyvida.php (línea 683) que tienes dentro del directorio /wp-content/plugins/saberyvida/, que parece un plugin personalizado, específicamente, la función syv_wpo_wcpdf_billing_address.

    Si compartes el código de dicha función, la reescribiré como cortesía para que siga los nuevos estándares del plugin, ya que parece que estás usando código muy obsoleto.

    • saberyvida

      (@saberyvida)


      Hola. Necesito ayuda con el plug-in PDF Invoices & Packing Slips versión gratuita para WooCommerce. Desde la última actualización de WP no me deja descargar las facturas y lo necesito para la contabilidad de la empresa.

      He hablado con soporte y ellos no pueden ayudarme porque creen que el erro es por la actualización de WP.

      He encontrado una posible solución pero no se donde pegarla en mi servidor y tema (Betheme)

      /** * PDF Invoices & Packing Slips for WooCommerce: * Muestra el NIF en los documentos PDF */ add_filter( ‘wpo_wcpdf_billing_address’, function( $address, $document ){ if ( ( $order = $document->order ) && ( $nif = $order->get_meta( ‘NIF’ ) ) ) { $address .= sprintf( ‘<p>NIF: %s</p>’, $nif ); } return $address; }, 10, 2 );

      Tampoco se la ruta donde puedo acceder ni por que sustituir. ¿Podéis ayudarme? Gracias


      Este es el error:

      Fatal error: Call to a member function custom_field() on null/home/customer/www/saberyvida.com/public_html/wp-content/plugins/saberyvida/saberyvida.php (683)#0 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(312): syv_wpo_wcpdf_billing_address(‘Jos\xC3\xA9 Antonio C…’) #1 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Jos\xC3\xA9 Antonio C…’, Array) #2 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(93): apply_filters(‘wpo_wcpdf_billi…’, ‘Jos\xC3\xA9 Antonio C…’, Object(WPO\WC\PDF_Invoices\Documents\Invoice)) #3 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(102): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_address() #4 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(42): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_address() #5 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1084): include(‘/home/customer/…’) #6 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(928): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array) #7 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(883): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #8 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(950): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #9 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(517): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’) #10 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_document_ajax(») #11 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(», Array) #12 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/saberyvida.com/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’) #14 {main}

      La página con la que necesito ayuda: [accede para ver el enlace]

    Iniciador del debate saberyvida

    (@saberyvida)

    Buenos días. He desinstalado la versión premium porque solo uso la plantilla simple y sigue el mismo error. Desde el soporte de wpovernight no pueden ayudarme porque al parecer es un fallo de la actualización de WP.

    Os adjunto el fallo del plugin gratuito por si podéis ayudarme a solucionarlo.

    gracias

    Fatal error: Call to a member function custom_field() on null/home/customer/www/saberyvida.com/public_html/wp-content/plugins/saberyvida/saberyvida.php (683)#0 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(312): syv_wpo_wcpdf_billing_address(‘Crist\xC3\xB3bal Berb…’) #1 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Crist\xC3\xB3bal Berb…’, Array) #2 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(93): apply_filters(‘wpo_wcpdf_billi…’, ‘Crist\xC3\xB3bal Berb…’, Object(WPO\WC\PDF_Invoices\Documents\Invoice)) #3 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(102): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_address() #4 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(42): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_address() #5 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1084): include(‘/home/customer/…’) #6 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(928): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array) #7 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(883): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #8 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(950): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #9 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(517): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’) #10 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_document_ajax(») #11 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(», Array) #12 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/saberyvida.com/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’) #14 {main}

    Yordan Soares

    (@yordansoares)

    Hola, @saberyvida:

    Como estás utilizando la extensión Premium Templates, que es una extensión de pago, tengo que pedirte que nos contactes directamente en support@wpovernight.com, puesto que WordPress.org no nos permite proporcionar soporte para plugins premium en estos foros.

    • saberyvida

      (@saberyvida)


      Hola. Necesito ayuda con el plug-in PDF Invoices & Packing Slips for WooCommerce. Desde la última actulización no me deja descargar las facturas y lo necesito para la contabilidad de la empresa.
      Este es el error, ¿Podéis ayudarme?

      Gracias

      Fatal error: Call to a member function custom_field() on null/home/customer/www/saberyvida.com/public_html/wp-content/plugins/saberyvida/saberyvida.php (683)#0 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(312): syv_wpo_wcpdf_billing_address(‘Mar\xC3\xADa Agudo Ga…’) #1 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘Mar\xC3\xADa Agudo Ga…’, Array) #2 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(93): apply_filters(‘wpo_wcpdf_billi…’, ‘Mar\xC3\xADa Agudo Ga…’, Object(WPO\WC\PDF_Invoices\Documents\Invoice)) #3 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(102): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_billing_address() #4 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-ips-templates/templates/Simple Premium/invoice.php(32): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->billing_address() #5 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(1084): include(‘/home/customer/…’) #6 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(928): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/home/customer/…’, Array) #7 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(883): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html() #8 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(950): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #9 /home/customer/www/saberyvida.com/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(517): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’) #10 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(310): WPO\WC\PDF_Invoices\Main->generate_document_ajax(») #11 /home/customer/www/saberyvida.com/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(», Array) #12 /home/customer/www/saberyvida.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/saberyvida.com/public_html/wp-admin/admin-ajax.php(188): do_action(‘wp_ajax_generat…’) #14 {main}

    No es «la función», pueden ser muchas cosas…

    Puede ser que hayas desactivado los dashicons, que hayas minificado el JS y CSS, que la optimización de la entrega del CSS no sea compatible con tu tema…

    Desactiva una opción, borra cachés (plugin, hosting y CDN) y prueba a ver si se ve. Y así sucesivamente hasta que dés con la opción que se lo carga.

    Pero vamos, es por eso, porque si cargas la página no cacheada se ve bien.

    Los plugins de caché son muy puñeteros y hay que saber configurarlos bien. Si ves que no te aclaras, recurre a algún profesional de WPO.

    Saludos.

    Iniciador del debate rromanc50

    (@rromanc50)

    Gracias por sus respuestas, en realidad recién empiezo con esto de hacer paginas con wordpress y no entiendo mucho las recomendaciones que me hacen, pero a través de cpanel logre desactivar todos los plugins, primero renombrando y luego a través de phpmyadmin, sin embargo sigo sin poder ingresar al administrador del wordpress, el error que me sale es el siguiente:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘_wp_block_theme_register_classic_sidebars’ not found or invalid function name in /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-hook.php on line 308

    Fatal error: Uncaught TypeError: Argument 1 passed to WP_HTTP_Requests_Response::__construct() must be an instance of WpOrg\Requests\Response, instance of Requests_Response given, called in /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-http.php on line 398 and defined in /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-http-requests-response.php:42 Stack trace: #0 /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-http.php(398): WP_HTTP_Requests_Response->__construct(Object(Requests_Response), NULL) #1 /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-http.php(615): WP_Http->request(‘https://api.wor…&#8217;, Array) #2 /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/http.php(179): WP_Http->post(‘https://api.wor…&#8217;, Array) #3 /home2/robertor/domains/chakosdigital.com/public_html/wp-admin/includes/dashboard.php(1791): wp_remote_post(‘https://api.wor…&#8217;, Array) #4 /home2/robertor/domains/chakosdigital.com/pu in /home2/robertor/domains/chakosdigital.com/public_html/wp-includes/class-wp-http-requests-response.php on line 42

    Hola, @marda23

    Gracias por escribir en los foros de soporte.

    El código que usa Webempresa es el siguiente:

    <span class="dsm-typing" data-dsm-typing-cursor="|" data-dsm-typing-strings="proyecto|empresa|freelancer|sitio web|ecommerce" data-dsm-typing-speed="100ms" data-dsm-typing-backspeed="50ms" data-dsm-typing-backdelay="700ms" data-dsm-typing-loop="true" data-dsm-typing-fadeout="false" data-dsm-typing-shuffle="false" data-dsm-typing-delay="0ms" data-dsm-typing-viewport="80%" data-dsm-typing-repeat="off">sitio w</span>

    Sería adaptarlo a tu sitio.

    Un saludo,

    • rog11

      (@rog11)


      Hola!

      de repente mi web aparece totalmente en blanco, puedo entrar al panel de administración de WordPress sin problemas, ya intente cambiando de tema, desactivando plugins, y la web sigue igual.
      No me muestra ningun error en la pagina.
      Active el DBUG en config.php y me sale lo siguiente en el panel de administración de wordpress:

      Notice: Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/rosvania/public_html/wp-includes/functions.php on line 5865
      
      Deprecated: The PSR-0 Requests_... class names in the Request library are deprecated. Switch to the PSR-4 WpOrg\Requests\... class names at your earliest convenience. in /home/rosvania/public_html/wp-includes/Requests/src/Autoload.php on line 171
      
      Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 7053
      
      Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 2165
      
      Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 7053
      
      Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 2165
      
      Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 7053
      
      Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 2165
      
      Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 7053
      
      Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/rosvania/public_html/wp-includes/functions.php on line 2165
      
      Warning: Cannot modify header information - headers already sent by (output started at /home/rosvania/public_html/wp-includes/functions.php:5865) in /home/rosvania/public_html/wp-admin/includes/misc.php on line 1431
      
      Warning: Cannot modify header information - headers already sent by (output started at /home/rosvania/public_html/wp-includes/functions.php:5865) in /home/rosvania/public_html/wp-includes/functions.php on line 6896
      
      Warning: Cannot modify header information - headers already sent by (output started at /home/rosvania/public_html/wp-includes/functions.php:5865) in /home/rosvania/public_html/wp-admin/admin-header.php on line 9

      Ya modifiqué la memoria desde INI editor de cpanel.
      el uso de recursos del servidor me inidica el típico «Recursos CPU fueron limitados para su sitio»

      ¿Creen que sea el uso excesivo de recursos?

      en el AWSTATS de cpanel pude ver que las visitas se triplicaron entre el 27 y 28 de mayo, algo raro.

      La página con la que necesito ayuda: [accede para ver el enlace]

    Iniciador del debate fotov60

    (@fotov60)

    Eso es por una de las recomendaciones que me hizo Insights, en que añadí

    / Agregar meta viewport
    function agregar_meta_viewport() {
      echo '<meta name="viewport" content="width=device-width, initial-scale=1.0">' . "\n";
    }
    add_action('wp_head', 'agregar_meta_viewport');

    al archivo functions.php y muestra la web en esa escala (marcaba como error de accesibilidad la no inclusión del meta_viewport), pero si la «pellizcas» puedes reducir la escala y ajustar el zoom a la pantalla donde la estes visualizando. Igual que solucioné eso, mas adelante podré encontrar como hacerla compatible con los moviles.

    Iniciador del debate David

    (@dvdmrnjcbssn)

    En el head tengo el script te fontawesome:

    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <?php $viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' ); ?>
    <meta name="viewport" content="<?php echo esc_attr( $viewport_content ); ?>">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    
    <!-- Scripts -->
    <script src="https://kit.fontawesome.com/6aab458347.js" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js" integrity="sha512-pumBsjNRGGqkPzKHndZMaAG+bir374sORyzM3uulLV14lN5LyykqNk8eEeUlUkB3U0M4FApyaHraT65ihJhDpQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <?php wp_head(); ?>
    </head>

    y con css le digo que quiero poner delante del botón el icono:

    .add_to_cart_button:before{
    content: '\f290';
    }

    En otras webs me ha funcionado correctamente, es por eso que no se de donde viene el error…

    Gracias!

    Iniciador del debate fotov60

    (@fotov60)

    Gracias por tu respuesta @almendron . Lo añado al final del archivo tal cual? Lo he probado pero me devuelve el mismo aviso no se si lo he copiado mal. Te lo copio a continuación.

    /**
     * Initialize theme.
     *
     * @since 1.0.0
     */
    require trailingslashit( get_template_directory() ) . 'inc/init.php';
    add_action( 'send_headers', 'add_header_seguridad' );
    function add_header_seguridad() {
    header( 'X-Content-Type-Options: nosniff' );
    header( 'X-Frame-Options: SAMEORIGIN' );
    header( 'X-XSS-Protection: 1;mode=block' );
    }
    function viewport() {
        ?>
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <?php
    }
    add_action('wp_head', 'viewport');

    Debería ser así?

Viendo 15 resultados - del 1 al 15 (de un total de 234)