• Resolved tgospodinov

    (@tgospodinov)


    Hi there,

    I uploaded the plugin and activated it. I got the following error:

    Catchable fatal error: Argument 1 passed to DrawAttention_CustomFields::hotspot_area_group_details_metabox() must be of the type array, null given in /var/www/html/meps/wp-content/plugins/draw-attention/public/includes/custom_fields.php on line 177

    Could you please propose how to find a solution for this? I really need the script.

    The site is hosted on local network so it’s access is restricted.
    The wordpress version is 4.9 I believe. I can’t check right now but it’s one of the latest. I cannot enter the site at all, neither to the admin page (I got the same error message).

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter tgospodinov

    (@tgospodinov)

    WordPress 4.8.2 and PHP 5.6.30

    Plugin Author croixhaug

    (@croixhaug)

    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

    Thread Starter tgospodinov

    (@tgospodinov)

    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

    Plugin Author croixhaug

    (@croixhaug)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Broke the site’ is closed to new replies.