I have the exact same error. The theme is up to date, as are all your plugins. The plugin that causes the error is the “tagDiv Opt-In Builder”. Version 1.7 | built on 10.02.2025 10:50
Do you already have a solution?
Below is the error message:
Un errore di E_ERROR è stato causato nella linea 3276 del file /var/www/vhosts/bereilvino.it/httpdocs/wp-content/plugins/td-subscription/includes/td_subscription.php. Messaggio di errore: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /var/www/vhosts/bereilvino.it/httpdocs/wp-content/plugins/td-subscription/includes/td_subscription.php:3276
Stack trace:
#0 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/class-wp-hook.php(324): td_subscription::td_post_theme_settings_mb_save_filter()
#1 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 /var/www/vhosts/bereilvino.it/httpdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/external/wpalchemy/MetaBox.php(880): apply_filters()
#3 /var/www/vhosts/bereilvino.it/httpdocs/wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/external/wpalchemy/MetaBox.php(2081): WPAlchemy_MetaBox->apply_filters()
#4 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/class-wp-hook.php(326): WPAlchemy_MetaBox->_save()
#5 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/post.php(5110): do_action()
#8 /var/www/vhosts/bereilvino.it/httpdocs/wp-includes/post.php(5212): wp_insert_post()
#9 /var/www/vhosts/bereilvino.it/httpdocs/wp-admin/includes/post.php(453): wp_update_post()
#10 /var/www/vhosts/bereilvino.it/httpdocs/wp-admin/post.php(227): edit_post()
#11 {main}
thrown
OK, thanks for you reply, I will search for another solution.
It works fine with a filled custom post type, but it does not work properly if it is empty. It displays the icon with the url of the page.
It’s works! The link button shows now the correct url https://www.facebook.com/ilcortiglio/
The string {cf__facebook_can} is the correct one. I probably wasn’t fully awake to notice this stupid mistake 🙁
Thanks Anamaria, your are an angel. Have a nice day!
Sure, here some screenshots:
https://imgur.com/a/YqfvPOb
https://imgur.com/a/cQqS69C
https://imgur.com/a/1drdeo2
https://imgur.com/a/vIP3r5F
Thanks for your answer Anamaria. I used the string {cf_facebook_can} in place of the old one {_facebook_can} and something is changed, but it still doesn’t work. The new link button becomes http://localhost/bereilvino/cantina/il-cortiglio/#. Like a missing url, but the custom field is not empty.
Hi, I have a similar problem, but it still doesn’t work for me. My custom field is _facebook_can but if I use {_facebook_can} on my button url, I get a non valid url, just this one http://localhost/bereilvino/cantina/il-cortiglio/%7B_facebook_can and if clicked redirect to a 404 page.
Can you help me? Thanks
