• Resolved swinggraphics

    (@swinggraphics)


    Plugin has been working great since we installed it over a year ago. We recently noticed an error. Maybe with version 8 update?

    Edit post pages have this error in the console: “broadcast_blogs_to_hide is not defined”
    The code referenced is:

    <div class="blogs_js html_section"><script type="">var broadcast_blogs_to_hide = ;</script></div>

    I went to the Broadcast’s Admin Settings and found the “Blogs to hide” option. It is blank, so I set it to something.

    BTW, I was not allowed to save the changes until I had set “save_post priority.” I have no idea what this should be, so I set it to the “default”. (Default in quotes because I had to set it manually; it’s blank by default.)

    Everything seems A-OK now!

    https://www.ads-software.com/plugins/threewp-broadcast/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author edward_plainview

    (@edward_plainview)

    It can’t be with the upgrade: I had someone else report in the same problem, but the user had been using v7 without upgrading to v8.

    Somehow something thinks it a good idea to overwrite the settings. I can’t say what it could be, though. The only time the settings should be written to is when the settings page is saved. No other time.

    Could you provide me with a list of plugins you have active, perhaps?

    Thread Starter swinggraphics

    (@swinggraphics)

    I’m not actually sure how long the problem has existed, but we just noticed it very recently. Admittedly, there have not been updates for a while. The other plugin I updated two days ago along with Broadcast was Yoast SEO. Types, Bulletproof, and GravityForms were a month ago (tho GF is not active on the main site).

    These are the active plugins:
    Auto ThickBox Plus
    BackUpWordPress
    BulletProof Security (not recently updated)
    Contact Form 7
    Contact Form 7 Honeypot
    Types
    WordPress Importer
    WordPress MU Domain Mapping
    WordPress SEO
    WP Super Cache

    If you want to blame it on Bulletproof, I can live with that. ??

    Cheers.

    If you want to blame it on Bulletproof, I can live with that. ??

    What purpose would that serve? How would that be any kind of valid answer, response or solution? Cause >>> effect == problem >>> solution.

    If BulletProof Security was causing the problem then the steps you did to get things working would NOT have worked. BulletProof Security is all or nothing – ie either something is blocked (because it appears to be malicious/dangerous or is malicious/dangerous) or it is not. There is no inbetween. If something legitimate is being blocked/forbidden by accident by BPS then you would use BPS Custom Code to create a whitelist rule to allow whatever legitimate thing is being blocked.

    @edward_plainview – I believe the user is talking about a php error (see below). Probably an insignificant PHP Notice error. I tested your plugin with BPS and did not find any issues/problems/conflicts.

    Ie something like this one that you can see by using WP_DEBUG:

    Notice: Undefined index: last_used_settings in C:\xampp\htdocs5\multisite\wp-content\plugins\threewp-broadcast\include\ThreeWP_Broadcast.php on line 582

    I see that your plugin requires PHP5.4.x or higher. Could that be the cause of the issue/problem? ie the user is using a lower version of PHP.

    By default I see that the value of Blogs to hide is numeric and on my test site it shows a value of: 5.

    Additional Note:

    The priority for the save_post hook. Should be after all other plugins have finished modifying the post. Default is 640.

    The save_post priority db option is also a numeric value. I see 640 by default on my test site, which matches your help text (see above) that is clearly posted directly under that db option.

    Plugin Author edward_plainview

    (@edward_plainview)

    Have disabled this notice. It’s part of some legacy code that will be removed in the next version or so.

    The blogs to hide error was some weird settings-overwriting-bug. To fix it, just check and save your Broadcast settings again. That error should not appear again.

    I’m still at a loss to explain why it even happened.

    Yep your plugin works great on my test site. Very nice plugin! I always forget to do a WP_DEBUG on finalized plugin versions before I release them and usually end up doing that nick nack cleanup stuff on the next go round. ?? I only have about 20 minutes experience checking out your plugin, but for whatever reason my gut is telling me the issue has to do with the PHP Server version someone is using or maybe a lack of modules, etc. – ie something different in a particular users environment.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘broadcast_blogs_to_hide is not defined’ is closed to new replies.