Viewing 30 results - 1,801 through 1,830 (of 16,893 total)
  • Author
    Search Results
  • schwaigerf
    Participant

    Hi there,

    just received an error from wordpress (using Enfold 4.0.5 with PHP 8.1.12) with the following error:

    Ein Fehler vom Typ E_COMPILE_ERROR wurde in der Zeile 265 der Datei /is/htdocs/wp12758756_G5OB3KWALE/www/psychotherapie/wp-content/themes/enfold/functions-enfold.php verursacht. Fehlermeldung: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

    Can someone please help me to fix that? Website does not work any more?

    Thanks

    #1372728

    Ok, please see staging site details below.

    Please let me know what you think has happened with the update to break the home page.

    Please let me know if the info below is not sufficient for you to provide that support.

    Thanks in advance

    Please NOTE: The staging site has NOT been updated to PHP 8 and is running an older version of Enfold (4.5.7) as per what was working on the site before updating Enfold. You’ll see that the home page loads as expected now…..

    • This reply was modified 3 years, 5 months ago by CBurgo.

    The line says in function.php line 74

    wp_register_script ( ‘gigla-custom’, ‘http://gigla.se/wp-content/themes/enfold-child/js/gigla-custom.js’, array(‘jquery’), $vn, true );

    <?php
    /* Child theme specific functions */
    /* Added by Maria */

    /* PT Sans: already in theme; 400/regular, 700/bold + italic */
    /* LOAD the following extra fonts:
    PT Sans Narrow: 400/regular, 700/bold
    PT Sans Caption: 400/regular. Not added: 700/bold.
    NOTE: Caption will only be used in explanation or image text,
    so it doesn’t need to be added to the styling panel.
    PT Serif: 400/regular, 700/bold. There are also italic normal, italic bold
    Serif can be used as paragraph font instead of sans */
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘chld_thm_cfg_ext1’, ‘https://fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700&#8217; );
    wp_enqueue_style( ‘chld_thm_cfg_ext2’, ‘https://fonts.googleapis.com/css?family=PT+Sans+Caption&display=swap&#8217; );
    wp_enqueue_style( ‘chld_thm_cfg_ext3’, ‘https://fonts.googleapis.com/css?family=PT+Serif:400,700&#8217; );
    }
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    /* add Narrow to the styling panel – heading fonts */
    add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
    function avia_add_heading_font($fonts)
    {
    $fonts[‘PT Sans Narrow’] = ‘PT Sans Narrow’;
    return $fonts;
    }
    /* add Serif to the styling panel – content fonts */
    add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
    function avia_add_content_font($fonts)
    {
    $fonts[‘PT Serif’] = ‘PT Serif’;
    return $fonts;
    }

    /* enable svg upload – use this only temporary, turn off after uploading */ /*
    function cc_mime_types($mimes) {
    $mimes[‘svg’] = ‘image/svg+xml’;
    return $mimes;
    }
    add_filter(‘upload_mimes’, ‘cc_mime_types’);
    */

    /* set to debug, useful to see shortcodes – use this only temporary */ /*
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }
    */

    /* Remove title pop-ups from links and images */
    function add_custom_tooltip(){
    ?>
    <script>
    jQuery(window).load(function(){
    jQuery(‘a’).removeAttr(‘title’);
    jQuery(‘img’).removeAttr(‘title’);
    });
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘add_custom_tooltip’);

    /* Register a custom jquery file */
    wp_register_script ( ‘gigla-custom’, ‘http://gigla.se/wp-content/themes/enfold-child/js/gigla-custom.js&#8217;, array(‘jquery’), $vn, true );
    wp_enqueue_script ( ‘gigla-custom’ );

    Hi,

    Sorry about that, line 74 in functions.php in your child theme. You can check it either via FTP, or under Appearance->Theme file editor in WordPress.

    Best regards,
    Rikard

    #1372653

    Topic: PHP 8 upgrade

    in forum Enfold
    rgenieters
    Participant

    Hello,

    I am informing about the compatibility of Enfold 5.2.1 running on WordPress 6.1 with PHP 8 or PHP 8.1.

    Our host is upgrading from PHP 7.4 to PHP 8 but now we are faced with all sorts of error messages which aren’t even Enfold related I am guessing..

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WP_Widget::__construct(), 0 passed in /data/www/ourdomain.nl/www/wp-includes/class-wp-widget-factory.php on line 62 and at least 2 expected in /data/www/ourdomain.nl/www/wp-includes/class-wp-widget.php:163 Stack trace: #0 /data/www/ourdomain.nl/www/wp-includes/class-wp-widget-factory.php(62): WP_Widget->__construct() #1 /data/www/ourdomain.nl/www/wp-includes/widgets.php(115): WP_Widget_Factory->register() #2 /data/www/ourdomain.nl/www/wp-content/plugins/tmls_testimonials/inc/widget.php(57): register_widget() #3 /data/www/ourdomain.nl/www/wp-includes/class-wp-hook.php(308): tmls_widget_init() #4 /data/www/ourdomain.nl/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #5 /data/www/ourdomain.nl/www/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /data/www/ourdomain.nl/www/wp-includes/widgets.php(1854): do_action() #7 /data/www/ourdomain.nl/www/wp-includes/class-wp-hook.php(308): wp_widgets_init() #8 /data/www/ourdomain.nl/www/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #9 /data/www/ourdomain.nl/www/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /data/www/ourdomain.nl/www/wp-settings.php(617): do_action() #11 /data/www/ourdomain.nl/www/wp-config.php(100): require_once('...') #12 /data/www/ourdomain.nl/www/wp-load.php(50): require_once('...') #13 /data/www/ourdomain.nl/www/wp-blog-header.php(13): require_once('...') #14 /data/www/ourdomain.nl/www/index.php(17): require('...') #15 {main} thrown in /data/www/ourdomain.nl/www/wp-includes/class-wp-widget.php on line 163

    I replaced our domain name with ourdomain.nl in the error code above.. for privacy reasons

    Do you have any tips or pointers on how we can get this working 100%?

    Hope to hear from you soon

    I was in contact with Loopia (my webb hosting entity) and they asked me to change in the wp-config file, Debug to true in stead of false. In PHP 7,4 mode i got this information:

    Notice: Undefined variable: vn in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-content/themes/enfold-child/functions.php on line 74

    Notice: Funktionen wp_register_script anropades felaktigt. Skript och stilmallar bör inte registreras eller läggas i kö innan någon av åtgärds-hookarna wp_enqueue_scripts, admin_enqueue_scripts och login_enqueue_scripts har körts. Denna notis utlöstes av hanteraren gigla-custom. Mer information finns i Felsökning i WordPress. (Detta meddelande lades till i version 3.3.0.) in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-includes/functions.php on line 5835

    Notice: Funktionen wp_enqueue_script anropades felaktigt. Skript och stilmallar bör inte registreras eller läggas i kö innan någon av åtgärds-hookarna wp_enqueue_scripts, admin_enqueue_scripts och login_enqueue_scripts har körts. Denna notis utlöstes av hanteraren gigla-custom. Mer information finns i Felsökning i WordPress. (Detta meddelande lades till i version 3.3.0.) in /www/webvol13/43/l8gbopo3ldp3k09/gigla.se/public_html/wp-includes/functions.php on line 5835

    #1372604

    Hey cuccarini,

    Thank you for the inquiry.

    1.) This is possible but you have to display 4 items for each row on desktop view, then use this css code to adjust the width of the items on smaller screens.

    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #main .avia-content-slider .slide-entry-wrap {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
      }
    }
    

    Again, you have to display the items in 4 columns instead of 3 in order for this modification to work correctly.

    2.) This is possible but it will require modification that is beyond the scope of support. You may need to edit the single.php or the includes > loop-index.php template in order to achieve the same layout shown in your screenshot. For starters, you can use this css code to split the featured image and the content into separate columns.

    
    @media only screen and (max-width: 767px) {
      .responsive #top #wrap_all #main .avia-content-slider .slide-entry {
        width: 100% !important;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
      }
    
      .responsive #top #wrap_all #main .avia-content-slider .slide-entry .slide-content {
        flex-grow: 1;
        width: 60%;
        flex-shrink: 0;
        margin-left: 4%;
      }
    
      h3.slide-entry-title.entry-title {
        text-align: left;
        font-size: 20px !important;
      }
    }
    

    Best regards,
    Ismael

    saintslim
    Participant

    I have just installed WordPress 6.1, Woocommerce 7.1 and the Enfold 5.2.1 theme with the Shop template demo. Php is version 8.1.12 – however I get ‘There has been a critical error on this website.’ Disable the Woocommerce plugin, the theme runs fine. Disable the theme and Woocommerce runs fine. How can I fix this?

    No, where can I find them. I am a low tech person…

    I have now updated the site to PHP 8.1 now. Please visit http://www.gigla.se and you see what happens.

    Please let me know if you need me to get it back to 7.4

    marvin12
    Participant

    Hi
    I am running PHP 7.4, Apache 2.4 and need to upgrade toi 8.1 as Loopia my host is discontinuing support for 7.4 on the 28th of november 2022.
    Even if i turn all of my plugins and still the site is not available when uppgrading to 8.1. If i Switch back to 7.4 it is just fine…
    Please help!

    #1372499

    In reply to: Support

    This reply has been marked as private.
    #1372478

    Hey navindesigns,

    Thank you for the inquiry.

    You can add this script in the functions.php file to adjust the height of grid content based on tallest item.

    
    // adjust grid height
    function ava_custom_script_grid_height()
    {
        ?>
        <script type="text/javascript">
            (function($) {
                function adjustGridHeight() {
                    var maxHeight = -1;
    
                    $('.grid-sort-container').each(function() {
                        var content = $(this).find('.grid-content');
                        content.css('height', 'auto');
                        maxHeight = maxHeight > content.height() ? maxHeight : content.height();
                        content.height(maxHeight + 20);
                    });
                }
    
                $(window).on('debouncedresize', function() {
                    adjustGridHeight();
                });
            })(jQuery);
        </script>
        <?php
    }
    add_action( 'wp_footer', 'ava_custom_script_grid_height', 9999 );
    

    Then add this css code to align the read more buttons at the bottom of the grid content container.

    .excerptReadMore {
        position: absolute;
        bottom: 20px;
    }
    
    .grid-content {
        padding-bottom: 70px;
    }
    

    Best regards,
    Ismael

    #1372477

    Hi!

    Thanks for the update.

    We corrected the above modification for the portfolio.php file. Please try it again. https://kriesi.at/support/topic/show-portfolio-categories-2/#post-1372024

    Cheers!
    Ismael

    #1372438

    Hi,
    Thanks for the screenshot, the notice Notice: Function wpdb::prepare was called incorrectly . The query argument wpdb::prepare() must contain a value
    points to the core WordPress file /wp-includes/functions.php don’t edit this file.
    You are seeing this Notice because you have WP_DEBUG_DISPLAY enabled, check your site health panel:
    2022-11-13_007.png
    So you should disable WP_DEBUG_DISPLAY because this is only a Notice, or you could disable all of your plugins one at a time to find which one is causing this. But a Notice is not the same as an Error.

    Best regards,
    Mike

    #1372377

    Aloha,
    We have the same issue.
    I am running WPEngine, with WordPress 6.1, PHP 7, Enfold Version: 4.6.3.1. When I move to PHP 8.0, the website crashes and I get these errors:
    WordPress caught an error with your theme, Enfold.
    Error: This theme failed to load properly and was paused within the admin backend.
    And…
    The page where the error was caught is /wp-admin/admin-ajax.php. Unfortunately the current Enfold theme throws a vulnerability error, so I really need to update PHP. Enfold Theme < 4.8.4 – Reflected Cross-Site Scripting (XSS).
    Any ideas how can I move forward and fix this?
    Thanks.

    #1372227

    Topic: warning

    in forum Enfold
    brynell
    Participant

    Hi
    Our website suddenly shows a very disturbing warning on the landing page
    “Warning: Undefined array key “controls” …..content/themes/enfold/framework/php/function-set-avia-frontend.php on line 746″

    Can you help us solve this issue?
    Thanks in advance!

    #1372208

    Hey woogie07,
    To add a custom widget area above the footer go to Appearance > Widgets > Enfold Custom Widget Area and create a new widget area with the name “abovefooter” and then go to Appearance > Editor and edit functions.php file and add following code:

    add_action('ava_before_footer','avia_above_footer');
    function avia_above_footer(){
    dynamic_sidebar( 'abovefooter' );
    }

    then you can add your elements inside the new widget area.

    Best regards,
    Mike

    dolcen
    Participant

    Hi,

    our site https://www.vestona.se has magically just dissapeared. I got an e-mail from WordPress this morning with the below information.

    What has happened here? It’s been working fine for 2 years and we have not done any changes at all recently. We don’t run any plugins either, only Akismet. It’s a very simple page.

    We are using:

    WordPress-version 6.1
    Aktivt tema: Enfold (version 4.4.1)
    Nuvarande tillägg: (version )
    PHP-version 8.1.11

    Error details:

    An error of type E_COMPILE_ERROR occured on row 313 in the following file: /www/webvol27/c4/3u5xxmyh4qcgefi/vestona.se/public_html/wp-content/themes/enfold/functions-enfold.php. Error reason: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e)

    #1372190

    Hi!

    I noticed that PHP version 5.6 was entered in the htaccess. Can this be the reason for the problems with the theme update? I have now activated PHP 7.4, but ask as a precaution before I risk the third update attempt.

    Best regards

    Morcy

    PS: Did my sent admin login not arrive? Do you want me to send this again?

    #1372160

    Hey hmsvictory,

    Thank you for the inquiry.

    Are you referring to the title attribute popup? Please note that the title attribute is important for search engines and the tooltip is a default browser feature, so we don’t recommend removing it. But if you want to proceed and remove the attribute, try adding in the functions.php file any of the script or code provided in the following threads.

    // https://kriesi.at/support/topic/issue-with-lightbox-image-titles/#post-1356119
    // https://kriesi.at/support/topic/image-names-appearing-on-hover/#post-1355003
    // https://kriesi.at/support/topic/how-to-remove-filename-which-shows-when-mouse-arrow-is-on-a-picture/#post-1324132

    Best regards,
    Ismael

    #1372135
    Anyoroido
    Participant

    Hello, my name is Angelica and I have an Error for a really long time on my WordPress page.
    I thought it was because I hadn´t updated the theme but now I purchased the last Version 5.2.1 and I have the same error.
    I don´t know how to fix it, so if you could help me, please.

    I would wait for your answer,

    Thank you.

    This is the error:

    Detalles del error
    ==================
    Se ha producido un error del tipo E_ERROR en la línea 210 del archivo /home/anyospar/public_html/wp-content/themes/enfold/includes/helper-social-media.php. Mensaje de error: Uncaught Error: Call to undefined function av_icon_string() in /home/anyospar/public_html/wp-content/themes/enfold/includes/helper-social-media.php:210
    Stack trace:
    #0 /home/anyospar/public_html/wp-content/themes/enfold/includes/helper-social-media.php(238): avia_social_media_icons->build_icon(Array)
    #1 /home/anyospar/public_html/wp-content/themes/enfold/includes/helper-social-media.php(267): avia_social_media_icons->html()
    #2 /home/anyospar/public_html/wp-content/themes/enfold/includes/helper-main-menu.php(15): avia_social_media_icons(Array, false)
    #3 /home/anyospar/public_html/wp-includes/template.php(772): require(‘/home/anyospar/…’)
    #4 /home/anyospar/public_html/wp-includes/template.php(716): load_template(‘/home/anyospar/…’, false, Array)
    #5 /home/anyospar/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
    #6 /home/anyospar/public_html/wp-content/themes/enfold/header.php(268): get_template_part(‘includes/helper’, ‘main-menu’)
    #7 /home/anyospar/public_html/wp

    dbgl
    Participant

    Have downloaded and reinstalled the latest enfold version.
    Have tried PHP 7.4, 8.0 and 8.1.
    Any ideas on what else to do?

    #1371940
    Sanne
    Guest

    Hi! Need support. Our page (www.soderhus.se) is not compatible with PHP 8.1 (Loopia/wordpress is upgraded to PHP 8.1). Guess we use Enfold 4.4.1. PHP 7.3 is fine.

    What do we have to do to make it work?

    This is not my field of profession, please don´t judge me for my questions.

    BR/Sanne

    #1371899
    Morcy
    Participant

    Hello!

    After the last update of Enfold the following error messages appear:

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘default’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘desktop’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘medium’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘small’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Illegal string offset ‘mini’ in /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 220

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php:220) in /www/htdocs/w007aec3/wp/wp-admin/includes/misc.php on line 1416

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php:220) in /www/htdocs/w007aec3/wp/wp-includes/functions.php on line 6865

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w007aec3/wp/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php:220) in /www/htdocs/w007aec3/wp/wp-admin/admin-header.php on line 9

    What is the cause? This happened twice. A backup of the database had to be imported each time to repair this.

    Best regards

    Morcy

    • This topic was modified 3 years, 5 months ago by Morcy.
    #1371867
    scorpioserve
    Participant

    Enfold v5.2.1, PHP 8.0.21, WordPress 6.1, WooCommerce 7.1.0
    If I place a product grid on my Avia Layout Builder page, and publish, it works perfectly, however if I have a need to then go back into that page to edit it at all, then upon open I get none of my Avia Toolbar where I normally choose media elements, or layout elements, etc.
    I also get an error in my Google Chrome Console saying

    avia_gutenberg.js?ver=5.2.1:435 Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')
        at $.AviaBuilderGutenberg.attach_alb_sticky_element_tab_handler (avia_gutenberg.js?ver=5.2.1:435:77)
        at avia_gutenberg.js?ver=5.2.1:361:22
    attach_alb_sticky_element_tab_handler @ avia_gutenberg.js?ver=5.2.1:435
    (anonymous) @ avia_gutenberg.js?ver=5.2.1:361
    setTimeout (async)
    attach_handlers @ avia_gutenberg.js?ver=5.2.1:359
    set_up @ avia_gutenberg.js?ver=5.2.1:78
    $.AviaBuilderGutenberg @ avia_gutenberg.js?ver=5.2.1:52
    (anonymous) @ avia_gutenberg.js?ver=5.2.1:805
    e @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    t @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    setTimeout (async)
    (anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    c @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    fireWith @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    fire @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    c @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    fireWith @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    ready @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    $ @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.1:2
    

    If I click the WordPress icon on the top left corner to return to my pages list, that also does not go back to Pages, but instead goes to Products, which is also a bit strange. It also show a warning that there are unsaved changes, which is not the case.

    I am wondering if anybody has had a similar experience and if there is some way around it.

    #1371582

    Hey Alex,

    You should be able to use the is_product conditional instead: https://stackoverflow.com/questions/67500402/woocommerce-conditional-is-product-from-functions-php

    Best regards,
    Rikard

    #1371371
    DRONE-ARDECHE
    Participant

    Good evening,

    For some time now, contact forms have not worked properly with WP-Rocket.
    Bug : Contact form doesn’t work any more.

    The bug affects on all other contact form of the site.
    However the bug doesn’t appear immediatly.
    The bug appears after several hours when caching is enable.
    When purging the cache, the problem is fixed but remains again after time (even if I reduce the delay between automatic cache period below than 10 or 7 hours).

    Here is an explanation.

    _________________

    Hi,

    Nice to meet you :)

    Thanks for the details.

    From what you mention, this could be related to the form’s hidden values (screenshot in private).

    If you are using the hidden inputs to have different values in different situations, unfortunately this won’t work because the values are printed directly in the HTML, and as you know the HTML is cached.

    This is how this works:

    Cache is cleared

    A user visits a page (or if you have the preload function enabled, then the visit will be done by it to pre-cache the page)
    The PHP code is executed, and the values are created for the hidden inputs
    WP Rocket captures the resultant HTML and saves it for future visits
    A new user visits the same page, the saved / cached HTML is served to the new user, so the values in the hidden inputs will be the same as the previous visit, because the page is cached, and the same will happen for all the visits you have to that page, the same cache will be served for all of them until the cache is cleared, and the process is repeated.

    Here, the data will be very inconsistent, all the users will use the exact same values.
    As you see, the way you are using to manage this, is not compatible with cache.

    In this case, you have two options:
    You can ask your developers to use a different approach, compatible with caching, it could be cookie based for example: Create Different Cache Files with Dynamic and Mandatory Cookies
    You can disable page caching while keeping the optimizations, WP Rocket will still optimize your website, but the cache won’t be created: Disable Page Caching
    I hope this information is useful for you 😃

    ______________

    So can you make a fix in future version for this. Please?

    Best regards.

    Hi Rickard,

    Thanks. Had I not uploaded the latest footer and header.php files correctly?…….

    Either way, I have added the token to the child theme as suggested but that didnt seem to make any difference……

    The Child Theme Update sections still says “….No Updates available. You are running the latest version! (4.5.7)….”

    So, I’m not clear on your next suggestion to update to 5.2.1

    Are you suggesting that the CHILD theme should be updated to 5.2.1??? (If so it would lose it’s customisations, correct?)

    If you’re not suggesting that, the Parent theme is already 5.2.1?

    Can you take a look please?

    Thanks in advance

    Cameron

    #1371286

    Hi,
    To have the sidebar search bar at the top of the shop on mobile try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function mobile_shop_search_on_top() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
    	var width = $(window).width()
      $('#top.woocommerce-shop').each(function() {
      	if ($(window).width() < 768) {
      	$('#aws_widget-2').insertBefore('.template-shop.content ').css({'padding-bottom' : '0'});
      	} else {}
    });
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'mobile_shop_search_on_top');

    This will work will or without the precious css, please see the screenshot in the Private Content area of the expected results.

    Best regards,
    Mike

    Hey laboiteapixels12,
    Thank you for the login to your site, but it is not an admin login so I was limited.
    I see that on your category pages you are displaying the category description and I assume that you would like this as the title in the banner image like the blog page is displayed.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function custom_category_banner() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
    (function($){
      $('#top.archive.category').each(function() {
      	var catTitle = $('.category-term-description p').text();
      	var catBanner = $('<div class="avia-section avia-full-stretch fullsize cat-banner"><div class="av-section-color-overlay-wrap"><div class="av-section-color-overlay"></div></div><h1>'+ catTitle +'</h1></div>');
      	$(catBanner).insertBefore('.container_wrap_first');
    });
    })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'custom_category_banner');

    Please copy the code from the forum and not from an email notification so the symbols are copied correctly.
    Then add this css to your child theme stylesheet or the theme option Quick CSS:

    .avia-section.cat-banner {
    	height: 283px;
    	color: #fff;
        background-color: #f7f4ef;
        background-image: url(https://jean-michel-cosson.fr/wp-content/uploads/2022/10/blog-articles-par-jean-michel-cosson-3.jpg);
        background-repeat: no-repeat;
        background-position: 50% 50%;
        background-attachment: scroll;
    }
    .avia-section.cat-banner h1 {
      margin: 0;
      position: absolute;
      top: 36%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
    }
    
    .avia-section.cat-banner .av-section-color-overlay {
        opacity: 0.4;
        background-color: #2b2b2b;
        height: 283px;
    }
    #top.archive.category .category-term-description {
    	display: none;
    }

    This is the expected results:
    2022-11-03_001.png

    Best regards,
    Mike

Viewing 30 results - 1,801 through 1,830 (of 16,893 total)