Tagged: PHP Fatal Error
-
AuthorPosts
-
January 16, 2020 at 4:36 pm #1175099
Just a heads up that after updating to Enfold 4.7.1, the theme thows the following PHP error:
`PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function handler_avia_widget_text(), 1 passed in /home/xxxx/xxxx/wp-includes/class-wp-hook.php on line 288 and at least 2 expected in /home/xxxx/xxxx/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:2176′
If I disable the Members plugin then the error clears. WordPress version is 5.3.2 and things were fine before upgrading from Enfold 4.6.3.1.
January 18, 2020 at 11:27 am #1175790Hey Barnez1,
Thanks for using Enfold and for reporting this.
The plugin seems to call the WP filter widget_text with too few parameters. I added default values to our parameter list – this should fix the problem.
Will be part of the next update.
Meanwhile you can replace enfold/framework/php/function-set-avia-frontend.php with:
Best regards,
GünterJanuary 18, 2020 at 1:04 pm #1175812Hi Günter,
Many thanks for looking into this. When I replace the
function-set-avia-frontend.php
file with the modified version, it throws a different error as follows:[18-Jan-2020 10:58:56 UTC] PHP Warning: require(/home/xxxx/xxxx/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php): failed to open stream: No such file or directory in /home/xxxx/xxxx/wp-content/themes/enfold/framework/php/inc-autoconfig.php on line 167
[18-Jan-2020 10:58:56 UTC] PHP Fatal error: require(): Failed opening required ‘/home/xxxx/xxxx/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php’ (include_path=’.:/opt/cpanel/ea-php73/root/usr/share/pear’) in /home/xxxx/xxxx/wp-content/themes/enfold/framework/php/inc-autoconfig.php on line 167Regards,
BarnezJanuary 18, 2020 at 1:32 pm #1175814Hi,
Hm, means that php cannot find/read/open the updated file.
How did you update the file content? With WP theme editor?
If you give us ftp access and WP admin credentials we can update it for you.
Best regards,
GünterJanuary 18, 2020 at 3:05 pm #1175827Hi,
Yes, you’re right. I created the php file again using Notepad++, uploaded and all is well. I can confirm the fix works.
Many thanks for your attention to this.
Best regards.January 19, 2020 at 4:30 am #1175957Hi,
Great, I’m glad that Günter could help you out and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardJanuary 19, 2020 at 6:05 pm #1176026Hi,
Yes. Please mark the topic as resolved and close it. Thanks again for the quick fix.
Best regards,
BarnezJanuary 19, 2020 at 8:35 pm #1176092Hi Barnez,
Ok, we are closing the thread.
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- The topic ‘Fatal error: Too few arguments to function handler_avia_widget_text()’ is closed to new replies.