• Resolved miroruse

    (@miroruse)


    Hi, the plugin works like a charm, but just one thing. When saving the settings for the dynamic widget I get that:

    Warning: Invalid argument supplied for foreach() in /…/public_html/wp-content/plugins/dynamic-widgets/classes/dynwid_class.php on line 366

    Warning: Cannot modify header information – headers already sent by (output started at /home/emsbg1ce/public_html/wp-content/plugins/dynamic-widgets/classes/dynwid_class.php:366) in /…/public_html/wp-includes/pluggable.php on line 1219

    The setting is saved and it works, but I was wondering how to resolve that error.

    What I am doing is making attribute widgets in woocommerce appear only in the last category page, but skip the ancestors.

    Thanks.

    • This topic was modified 6 years, 3 months ago by miroruse.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor Qurl

    (@qurl)

    It seems something is missing or DW is receiving wrong data in one of the sections. As you mention all is saved makes it even more weird.

    Most of the time when an error occurs in that segment it has to do with a wrong config of a so called Custom Post Type. I think that’s the problem here also. It might be a WooCommerce plugin.

    Thread Starter miroruse

    (@miroruse)

    Well, thanks. I am using a few to enhance woo. Will deactivate them and see whether this error comes back or not. Will update.

    Thread Starter miroruse

    (@miroruse)

    I switched off all plugins, working with woo but the problem persists. It disappears though if other than shop sidebar is used. I am simply guessing that the conflict is directly with woo, somehow. I’m using the latest verison of woo and wp.

    Plugin Contributor Qurl

    (@qurl)

    Hmm… I’ve been playing around with widgets and WooCommerce enabled, but can’t reproduce the warning message you get. It might be a setting you make that makes things go awry.

    Thread Starter miroruse

    (@miroruse)

    Yes, it’s a mistery. I have tested the plugin on other shops and on some it works fine, while on others appears the same mistake. I think the theme and the plugins activated are irrelevant to the problem. But I can not find proof what exactly is the problem. I thought it might be the php version, but both on 5.6 and 7.1 the error persists. I tested the dynwid_class.php for errors, but it comes just this – PHP Syntax Check: Parse error: syntax error, unexpected ‘browser_module’ (T_STRING), expecting ‘,’ or ‘;’ in your code on line 1565

    Sill looking …

    Plugin Contributor Qurl

    (@qurl)

    Sorry for late reply. In which file do you see that parse error?

    Thread Starter miroruse

    (@miroruse)

    NP. I tested the dynwid_class.php for errors.

    Plugin Contributor Qurl

    (@qurl)

    I think you’re not using the latest version of the plugin. dynwid_class.php has currently a total of 1078 lines.

    • This reply was modified 6 years, 3 months ago by Qurl.
    Thread Starter miroruse

    (@miroruse)

    My version is 1.5.13.

    Plugin Contributor Qurl

    (@qurl)

    Yes, that’s the latest version. Seems some files have mixed up or so. I would suggest to download the plugin and replace it completely with the one you have now.

    I am experiencing the same errors too when i save the settings

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cannot modify header information – headers already sent’ is closed to new replies.