-
AuthorPosts
-
May 25, 2022 at 3:52 pm #1352933
I have PHP logging enabled to try to fix a problem but the following appeared in the log.
[22-May-2022 21:30:44 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.php on line 574 and defined in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3751 Stack trace: #0 /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.php(574): aviaElementTemplates->set_locked_attributes('', Object(avia_sc_tab), 'av_tab', Array, Array, '') #1 /var/www/web/wp-includes/shortcodes.php(356): avia_sc_tab->av_tab('', '', 'av_tab') #2 [internal function]: do_shortcode_tag(Array) #3 /var/www/web/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(av_tab...', 'do_shortcode_ta...', '<br />\n[av_tab ...') #4 /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(506): do_shortcode('<br />\n[av_tab ...') #5 / in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 3751
It’s not – that I know of – giving me any issues and it has not occurred since, but I thought you might like to investigate if this is an error or just a one-off fluke.
May 25, 2022 at 5:38 pm #1352955Hey zimbo,
Thanks for reporting this. Do you have a step by step instructions on how to reproduce it?
Best regards,
RikardMay 25, 2022 at 7:58 pm #1352974I didn’t realise before posting that the site is running 4.8.6.1, so if the code has been updated since that version it might be fixed.
No I cannot reproduce it, in part because the site does not use a Tab Section anywhere that I’m aware of on its Pages (it does have the Combo widget on every page and post, which is tabbed) so it seems strange to me that tabs.php should throw an error. Having said that, the site has 12,800 Posts dating back nearly 10 years, so it’s possible a Tab section was used in the past – but the site Editor cannot remember doing so… Does that code get called by something else?
Also, at the time the error was logged, middle of a Sunday evening, no admin folks were working on the site so however the error was invoked it would have to be by a normal user (unless of course there’s a system process that might cause it).
Sorry can’t offer more insight (but if there’s anything I can do further, please advise).
May 25, 2022 at 8:42 pm #1352980Hi,
Thanks for the update. Maybe you could update us if this should happen again, and if you have some more information on how to reproduce it?
Best regards,
RikardMay 27, 2022 at 1:07 pm #1353142Updated to 4.9.2.3 yesterday, no further errors.
Can you explain how tabs.php could throw such an error as there is not a Tab Section on the site’s Pages? Or must there be somewhere in a Post?
May 27, 2022 at 1:52 pm #1353155 -
AuthorPosts
- You must be logged in to reply to this topic.