We have some enfold buttons on a page of ours, and we’re getting this php warning when we have our php errors turned on.
Notice: Undefined index: index in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttons_fullwidth.php on line 346
Notice: Undefined index: index in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttons_fullwidth.php on line 346
Notice: Undefined index: index in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/buttons_fullwidth.php on line 346
Hey Carl,
Sorry for the delay, would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)
Best regards,
Vinay
This is the page we saw those errors on. We have php on our live site set to hide errors, but they’re still showing up in our logs.
Hi,
It’s because of uninitialized variable in the fullwidth button shortcode template which is nothing to worry about: http://php.net/manual/en/language.variables.basics.php#example-112
If you really want the issue to go away, modify the config-templatebuilder > aviashortcodes > button_fullwidth.php file, go to the line stated in the error, replace it with:
if(isset($meta['index']) && $meta['index'] == 0) $params['close'] = false;
Best regards,
Ismael
I’m having the same issue with another language on my site.
Default version works well –
doppe.coma.lv/
doppe.coma.lv/katalog/elektrotovary/
Second language, english is giving all these errors even when I’m not logged in
doppe.coma.lv/en/electrical-goods/
doppe.coma.lv/en/
Hi @vadikcoma,
Please start a new topic and post admin login details in private so that we can have a closer look.
Regards,
Rikard