Tagged: error, social icons
-
AuthorPosts
-
April 11, 2019 at 12:22 am #1089280
Hi there,
for our website https://info.hiorg-server.de we are using latest version Enfold (/child) Theme 4.5.5 on WP 5.1.1 with PHP 7.0.33.
Although we have some traffic on the site, we are seeing the following error messages constant 4 times every hour (?!):
ool www: PHP Warning: Invalid argument supplied for foreach() in /var/www/wp/wp-content/themes/enfold/includes/helper-assets.php on line 330
ool www: PHP Fatal error: Uncaught Error: Call to undefined function av_icon_string() in /var/www/wp/wp-content/themes/enfold/includes/helper-social-media.php:84
Stack trace:
#0 /var/www/wp/wp-content/themes/enfold/includes/helper-social-media.php(105): avia_social_media_icons->build_icon(Array)
#1 /var/www/wp/wp-content/themes/enfold/includes/helper-social-media.php(19): avia_social_media_icons->html()
#2 /var/www/wp/wp-content/themes/enfold/includes/helper-main-menu.php(10): avia_social_media_icons(Array, false)
#3 /var/www/wp/wp-includes/template.php(706): require(‘/var/www/wp…’)
#4 /var/www/wp/wp-includes/template.php(653): load_template(‘/var/www/wp…’, false)
#5 /var/www/wp/wp-includes/general-template.php(157): locate_template(Array, true, false)
#6 /var/www/wp/wp-content/themes/enfold/header.php(105): get_template_part(‘includes/helper’, ‘main-menu’)
#7 /var/www/wp/wp-includes/template.php(704): require_once(‘/var/www/wp…’)
#8 /var/www/wp/wp-includes/template.php(653): l in /var/www/wp/wp-content/themes/enfold/includes/helper-social-media.php on line 84April 12, 2019 at 5:59 am #1089866Hey hiorgserver,
Where exactly are you seeing those messages? If on the backend then we need login details in private in order to check it.
Best regards,
RikardApril 14, 2019 at 11:17 pm #1090770Hi Rikard,
we only see this message in the syslog of the server. The server is configured not to show php errors in stdout. But also when I browse the website, everything is working well. I’m not sure how to trigger this error, but it keeps appearing in the server log several times per day.
Thanks for your help,
ChristophApril 17, 2019 at 11:51 pm #1092168Hi,
What is the php version of the Server?
Best regards,
BasilisApril 18, 2019 at 9:31 am #1092349php-fpm 7.0.33-0+deb9u3
April 19, 2019 at 10:31 pm #1092766Hi,
Please update to php 7.3+ things should be fixed afterwards.
Best regards,
BasilisFebruary 29, 2020 at 12:25 pm #1189012Hi Basilis,
thanks for your advice: indeed, the error occurs less often with a more recent PHP Version – but it still appears some times a day:
WordPress-Version 5.3.2
Aktuelles Theme: Enfold Child (Version 1.0)
Aktuelles Plugin: (Version )
PHP-Version 7.4.3Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 167 der Datei /var/www/…../wp-content/themes/enfold/includes/helper-social-media.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function av_icon_string() in /var/www/…../wp-content/themes/enfold/includes/helper-social-media.php:167
Stack trace:
#0 /var/www/…../wp-content/themes/enfold/includes/helper-social-media.php(195): avia_social_media_icons->build_icon(Array)
#1 /var/www/…../wp-content/themes/enfold/includes/helper-social-media.php(23): avia_social_media_icons->html()
#2 /var/www/…../wp-content/themes/enfold/includes/helper-main-menu.php(10): avia_social_media_icons(Array, false)
#3 /var/www/…../wp-includes/template.php(724): require(‘/var/www/vhosts…’)
#4 /var/www/…../wp-includes/template.php(671): load_template(‘/var/www/vhosts…’, false)
#5 /var/www/…..(for better readability and privacy, I shortened the full server path. The target paths in #3 (require) and #4 (load_template) are missing in my log view, too – sorry)
March 4, 2020 at 1:39 am #1189865Hi,
Thank you for the update.
The site contains an older version of the theme, so you will have to update it to v4.7.3. The upgrade should help fix this issue. Please don’t forget to toggle the Performance > File Compression settings and purge the cache after adding the code.
Best regards,
IsmaelMarch 5, 2020 at 1:25 pm #1190420Hi,
thanks for your response.
Although, we are using the most recent version of both the “Enfold Theme”: 4.7.3 and also “Enfold Child: 1.0”.The update checker inside the Theme’s (Enfold child) settings says:
Theme Updates
No Updates available. You are running the latest version! (4.7.3)
Check Manually
Your PHP version: 7.4.3
Last successful check was on 2020/03/05 08:22.And also WordPress’ update section doesn’t report any updates.
The error still occurs some times a day, most of the times when (a bot?) tries to access
/wp-login.php
March 6, 2020 at 12:09 pm #1190845Hi Felix,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaFebruary 25, 2021 at 4:18 pm #1283702I’m experiencing the same issue. I’m getting the following errors by email from WP from time to time. Can’t see any visible negative effect on the site though.
I’m using the latest WP version on PHP 7.3.27 with latest Enfold theme.
E_ERROR, rasta eilutėje 167, faile /home/customer/www/.lt/public_html/wp-content/themes/enfold/includes/helper-social-media.php. Klaidos pranešimas: Uncaught Error: Call to undefined function av_icon_string() in /home/customer/www/.lt/public_html/wp-content/themes/enfold/includes/helper-social-media.php:167 Stack trace: #0 /home/customer/www/.lt/public_html/wp-content/themes/enfold/includes/helper-social-media.php(195): avia_social_media_icons->build_icon(Array) #1 /home/customer/www/.lt/public_html/wp-content/themes/enfold/includes/helper-social-media.php(23): avia_social_media_icons->html() #2 /home/customer/www/.lt/public_html/wp-content/themes/enfold/includes/helper-main-menu.php(10): avia_social_media_icons(Array, false) #3 /home/customer/www/.lt/public_html/wp-includes/template.php(732): require('/home/customer/...') #4 /home/customer/www/.lt/public_html/wp-includes/template.php(676): load_template('/home/customer/...', false, Array) #5 /home/customer/www/.lt/public_html/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #6 /home/customer/www//p
I’ve removed the site URL for privacy purposes.
February 26, 2021 at 3:39 pm #1283871Hi,
Thank you for the inquiry.
The av_icon_string function is defined in the enfold\config-templatebuilder\avia-template-builder\php\font-manager.class.php and is loaded on WP init, so this issue should not be occurring. Are you using the social media icons in any unique way, maybe adding it in a template directly or something like it?
Best regards,
IsmaelFebruary 26, 2021 at 4:32 pm #1283890Hi @Ismael,
I’m only using the default Enfold functionality to add icons to socket and top-nav.Thanks,
AndriusMarch 1, 2021 at 1:06 pm #1284408Hi,
Could you provide a list of plugins that are currently installed in the site? Maybe one of them is loading the theme partially, which might be causing the issue. Have you tried upgrading to PHP 8.0?
Best regards,
IsmaelMarch 2, 2021 at 3:55 pm #1284785I’m running multiple sites on Enfold and all of them are hosted on SiteGround and running the same version of PHP, so I don’t think is a PHP issue as I’ve been having these errors only on 2 of the sites.
I’m including the list of plugins and server env info.
March 2, 2021 at 5:00 pm #1284814Hi,
as I’ve been having these errors only on 2 of the sites.
Are there any plugins installed in these sites that do not exist on the others? It is possible that one of those plugins is causing the issue.
Did you enable the scanning option of the WP Cerber security plugin?
// https://wpcerber.com/wordpress-security-scanner/
Does the error occur when you run the scan manually?
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.