WordPress 4.8.2 and PHP 5.6.30
Hi there, sorry you’re getting a fatal error. We want to help you get this resolved! In the 3+ years this plugin has been out, we’ve never gotten a report like this and I can’t replicate it on any of our test sites, so I suspect there must be something unique about your WP environment. That’s not to say we can’t fix it, but it will help if I can get pointed in the right direction.
If you could tell us…
1. Are you running WP multisite? (if you know)
2. Are you hosting on a Windows server? (if you know) Linux is more common, but sometimes there are issues specific to Windows hosting
3. Could you send me a list of the other plugins you have installed?
4. Can you send me the name of the theme you’re running? and a link to it on wordpress.org or where you purchased it.
it would really help in figuring out the problem here.
Temporarily, if you go via your site’s FTP and remove the directory wp-content/plugins/draw-attention/ (or just rename it), that will disable the plugin so you can work as normal until we can get this fixed for you.
Thanks!
Nathan
Hi there,
thank you for your prompt reply! I hope you are doing well!
We have deactivated the plugin and that fixed the site. However, I am still interested in your plugin and how to get it work well!:)
I will try to answer to some of your questions:
1. Yes
2. Linux
3. Activated plugins:
- CMB2 - v2.2.5.3. https://github.com/CMB2/CMB2
- Contact Form 7 - v4.9.2 https://contactform7.com/
- Count per day - v3.5.7 www.tomsdimension.de/wp-plugins/count-per-day
- Easy Forms for MailChimp - v 6.3.26. https://yikesplugins.com/plugin/easy-forms-for-mailchimp/
- King Composer - v2.6.15 https://kingcomposer.com
- Newsletter - v 5.1.6 https://www.thenewsletterplugin.com/plugins/newsletter
- One Click Demo Import - v 2.4.0 https://wordpress.org/plugins/one-click-demo-import/
- PDF Viewer for WordPress - v 7.1 https://themencode.com/plugins/pdf-viewer-for-wordpress/
- Redux Framework - v 3.6.7.7 https://wordpress.org/plugins/redux-framework/
- Ultimate Category Excluder - V 1.1 infolific.com/technology/software-worth-using/ultimate-category-excluder/
- Widget Importer & Exporter - v 1.5.2 https://wpultimate.com/widget-importer-exporter
- WPHash Helper Plugin - v1.0
- WP Power Stats V 2.2.2 http://www.websivu.com/wp-power-stats/
- YOP Poll - v5.8.3 yop-poll.com
4. We use Softee theme:
https://themeforest.net/item/softee-multipurpose-software-saas-product-theme/20207051
Many thanks for the support!
Todor
Hi Todor, sorry we didn’t get back to you on this! I would suspect that CMB2 is the problem, we use a version of CMB2 in our plugin as well and maybe the versions conflict. If you message us at our pro support – support@tylerdigital.com we’re happy to help you in moredetail – if you’re still looking at our plugin after our delay!
Thanks,
Nathan
Hello! Justin Sternberg, developer for CMB2. CMB2 is built in such a way that versions should never conflict, no matter how they are installed or bundled. Looking at the line in question, it’s entirely possible that some other code is not returning an array to the cmb2_meta_boxes
filter, so by the time your hotspot_area_group_details_metabox
hook runs (at priority of 11), it is no longer an array. The filters are an old method of initiating CMB2 boxes, so I’d recommend updating to the new(ish) method.
I also see that you have a pretty old version of CMB2 bundled, and I would advise you update the bundled version for many reasons including performance, security, etc. If you have a github repo, I would also open some issues there suggesting ways to improve how CMB2 is included (in DrawAttention_CustomFields::__construct()
), but in short, I’d follow the method demonstrated in the example file and remove the class_exists
checks.