Viewing 30 results - 1,321 through 1,350 (of 16,891 total)
  • Author
    Search Results
  • #1408052
    Rustybucket
    Participant

    I use a third party login plugin (DocCheck) to restrict access to certain pages on my site. I am getting these PHP warnings logged in error_log:

    [21-May-2023 08:10:07 UTC] PHP Warning:  session_start(): Session cannot be started after headers have already been sent in /home/mysitex/public_html/wp-content/plugins/doccheck-login/includes/class-dcl-base.php on line 304
    [21-May-2023 08:10:13 UTC] PHP Warning:  Cannot modify header information - headers already sent in /home/mysitex/public_html/wp-content/themes/enfold/includes/helper-privacy.php on line 406

    I believe the impact of this is that the user must login on every page load rather than their login status being remembered. Is this something that can be fixed in an Enfold update or is this a plugin issue?

    Thank you

    Thank you very much, Mike. That did the trick: I didn’t realize I could access the srcset field in img like that, doh! So now I know how to do that, for the situations I need it.

    And the situation came up immediately, as I ended up changing my method of doing this home page banner, to use the second method I mentioned, putting my background graphic into the Color Section, and my happy couple image in an Image media element in that Color Section, and then making it all responsive, including using your querySelector with src & srcset to swap out the happy couple images responsively at certain breakpoints, and using it again with backgroundImage to swap out my background graphic at the same breakpoints. Yes, it may seem weird that I’m swapping images manually instead of using srcset, but it was all necessary at these breakpoints (or I’m just not experienced enough to have figured it out). It all worked out nicely.

    I even answered my own question about that blue bar under the banner: I totally forgot that WordPress makes background images default to repeating, so I just had to turn repeat off.

    Thanks again for all your help! You can close this thread if you wish. /gary

    Here’s the final code in case others are interested:

    In child theme’s function.php:

    function displayHomeBanner() {
        
       if (window.matchMedia("(min-width: 1px) and (max-width: 579px)").matches) {
            // BG GRAPHIC:
            document.querySelector(".seniorCoupleContainer").style.backgroundImage="none";
            // COUPLES PIC:
            document.querySelector(".seniorCouple img").src="...happy-senior-couple-5-556x313px.png";
            document.querySelector(".seniorCouple img").srcset="...happy-senior-couple-5-556x313px.png";
        }
        
        if (window.matchMedia("(min-width: 580px) and (max-width: 819px)").matches) {
            // BG GRAPHIC:
            document.querySelector(".seniorCoupleContainer").style.backgroundImage="url('...home-page-banner-background-4-1079x300px.png')";
            document.querySelector(".seniorCoupleContainer").style.backgroundSize="1079px 300px";
            document.querySelector(".seniorCoupleContainer").style.backgroundRepeat = "no-repeat";
            // COUPLES PIC:
            document.querySelector(".seniorCouple img").src="...happy-senior-couple-4-510x287px.png";
            document.querySelector(".seniorCouple img").srcset="...happy-senior-couple-4-510x287px.png";
        }
        
        if (window.matchMedia("(min-width: 820px) and (max-width: 989px)").matches) {
            // BG GRAPHIC:
            document.querySelector(".seniorCoupleContainer").style.backgroundImage="url('...home-page-banner-background-3-1439x400px.png')";
            document.querySelector(".seniorCoupleContainer").style.backgroundSize="1439px 400px";
            document.querySelector(".seniorCoupleContainer").style.backgroundRepeat = "no-repeat";
            // COUPLES PIC:
            document.querySelector(".seniorCouple img").src="...happy-senior-couple-3-700x394px.png";
            document.querySelector(".seniorCouple img").srcset="...happy-senior-couple-3-700x394px.png";
        }
        
        if (window.matchMedia("(min-width: 990px) and (max-width: 1199px)").matches) {
            // BG GRAPHIC:
            document.querySelector(".seniorCoupleContainer").style.backgroundImage="url('...home-page-banner-background-2-1778x500px.png')";
            document.querySelector(".seniorCoupleContainer").style.backgroundSize="1778px 500px";
            document.querySelector(".seniorCoupleContainer").style.backgroundRepeat = "no-repeat";
            // COUPLES PIC:
            document.querySelector(".seniorCouple img").src="...happy-senior-couple-2-871x490px.png";
            document.querySelector(".seniorCouple img").srcset="...happy-senior-couple-2-871x490px.png";
        }
        
        if (window.matchMedia("(min-width: 2000px)").matches) {
            // BG GRAPHIC:
            document.querySelector(".seniorCoupleContainer").style.backgroundImage="url('...home-page-banner-background.png')";
            document.querySelector(".seniorCoupleContainer").style.backgroundRepeat = "no-repeat";
            document.querySelector(".seniorCoupleContainer").style.backgroundSize="2881px 601px";
            // COUPLES PIC:
            document.querySelector(".seniorCouple img").src="...happy-senior-couple.png";
            document.querySelector(".seniorCouple img").srcset="...happy-senior-couple.png";
        }
    }

    In child theme’s style.css:

    .seniorCoupleContainer {
        background-image: url(https://www.clearlightcomputing.com/denture6/wp-content/uploads/2023/05/home-page-banner-background.png);
        background-repeat: no-repeat;
        background-size: 2881px 601px;
        max-height: 591px; /* Without this there is an inexplicable bottom padding (zeroing margin and padding does nothing): height of senior pic 576 + reset top 35 = 611, but this still leaves a 20px bottom padding. */
    }
    .seniorCouple {
        top: -35px;
    }
    
    /* Get rid of the bottom padding at all these breakpoints because it accummulates between the breakpoints, so this code sort of does a reset of 0 padding: */
    @media only screen and (min-width: 1px) and (max-width: 349px) {
        .seniorCoupleContainer {
            max-height: 171px;
        }
    }
    @media only screen and (min-width: 350px) and (max-width: 369px) {
        .seniorCoupleContainer {
            max-height: 185px;
        }
    }
    @media only screen and (min-width: 370px) and (max-width: 389px) {
        .seniorCoupleContainer {
            max-height: 199px;
        }
    }
    @media only screen and (min-width: 390px) and (max-width: 409px) {
        .seniorCoupleContainer {
            max-height: 213px;
        }
    }
    @media only screen and (min-width: 410px) and (max-width: 429px) {
        .seniorCoupleContainer {
            max-height: 227px;
        }
    }
    @media only screen and (min-width: 430px) and (max-width: 449px) {
        .seniorCoupleContainer {
            max-height: 241px;
        }
    }
    @media only screen and (min-width: 450px) and (max-width: 469px) {
        .seniorCoupleContainer {
            max-height: 255px;
        }
    }
    @media only screen and (min-width: 470px) and (max-width: 489px) {
        .seniorCoupleContainer {
            max-height: 267px;
        }
    }
    @media only screen and (min-width: 490px) and (max-width: 519px) {
        .seniorCoupleContainer {
            max-height: 284px;
        }
    }
    @media only screen and (min-width: 520px) and (max-width: 549px) {
        .seniorCoupleContainer {
            max-height: 299px;
        }
    }
    @media only screen and (min-width: 550px) and (max-width: 579px) {
        .seniorCoupleContainer {
            max-height: 313px;
        }
    }
    
    @media only screen and (min-width: 1px) and (max-width: 579px) {
        .seniorCouple {
            top: -50px;
            width: 564px; /* without this it's smaller for some reason */
        }
    }
    @media only screen and (min-width: 580px) and (max-width: 819px) {
        .seniorCoupleContainer {
            max-height: 302px; /* Get rid of bottom padding. */
        }
        .seniorCouple {
            width: 510px; /* without this it's smaller for some reason */
        }
    }
    @media only screen and (min-width: 820px) and (max-width: 989px) {
        .seniorCoupleContainer {
            max-height: 409px; /* Get rid of bottom padding. */
        }
        .seniorCouple {
            width: 700px; /* without this it's smaller for some reason */
        }
    }
    @media only screen and (min-width: 990px) and (max-width: 1199px) {
        .seniorCoupleContainer {
            max-height: 505px; /* Get rid of bottom padding. */
        }
        .seniorCouple {
            width: 871px; /* without this it's smaller for some reason */
        }
    }
    @media only screen and (min-width:2000px) {
        .seniorCoupleContainer {
            width: 100% !important;
            height: 591px;
            max-height: 591px; /* Get rid of bottom padding. */
        }
        .seniorCouple {
            width: 1024px;
        }
    }
    • This reply was modified 2 years, 10 months ago by garysch37.
    • This reply was modified 2 years, 10 months ago by garysch37.

    Hi Ismael,

    I used the fix from this post: https://kriesi.at/support/reply/1396490/

    I couldn’t even find a reference to the above filter:

    
    grep -R avf_load_google_map_api *
    framework/php/class-gmaps.php:           * true if loading of google script was canceled with filter 'avf_load_google_map_api_prohibited'
    framework/php/class-gmaps.php:           * true if loading of google script was canceled with filter 'avf_load_google_map_api_prohibited'
    framework/php/class-gmaps.php:                          $loading_prohibited = apply_filters( 'avf_load_google_map_api_prohibited', false );
    framework/php/class-gmaps.php:                                  apply_filters_deprecated( 'avf_load_google_map_api_prohibited', array( false ),'4.5.7.1', false, __( 'Filter was replaced by theme option', 'avia_framework' ) );
    

    This does appear to be a bug – unless there is some other reason we would load the gmaps scripts on the backend when you’ve disabled it in the theme.

    What’s the best way to make this fix permanent, I’m assuming a functions.php gets overwritten at some stage?

    Thanks

    #1407993

    Hi Simon,

    Thanks for giving us admin access.
    It seems the conflict was not with Enfold and the listing plugin but the child theme.
    Specifically, it was this code in functions.php:

    function ewp_remove_cf7_scripts() {
     wp_dequeue_script( 'wp-polyfill' );
     wp_deregister_script( 'wp-polyfill' );
    }
    add_action( 'wp_enqueue_scripts', 'ewp_remove_cf7_scripts', 100 );

    I commented out the action hook to disable it and the listing page works properly.
    Please review your site.

    Best regards,
    Nikko

    #1407885

    In reply to: Footer has disappeared

    Hey johnmac1967,
    Thank you for the link to your site, it looks like you are using an old version of the header.php in your child theme, please remove this file and check again.
    We don’t recommend adding the header.php or footer.php to the child themes as it is the top reason for errors after an update where these files were changed in the parent theme.
    Please use a function in your child theme functions.php to add any code you are tring to add to the header.php, this will prevent errors in future updates.

    Best regards,
    Mike

    #1407801

    Hi,

    [17-May-2023 06:38:57 UTC] PHP Warning: Undefined property: stdClass::$theme_location in /home/xcal/public_html/wp-content/themes/enfold/functions-enfold.php on line 157

    The property $theme_location in stdClass is not declared in the functions-enfold.php file originally. Did you add this line? Please make sure to update the theme to version 5.6.2. Let us know if the issue persists after updating.

    Best regards,
    Ismael

    garysch37
    Participant

    Dear Support Team:

    As part of my responsive images work, I am trying to replace a banner-like image on my home page, that spans the entire browser window width, with a smaller image on smaller windows/screens. I have an Image inside a Color Section at the top of the home page (under the header) that I inserted from my Media Library (that includes the alt & title text). Initially I tried with CSS (couldn’t get it to include alt & title text on the images), and now with Javascript (can’t get it to work at all).

    I’ve tried specifically in (i) Firefox in Windows 7, (ii) Safari, Firefox, & Chrome on a Mac desktop, and (iii) Safari on an iPhone: the smaller banner does not load (and the larger banner displays only because it’s in the Color Section).

    So, as I wrote, initially I tried with CSS:

    @media only screen and (min-width:965px) {
        .homeBannerIMG {
            content: url(https://...banner1.jpg);
        }
        .homeBannerIMG::before { /* For Firefox issues */
            content: url(https://...banner1.jpg);
        }
    }
    
    @media only screen and (max-width:964px) {
        .homeBannerIMG {
            content: url(https://...banner2.jpg); /* Concatenating '/ "test alt"' to the end doesn't work */
        }
        .homeBannerIMG::before{
            content: url(https://...banner2.jpg);
        }
            /* Note: https://developer.mozilla.org/en-US/docs/Web/CSS/content says this works:
                content: url("http://www.example.com/test.png") / "This is the alt text";
            BUT IT DOESN'T FOR ME!. Plus I want the image Title as well for the hover tooltip. */

    But I wasn’t able to maintain my alt & title text on the image. So I switched to Javascript (in my child functions.php file), first trying:

    function displayHomeBanner() {
        if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementById("homeBannerIMG").src="https://...banner1.jpg";
        } else {
            document.getElementById("homeBannerIMG").src="https://...banner2.jpg";
        }
    }

    But that didn’t work: when I made my browser window below 965px wide, banner2 was not swapped in; it stayed as banner1. Then I tried:

    document.getElementById("homeBannerIMG").getElementsByTagName('img')[0].src="https://...banner2.jpg";

    But that didn’t work. Then I tried:

    document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";

    Still no luck. I just can’t get banner2 to display.

    Note that my full CURRENT code in my child function.php file is:

    function windowSizeActions() {
        ?>
        <script>
            window.onresize = actOnWindowSize;
            window.onload = actOnWindowSize;
            
            function actOnWindowSize() {
                
                function displayWindowSize() {
                    myWidth = window.innerWidth;
                    myHeight = window.innerHeight;
                    document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
                }
            
                function displayHomeBanner() {
                    if (window.matchMedia("(min-width: 965px)").matches) {
                        /*document.getElementById("homeBannerIMG").src="https://...banner1.jpg";*/
                        document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner1.jpg";
                    } else {
                        /*document.getElementById("homeBannerIMG").src="https://...banner2.jpg";*/
                        /*document.getElementById("homeBannerIMG").getElementsByTagName('img')[0].src="https://...banner2.jpg";*/ /* Based on https://kriesi.at/support/topic/using-javascript-to-set-image-src-using-developer-id/: document.getElementById(‘work_image’).getElementsByTagName(‘img’)[0].src = work_image; */
                        document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";
                    }
                }
                displayWindowSize();
                displayHomeBanner();
            }
            
        </script>
        <?php
    }
    add_action( 'wp_enqueue_scripts', 'windowSizeActions' );

    First of all, as you can see, I’ve commented out my earlier attempts at loading the src, with just my last attempt with getElementsByClassName live.

    Secondly, I have my displayHomeBanner function embedded in the function actOnWindowSize, and that in an overall function windowSizeActions, because I need debug code to display the window size, done by my displayWindowSize function (and another function elsewhere to set up the HTML). That function works: my window size is displayed at the top of my window constantly, and changes as I change the browser window size. So this also ensures that things are working, except displayHomeBanner is not working.

    Also note that I have tried my code outside of WordPress/Enfold/Aria, using any w3schools.com‘s page’s Try it Yourself button:

    <!DOCTYPE html>
    <html>
    <body>
    
    <div>
      <img id="homeBannerIMG" src="https://...banner1.jpg" alt="test alt" title="test title">
    </div>
    
    <script>
      window.onresize = actOnWindowSize;
      window.onload = actOnWindowSize;
            
      function actOnWindowSize() {
                
        function displayWindowSize() { /* This of course won't work here, but it's irrevelent. */
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
          document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
        }
            
        function displayHomeBanner() {
          if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementById("homeBannerIMG").src="https://...banner1.jpg";
          } else {
            document.getElementById("homeBannerIMG").src="https://...banner2.jpg";
          }
        }
                
        displayHomeBanner();
      }
    </script>
    
    </body>
    </html>

    and

    <!DOCTYPE html>
    <html>
    <body>
    
    <div>
      <img class="homeBannerIMG" src="https://...banner1.jpg" alt="test alt" title="test title">
    </div>
    
    <script>
      window.onresize = actOnWindowSize;
      window.onload = actOnWindowSize;
            
      function actOnWindowSize() {
                
        function displayWindowSize() { /* This of course won't work here, but it's irrevelent. */
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
          document.getElementById("dimensions").innerHTML = " >>> " + myWidth + " x " + myHeight;
        }
            
        function displayHomeBanner() {
          if (window.matchMedia("(min-width: 965px)").matches) {
            document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner1.jpg";
          } else {
            document.getElementsByClassName("homeBannerIMG")[0].src="https://...banner2.jpg";
          }
        }
                
        displayHomeBanner();
      }
            
    </script>
    
    </body>
    </html>

    In both, my displayHomeBanner function works: my banner2 displays on smaller window sizes (and the title tooltip works)!

    Can you help me get it to work in WordPress please.

    Thank you,
    Gary

    • This topic was modified 2 years, 10 months ago by garysch37.
    • This topic was modified 2 years, 10 months ago by garysch37.
    BKK-3
    Participant

    Hi,

    i’m gettin the following error after uploading the wordpress website to the host server. Can you please help me with the issue

    Parse error: syntax error, unexpected ‘<‘, expecting end of file in /home/.sites/75/site2312713/web/wp-content/themes/enfold/framework/php/base-classes/class-object-properties.php on line 148

    Best regards.

    #1407712

    Hi,

    So I wanted to open this back up as im having the same issue again. I can not get the page builder to load on bigger pages. They work just fine on smaller pages but like my page “home” the builder will not load. admin-ajax.php fails to load.

    I have disabled all the plugins and I still get the same error.

    I also see the theme is causing some PHP errors that probably need to be looked at.

    [17-May-2023 06:38:57 UTC] PHP Warning: Undefined property: stdClass::$theme_location in /home/xcal/public_html/wp-content/themes/enfold/functions-enfold.php on line 157
    [17-May-2023 06:39:00 UTC] PHP Warning: Undefined array key “width” in /home/xcal/public_html/wp-includes/media.php on line 1191
    [17-May-2023 06:39:00 UTC] PHP Warning: Undefined array key “height” in /home/xcal/public_html/wp-includes/media.php on line 1192
    [17-May-2023 06:39:00 UTC] PHP Warning: Array to string conversion in /home/xcal/public_html/wp-includes/taxonomy.php on line 3667
    [17-May-2023 06:39:00 UTC] PHP Warning: Array to string conversion in /home/xcal/public_html/wp-includes/category-template.php on line 1301

    #1407596

    I just have found a solution FOR THE POST at Stackexchange and it is quite simple and works, my shortcode just needs a bit more CSS, that’s all.

    aaaa

    The snippet is:

    function my_caption_shortcode($atts) {
      if (isset($atts['caption'])) {
        // avoid endless loop
        remove_filter( current_filter(), __FUNCTION__);
        // apply shortcodes
        $atts['caption'] = do_shortcode($atts['caption']);
        // restore filter
        add_filter(current_filter(), __FUNCTION__);
      }
      return $atts;
    }
    
    add_filter("shortcode_atts_caption", "my_caption_shortcode");

    Source

    But for the copyright field in media liberary image it works NOT.
    Do you have a suggestion based on this snippet for this?

    #1407493

    Hi acardell887,

    No, I did not put it in Enfold Menu, I have added it in Enfold > Google Services > Google Analytics Tracking Code.
    I checked the frontend and Google Analytics Tracking Code wasn’t showing, probably because of caching, that’s why it’s not getting data as you mentioned.
    How did you place the code directly to header? is it via header.php? if yes, I would suggest using a child theme because once you update the theme, anything changed in theme files (parent) would be replaced.

    Best regards,
    Nikko

    Hi,
    Thanks for your question but this patch is already in the current enfold\config-layerslider\config.php on line 743
    Enfold_Support_2058.jpeg
    If you mean that you have customized the patch to work for your situation then you can try adding the modified ‘config-layerslider’ directory to your child theme, but I don’t think this will work because the parent theme functions.php calls the ‘config-layerslider/config.php’ directly on line 106.

    Best regards,
    Mike

    #1407285

    Hi,
    This solution is not working for you because your sub-menu is not at the top of your page as in this thread, so you will need some javascript to determine when the menu gets to the top of the page and then make it sticky.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function mobile_sub_menu_sticky() { ?>
    <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($){
      	var width = $(window).width();
        var $stickyTop = $('#sub_menu1');
        if (width <= 767) {
        $stickyTop.waypoint(function(direction) {
          if (direction === 'down') {
             $stickyTop.addClass('sticky-top');
          }
          if (direction === 'up') {
             $stickyTop.removeClass('sticky-top');
          }
        }, {
          offset: '0%'
        });
        }
      })(jQuery);
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'mobile_sub_menu_sticky');

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    Then this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    .sticky-top {
    	position:fixed!important;
    	top:0!important;
    	z-index:600!important;
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1407085

    Thanks for your advice. It has worked. It has stopped creating files. Unfortunately, the website is not working optimally yet. I think there is still an error looping. The log says this kind of messages:
    Error on sending request(GET /wp-content/uploads/dynamic_avia/avia-merged-styles-c9edd31fc63a9322c577ad214782385b.css HTTP/1.1); uri(/index.php) content-length(0): ReceiveAckHdr: nothing to read from backend (LVE ID 932), check http://docs.cloudlinux.com/mod_lsapi_troubleshooting.html

    #1407055
    Lúa
    Participant

    I have been given a website with Enfold in version 3.5.4. The first thing I did was to create and activate a child theme, importing the settings of the parent theme. I tried to upload directly the new Enfold version 5.6.1 folder via FTP (renaming first the folder of the old theme with enfold-OLD) but it didn’t work.

    So I entered the user and the themeforest API Key in the Enfold section but it doesn’t detect updates. And if I click on the “Check Manually” link it returns these errors:

    Warning: Illegal string offset ‘http_code’ in /homepages/11/d223943919/htdocs/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php on line 307

    Warning: Invalid argument supplied for foreach() in /homepages/11/d223943919/htdocs/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 49

    Warning: Illegal string offset ‘http_code’ in /homepages/11/d223943919/htdocs/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php on line 307

    Warning: Invalid argument supplied for foreach() in /homepages/11/d223943919/htdocs/wp-content/themes/enfold/framework/php/auto-updates/class-pixelentity-theme-update.php on line 49

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/11/d223943919/htdocs/wp-content/themes/enfold/framework/php/auto-updates/class-envato-protected-api.php:307) in /homepages/11/d223943919/htdocs/wp-admin/admin-header.php on line 9

    The website is working on PHP 7.3 and I can only make the jump to PHP 8.1. It is also working with WordPress 5.7.8, but I think I should not update WordPress until I have updated Enfold.

    I would appreciate any recommendations you can give me. Thanks.

    Hey Ringknipser,

    Really sorry for that and thank you for reporting it.

    There is a typo error in file ../enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php: line 701:

    Please replace

    
    $copyright_text = apply_filter( 'avf_alb_masonry_copyright_text', esc_html( $copyright_text ), $copyright_text, $attachment, $entry, $this->config );

    with

    
    $copyright_text = apply_filters( 'avf_alb_masonry_copyright_text', esc_html( $copyright_text ), $copyright_text, $attachment, $entry, $this->config );
    

    If you need help please let us know and give us WP admin access to your site (it is password protected) and activate theme editor so we can edit the file for you.

    It will be fixed in 5.6.2. I asked Kriesi for a hotfix release.

    Best regards,
    Günter

    Ringknipser
    Participant

    Hi,

    I haven’t posted here in ages (various accounts due to various websites) since the (roundabout) 20 websites I created and maintain based on the best theme ever, Enfold, never caused issues I couldn’t solve myself. Or by browsing this forum. But now I am in need of support please:

    Just a few days ago I started a new fun project for myself, using Enfold 5.5 at first. Everything went smooth and well like all the times. After the update to 5.6 however, the content of the portfolio items simply doesn’t show up anymore. The header and socket are showing, but none of the avia elements are visible anymore. This happened with the update to 5.6, updating to 5.6.1 did not solve the issue.

    All of my other websites do not show that behavior, although they run in the same server environment.

    In addition, the Yoast SEO plugin causes a critical error (content at the end) when I try to edit a portfolio item. But ONLY portfolio items, it doesn’t happen on pages or posts. Deactivating the plugin helps, no critical error on editing a portfolio. However, with a deactivated Yoast the portfilio content still doesn’t show. Never had that kind of issue with Yoast and Enfold before!

    I left Yoast deactivated and tried the following steps to narrow down the issue:

      checked everything on different browsers with empty caches
      deactivated all plugins
      disabled all file compression
      removed all manual changes or additions I made, like additional CSS or minor additions in functions.php
      triple checked .htaccess and wp-config
      changed the php-version to lower versions>
      I reverted to Enfold 5.5 and the content was visible again!

    After reverting I updated back to 5.6 and now 5.6.1., same issues like described above, again.

    All plugins I use are their latest version, Enfold is now 5.6.1, WordPress 6.2, PHP is 8.2.4., no child theme.

    I suppose you guys may want to look into the website, so I put access information into the private content already. No extra staging site needed, as this actually is a staging site.

    I would really like to know what’s happening here, so thank you very much for your support in adavance!

    Best regards
    Ringknipser

    Here is the content of the last critical error mail:

    Wenn du Hilfe bei diesem Problem suchst, wirst du möglicherweise nach einigen der folgenden Informationen gefragt:
    WordPress-Version 6.2
    Aktives Theme: Enfold (Version 5.6.1)
    Aktuelles Plugin:  (Version )
    PHP-Version 8.2.4
    
    Fehler-Details
    ==============
    Ein Fehler vom Typ E_ERROR wurde in der Zeile 701 der Datei /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function apply_filter() in /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php:701
    Stack trace:
    #0 /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_gallery/masonry_gallery.php(785): avia_masonry->html()
    #1 /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1181): avia_sc_masonry_gallery->shortcode_handler()
    #2 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/shortcodes.php(355): aviaShortcodeTemplate->shortcode_handler_prepare()
    #3 [internal function]: do_shortcode_tag()
    #4 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/shortcodes.php(227): preg_replace_callback()
    #5 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/class-wp-hook.php(308): do_shortcode()
    #6 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #7 /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/plugins/wordpress-seo/src/builders/indexable-link-builder.php(115): apply_filters()
    #8 /mnt/web203/e2/03/56733103/htdocs/domain/wp-content/plugins/wordpress-seo/src/integrations/watchers/indexable-post-watcher.php(207): Yoast\WP\SEO\Builders\Indexable_Link_Builder->build()
    #9 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/class-wp-hook.php(310): Yoast\WP\SEO\Integrations\Watchers\Indexable_Post_Watcher->build_indexable()
    #10 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #11 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/plugin.php(517): WP_Hook->do_action()
    #12 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/post.php(4726): do_action()
    #13 /mnt/web203/e2/03/56733103/htdocs/domain/wp-includes/post.php(4817): wp_insert_post()
    #14 /mnt/web203/e2/03/56733103/htdocs/domain/wp-admin/includes/post.php(439): wp_update_post()
    #15 /mnt/web203/e2/03/56733103/htdocs/domain/wp-admin/post.php(227): edit_post()
    #16 {main}
      thrown
    
    • This topic was modified 2 years, 11 months ago by Ringknipser. Reason: formatting
    #1406888
    Tom
    Guest

    Hi Kriesi,

    Could you please help us out? We’ve got an critical error on https://100pbio.com/ after an Enfold update.

    Here is the log:
    2023/05/09 12:03:38 [error] 17615#17615: *45913 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function did_filter() in /www/b100bio_501/public/wp-content/themes/enfold/functions.php:179
    Stack trace:
    #0 /www/b100bio_501/public/wp-settings.php(566): include()
    #1 /www/b100bio_501/public/wp-config.php(138): require_once(‘/www/b100bio_50…’)
    #2 /www/b100bio_501/public/wp-load.php(50): require_once(‘/www/b100bio_50…’)
    #3 /www/b100bio_501/public/wp-blog-header.php(13): require_once(‘/www/b100bio_50…’)
    #4 /www/b100bio_501/public/index.php(17): require(‘/www/b100bio_50…’)
    #5 {main}
    thrown in /www/b100bio_501/public/wp-content/themes/enfold/functions.php on line 179” while reading response header from upstream, client: 81.172.182.21, server: 100pbio.com, request: “GET / HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-b100bio.sock:”, host: “100pbio.com:20198”, referrer: “https://100pbio.com/wp-admin/themes.php&#8221;

    Please help.

    Kind regards,
    Tom

    #1406875
    BeeCee
    Participant

    Hi,

    I have a certain problem with ENFOLD which is difficult for me to describe, but i have a suspicion.
    For the moment I just want to know:

    when I look with phpMyAdmin at the database searching for the table avia_options_enfold, where the settings normally are saved, then the table is called
    avia_options_art2023
    because my OLD modified ENFOLD theme was called “art2023”. So far, so okay.

    Due to some problems I have deactivated this modified theme, deleted it from WordPress and the FTP.
    Then I have today installed ENFOLD 5.6.1, made my theme settings NOT via IMPORT, but made the theme settings all manually.

    Why is now at phpMyAdmin not a table avia_options_enfold, instead still avia_options_art2023 although this old theme is deleted from WordPress (multisite, it was active only at one subsite resp. the main site) and it was deleted from FTP.

    Yes, I selected the right database on phpMyAdmin 😉

    BUT:
    —> How can it be, when I look at the above database table afterwards, that it contain the old theme settings from an ENFOLD that is no longer installed (“art2023”)?
    –> or are in this database table only theme settings saved, that have been IMPORTED, i.e. not the newly manually entered setings?

    screen1

    Hey emilconsor,

    Thank you for the inquiry.

    To ensure that the HTML is valid and all containers are closed properly, it’s recommended to check the rendered output of the $outputaddition. And instead of editing the column.php file directly, you should try to create a custom shortcode that renders the PDF download button directly based on the specified conditions above. This way, you can use the custom shortcode directly in the Column element without affecting the column’s structure or output.

    Best regards,
    Ismael

    #1406813

    try using that little snippet in your child theme functions.php:

    function show_date_with_shortcode() { 
      date_default_timezone_set('Europe/Berlin');
      setlocale(LC_TIME, 'de_DE.UTF-8');
      $date = date_i18n( 'l \d\e\n ' . get_option( 'date_format' ) . ' ' . get_option( 'time_format' ). ' \U\h\r'  );
      return $date ;
    }
    add_shortcode( 'show_date', 'show_date_with_shortcode' );

    use it as shortcode in your text : [show_date]

    this is for my german language a binding word \d \e \n will end in Freitag den 17.04.1968
    the rest will be corresponding to your lang settings – but if you like to have that binding word f.e. the then use \t\h\e
    if you don’t like the time in this shortcode – just remove that part:
    $date = date_i18n( 'l \d\e\n ' . get_option( 'date_format' ) );

    ___________

    or style a kind of calendar sheet:

    function datum_shortcode() {
      date_default_timezone_set("Europe/Berlin");
      setlocale(LC_TIME, 'de_DE.UTF8');
      $year = date_i18n('Y');
      $day = date_i18n('d');
      $month = date_i18n('F');
      $weekday = date_i18n('l');
      $weekdaycolor = date_i18n('l') == 'Sonntag' ? 'red': 'gray' ;
      $uhrzeit = date_i18n( get_option( 'time_format' ) );
    
      $datum = '<div id="calendar_sheet"><div class="month-year"><span class="month">'.$month.'</span><span class="year">' .$year.'</span></div><div class="day ' .$weekdaycolor.'">'.$day.'</div><div class="weekday">'.$weekday.'</div><div class="time">'.$uhrzeit.'</div></div>';
      return $datum;
    }
    add_shortcode('calendar_sheet', 'datum_shortcode');

    here use it as shortcode in your text: [calendar_sheet]

    some css for it:

    #calendar_sheet{
    text-align:center;
    display: inline-block;
    border:1px solid #eee;
    border-top:15px solid #0076ba;
    -webkit-box-shadow: 5px 5px 2px #ccc;
    -moz-box-shadow: 5px 5px 2px #ccc;
    box-shadow: 5px 5px 2px #ccc;
    background:#fafafa;
    padding: 5px;
    min-width: 150px;
    }
    
    .month-year .month,
    .month-year .year {
      padding: 0 5px
    }
    
    .day {
      font-size:48px;
      font-weight: bold;
      font-family: times;
      padding: 10px 0 0;
    }
    
    .day.red {
        color: red;
    }
    
    #calendar_sheet .time {
      font-size: 24px;
    }

    see both shortcodes in action on: https://enfold.webers-webdesign.de/3-columns/

    again adjust to your language: so for red Sundays change that Sonntag to Sunday in weekday color ;)
    and change to your local time in these lines:

    date_default_timezone_set("Europe/Berlin");
      setlocale(LC_TIME, 'de_DE.UTF8');
    • This reply was modified 2 years, 10 months ago by Yigit.
    #1406654

    ok – i edited the postslider.php – and for what i like to have i only added just before output article this:
    ( on Enfold 5.6 in postslider.php just before line 937 )

    if( get_post_type( $the_id ) == 'attachment' ){
      $post_class .= 'posttype-attachment ';
    }

    or more common – if you like to add any post-type as class on articles:

    $posttype = get_post_type( $the_id );
    $post_class .= 'posttype-'.$posttype. ' ';

    so if the post_type is attachment this will be found as class to slide_entry. After that it is easy to change the link behavior to not open the attachment page but to open directly a lightbox.

    #1406645
    slauffer
    Participant

    Sehr geehrtes Team,
    Ich wollte eine Enfold 5.4.x Version updaten. PHP war 7.4.x und WordPress war auch recht aktuell. Jetzt stehe ich bei einem ERROR 500-Fehler und komme weder auf das WordPress-Backend noch auf die Website. Was kann das sein?
    Über Hilfe würde ich mich sehr freuen!
    Mit freundlichem Gruß
    Simone Lauffer

    #1406639

    Hi,
    If you want to create a shipping option you will need to use a plugin, if you only want to show that a specific product has a shipping method for customer info try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_action( 'woocommerce_single_product_summary', 'product_attribute_dimensions', 25 );
    function product_attribute_dimensions(){
        global $product;
        $taxonomies = array('express');
        foreach($taxonomies as $taxonomy ){
            $value = $product->get_attribute( $taxonomy );
            if ( $value ) {
                $attribute_label_name = wc_attribute_label( $taxonomy );
    			echo '<p>Express Shipping:' . $value . '</p>';
            }
        }
    }

    the in your product attributes add a custom attribute named express with the value you wish 24/48 H
    Enfold_Support_2000.jpeg
    Then on the product page the attribute will show under the description and in the Additional information tab:
    Enfold_Support_2004.jpeg

    Best regards,
    Mike

    #1406616

    Hey mexi33330,
    Please ensure that you are using Enfold v5.6 and a minimum of PHP v7.4, if this is true then try disabling your plugins. If that resolves the issue, reactivate each one individually until you find the cause.
    If this doesn’t help please include an admin login in the Private Content area so we can be of more assistance.

    Best regards,
    Mike

    #1406608

    Hey paulasworld,
    I see your site is using Enfold v4.7.5 with WordPress v6.11 and PHP v8, this version of the theme doesn’t support these so you will need to update.
    To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    WordPress_Appearance_Themes_Add-Themes_Add-New.jpg
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
    Installing_theme_from_uploaded_file_This_theme_is_already_installed.jpg
    then you will see the Theme updated successfully message.
    Theme_updated_successfully.jpg

    Best regards,
    Mike

    #1406590

    In reply to: Please help

    Hey Paula Apro,
    Thank you for your patience, unfortunately, I couldn’t find your old or new email address registered in the support forum, please try to register your Purchase Code here
    I see your site is using Enfold v4.7.5 with WordPress v6.11 and PHP v8, this version of the theme doesn’t support these so you will need to update.
    To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New
    WordPress_Appearance_Themes_Add-Themes_Add-New.jpg
    after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue
    Installing_theme_from_uploaded_file_This_theme_is_already_installed.jpg
    then you will see the Theme updated successfully message.
    Theme_updated_successfully.jpg

    Best regards,
    Mike

    #1406458

    which one of that code? here: https://kriesi.at/support/topic/full-screen-hamburger-menu-with-video-background/#post-1404878

    if you read you see the warning : line-breaks will not work on that

    use this:

    function add_video_to_hamburger_background() { 
    ?>
    <script type="text/javascript">
    (function($){
    	$('#header').one('click', '.av-main-nav-wrap' , function() {
    		setTimeout( function() {		  
    			$('.av-burger-overlay').append('<div class="video_burger_bg"><video autoplay="" loop="" class="video_style" style="width: 2226px; height: 1252px; top: 0px; left: -248px;"><source src="https://milano.beantown.website/wp-content/uploads/menu.m4v" type="video/mp4"><source src="https://milano.beantown.website/wp-content/uploads/menu.webm" type="video/webm"><source src="https://milano.beantown.website/wp-content/uploads/menu.ogv" type="video/ogv"><img src="https://milano.beantown.website/wp-content/uploads/menu.jpg" alt="background"></video></div>');		 
    		},300);   
    	});
    })(jQuery);
    </script>
    <?php 
    }
    add_action('wp_footer', 'add_video_to_hamburger_background');

    can you show us your site?

    #1406432

    Topic: Bug Enfold

    in forum Enfold
    Aurorer92
    Participant

    Bonjour,

    Depuis aujourd’hui mon site n’est plus accessible à cause d’un bug d’Enfold, voici le message envoyé par wordpress :

    Si vous cherchez de l’aide pour ce problème, les informations suivantes pourraient vous être demandées :
    WordPress version 6.0.3
    Thème actif : Enfold (version 5.6)
    Extension actuelle : (version )
    PHP version 7.4.33

    Détails de l’erreur
    =====================
    Une erreur de type E_ERROR a été renvoyée dans la ligne 179 du fichier /home/jtvb4693/public_html/wp- content/themes/enfold/fonctions.php. Message d’erreur : Uncaught Error: Call to undefined function did_filter() in /home/jtvb4693/public_html/wp-content/themes/enfold/functions.php:179
    Stack trace:
    #0 /home/jtvb4693/public_html/wp- settings.php(566): include()
    #1 /home/jtvb4693/public_html/wp-config.php(80): require_once(‘/home/jtvb4693/…’)
    #2 /home/jtvb4693/public_html/wp- load.php(50): require_once(‘/home/jtvb4693/…’)
    #3 /home/jtvb4693/public_html/wp-admin/admin.php(34): require_once(‘/home/jtvb4693/…’)
    # 4 /home/jtvb4693/public_html/wp-admin/update-core.php(10): require_once(‘/home/jtvb4693/…’)
    #5 {principal}
    lancé

    Un free lance que j’ai contacté pense à un piratage, qu’en pensez-vous ? Il me dit que c’est une erreur qui ne peut arriver comme ça sur mon thème.

    This reply has been marked as private.
Viewing 30 results - 1,321 through 1,350 (of 16,891 total)