-
Search Results
-
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 406I 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
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,
GaryHi,
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.
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.
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
RingknipserHere 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} thrownTopic: Critical error
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”Please help.
Kind regards,
TomSehr 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 LaufferTopic: Bug Enfold
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.33Dé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.








