Forum Replies Created

Viewing 15 replies - 1 through 15 (of 48 total)
  • Thread Starter Albert Calzada

    (@calzbert)

    Si, me funciona bien. gracias !

    Thread Starter Albert Calzada

    (@calzbert)

    Hola Nahuai !

    Gracias por la respuesta!

    He detectado que tenía en mi plugin personalizado de funciones, este código:


    add_filter( 'simple_social_default_profiles', 'custom_reorder_simple_icons' );

    function custom_reorder_simple_icons( $icons ) {

    // Define el nuevo orden de iconos
    $new_icon_order = array(
    'twitter' => '',
    'facebook' => '',
    'linkedin' => '',
    'youtube' => '',
    'behance' => '',
    'bloglovin' => '',
    'dribbble' => '',
    'email' => '',
    'flickr' => '',
    'github' => '',
    'gplus' => '',
    'instagram' => '',
    'medium' => '',
    'periscope' => '',
    'phone' => '',
    'pinterest' => '',
    'rss' => '',
    'snapchat' => '',
    'stumbleupon' => '',
    'tumblr' => '',
    'vimeo' => '',
    'xing' => '',
    );

    // Reordena los iconos comprobando que existan
    foreach( $new_icon_order as $icon => $info ) {
    $new_icon_order[$icon] = $icons[$icon] ?? '';
    }

    return $new_icon_order;
    }

    Lo he re-escribo con Chatgpt y ya me funciona bien:

    add_filter( 'simple_social_default_profiles', 'custom_reorder_simple_icons' );

    function custom_reorder_simple_icons( $icons ) {

    // Asegurar que $icons es un array válido antes de modificarlo
    if ( ! is_array( $icons ) ) {
    error_log( 'Simple Social Icons Error: $icons no es un array en custom_reorder_simple_icons().' );
    return $icons; // Devolver el original para evitar errores
    }

    // Definir el nuevo orden de iconos con valores por defecto
    $new_icon_order = array(
    'twitter' => [],
    'facebook' => [],
    'linkedin' => [],
    'youtube' => [],
    'behance' => [],
    'bloglovin' => [],
    'dribbble' => [],
    'email' => [],
    'flickr' => [],
    'github' => [],
    'gplus' => [],
    'instagram' => [],
    'medium' => [],
    'periscope' => [],
    'phone' => [],
    'pinterest' => [],
    'rss' => [],
    'snapchat' => [],
    'stumbleupon' => [],
    'tumblr' => [],
    'vimeo' => [],
    'xing' => [],
    );

    // Reordenar los iconos comprobando que existen y tienen datos válidos
    foreach ( $new_icon_order as $icon => $info ) {
    if ( isset( $icons[$icon] ) && is_array( $icons[$icon] ) ) {
    $new_icon_order[$icon] = $icons[$icon]; // Mantener datos originales del icono
    } else {
    unset( $new_icon_order[$icon] ); // Eliminar si no existe en el array original
    }
    }

    return $new_icon_order;
    }

    ?cómo ves la solución?

    gracias por tu ayuda!

    Thread Starter Albert Calzada

    (@calzbert)

    thank you very much!!

    hello

    yes, you are right!

    i had and older version of “Yoast SEO: WooCommerce”

    thanks!

    Hello.

    i have the same critical error.

    i had to disable yoast seo to avoid the critical error
    attached detail error.

    [Wed Mar 15 07:12:18.727199 2023] [proxy_fcgi:error] [pid 29279:tid 140156635956992] [client 161.35.93.126:0] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WPSEO_HelpScout::is_beacon_page() in /home/42520............tml/wp-admin/admin-post.php(30): do_action()\n#5 {main}\n thrown in /home/425200.cloudwaysapps.com/tfxkjcnvuw/public_html/wp-content/plugins/wordpress-seo/admin/class-helpscout.php on line 45', referer: https://www.xxx.com/wp-admin/admin-post.php 

    hello
    thanks

    now yes, with the new version, the problem has been solved.

    hello
    I have updated the plugin to the latest version, but the “phpErrorFatal” error still appears.

    the php version of the hosting is 8.0.25

    Until the plugin update yesterday, the site has worked perfectly.
    please can you solve it?

    i send you new “log error”

    [Thu Dec 01 22:31:39.059301 2022] [proxy_fcgi:error] [pid 28607:tid 139999375001344] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-admin/admin.php(34): require_once('...')\n#7 /home/bangbang.es/public_html/wp-admin/plugins.php(10): requir...', referer: https://www.bangbang.es/wp-admin/plugins.php
    [Thu Dec 01 22:31:39.238979 2022] [proxy_fcgi:error] [pid 28607:tid 139999375001344] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-blog-header.php(13): require_once('...')\n#7 /home/bangbang.es/public_html/index.php(17): require('...')\n#8...', referer: https://www.bangbang.es/wp-admin/plugins.php
    [Thu Dec 01 22:31:43.964373 2022] [proxy_fcgi:error] [pid 28607:tid 139999526070016] [client 2.154.224.59:60879] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function apache_response_headers() in /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/bangbang.es/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/bangbang.es/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/bangbang.es/public_html/wp-settings.php(95): include('...')\n#4 /home/bangbang.es/public_html/wp-config.php(103): require_once('...')\n#5 /home/bangbang.es/public_html/wp-load.php(50): require_once('...')\n#6 /home/bangbang.es/public_html/wp-admin/admin.php(34): require_once('...')\n#7 /home/bangbang.es/public_html/wp-admin/index.php(10): require_...'

    hello
    i have the same problems

    i have this errors on “error log”

    I had to remove the plugin to return the functionality to the web.
    can you help?

    [Thu Dec 01 08:30:11.104892 2022] [proxy_fcgi:error] [pid 17250:tid 140338802132736] [client 2.154.224.59:49544] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function SiteGround_Optimizer\\Helper\\apache_response_headers() in /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/yogupet.com/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/yogupet.com/public_html/wp-settings.php(95): include('/home/yogupet.c...')\n#4 /home/yogupet.com/public_html/wp-config.php(87): require_once('/home/yogupet.c...')\n#5 /home/yogupet.com/public_html/wp-load.php(50): require_once('/home/yogupet.c...')\n#6 /home/yogupet.com/public_html/wp-blog-header.php(13): require_once(...', referer: https://www.yogupet.com/wp-admin/admin.php?page=duplicator-pro
    [Thu Dec 01 08:30:19.397023 2022] [proxy_fcgi:error] [pid 11562:tid 140338986772224] [client 2.154.224.59:49547] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function SiteGround_Optimizer\\Helper\\apache_response_headers() in /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/yogupet.com/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/yogupet.com/public_html/wp-settings.php(95): include('/home/yogupet.c...')\n#4 /home/yogupet.com/public_html/wp-config.php(87): require_once('/home/yogupet.c...')\n#5 /home/yogupet.com/public_html/wp-load.php(50): require_once('/home/yogupet.c...')\n#6 /home/yogupet.com/public_html/wp-admin/admin.php(34): require_once(...'
    [Thu Dec 01 08:30:23.494609 2022] [proxy_fcgi:error] [pid 11562:tid 140338986772224] [client 2.154.224.59:49547] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function SiteGround_Optimizer\\Helper\\apache_response_headers() in /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php:225\nStack trace:\n#0 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/Helper/File_Cacher_Trait.php(22): SiteGround_Optimizer\\File_Cacher\\Cache->has_nocache_headers()\n#1 /home/yogupet.com/public_html/wp-content/plugins/sg-cachepress/core/File_Cacher/Cache.php(141): SiteGround_Optimizer\\File_Cacher\\Cache->is_cacheable()\n#2 /home/yogupet.com/public_html/wp-content/advanced-cache.php(25): SiteGround_Optimizer\\File_Cacher\\Cache->get_cache()\n#3 /home/yogupet.com/public_html/wp-settings.php(95): include('/home/yogupet.c...')\n#4 /home/yogupet.com/public_html/wp-config.php(87): require_once('/home/yogupet.c...')\n#5 /home/yogupet.com/public_html/wp-load.php(50): require_once('/home/yogupet.c...')\n#6 /home/yogupet.com/public_html/wp-blog-header.php(13): require_once(...'

    hello
    yes, i have the same critical warning in all my sites.

    any solution?

    thanks

    Thread Starter Albert Calzada

    (@calzbert)

    hello.
    thanks for your reply.
    I totally agree with everything you have raised. I find it perfect that now HTML is not necessary to generate “columns” inside the banner.
    but, if for example I want to make a part of the message bold or italy…, I can’t do it!
    it doesn’t allow me to add html tags.

    I understand that it is not mandatory to make a structure with html and that each field is already defined.
    but what I need is that you enable within the message field, that (if someone wants) you can write html tags.
    perhaps an option that can be enabled, for “advanced users”.

    Otherwise, for professionals it will be very difficult for us to customize the cookie banner according to the design requirements of our clients.

    maybe there is a way to modify the “templates” of the banners by ftp (custom code) directly in the php ?

    Thank you

    Thread Starter Albert Calzada

    (@calzbert)

    Gracias, lo probaré.

    Thread Starter Albert Calzada

    (@calzbert)

    hola, perdona.
    pero veo que además del correo de notificación, también lo elimina del la información del pedido en el backend.

    ?hay forma de resolver eso?

    Thread Starter Albert Calzada

    (@calzbert)

    Hola
    muchas gracias.
    Si, funciona.

    pensaba que esa opción eliminaba los campos del checkout (y eso no lo quería) ??
    pero solo los elimina del email de notificación.

    perfecto.gracias!

    Hi!
    yes, it works perfectly.

    thank you very much

    Hi!
    yes. i’m using multisite.
    I use multilingualpress to clon one site to other.

    i try steps of you thread.
    it works parcially.
    i can “active” wp mail stmp on second site without break WordPress.
    on the principal subsite, wp mail smtp works fine

    but in second site, we have problem withs databeses.
    i try your thread and it works very well. i can active plugin. but i have now this alert about _wpmailsmtp_tasks_meta.

    any idea?
    thanks!

Viewing 15 replies - 1 through 15 (of 48 total)