WordPress.org

Ready to get started?Download WordPress

Forums

WP Symposium Toolbar
[resolved] Warning: array_intersect() 0.0.14 (7 posts)

  1. Doremdou
    Member
    Posted 10 months ago #

    Hello! :)
    Nice plugin, exactly what I need with WP Symposium!
    thank you a lot for this :)

    I just have one problem, it was working fine with 0.0.11 but I just upgraded to 0.0.14 and now I have this error:

    Warning: array_intersect() [function.array-intersect]: Argument #2 is not an array in .../plugins/wp-symposium-toolbar/wp-symposium-toolbar_functions.php on line 354

    thank you for your help!
    and keep up the good work :)

    Dorem

    http://wordpress.org/extend/plugins/wp-symposium-toolbar/

  2. AlphaGolf_fr
    Member
    Plugin Author

    Posted 10 months ago #

    Sorry to read about the PHP error.

    Could you visit the plugin options page, and at the bottom in the import/export feature, try to find in the textarea the line starting with 'wpst_toolbar_wp_toolbar' and copy/paste it here. If you can't find it, let me know as well.

    Second, try saving options and let me know if the error vanishes, and if the content of that line has changed...?

    Thanks for reporting this, and thanks for your nice words, as well :-)

  3. Central Geek
    Member
    Posted 10 months ago #

    I just updated to 0.0.14 and I'm not getting that warning at all.
    Is it possible this warning is showing up as a result of another plugin?
    I updated from .12 though.
    I have also updated on both multisite (with WPS) and single site without WPS. The multisite is on a local machine.

  4. AlphaGolf_fr
    Member
    Plugin Author

    Posted 10 months ago #

    The release 0.0.15 just uploaded hardens the plugin to avoid such warnings in case a stored option isn't an array... And the plugin does an extensive use of arrays to store roles. I was a little concerned with the overhead it might represent in term of page load times, but tests ran by my preferred tester (here above, many thanks to him) didn't show a significant increase in load times, and users don't like PHP warnings (I don't either).

    In general if you find that the plugin has an odd behaviour, visiting the options page will inform of any discrepency in the saved options, and saving those options should sort things out.

    AG

  5. Doremdou
    Member
    Posted 10 months ago #

    Hello,

    thanks for your answers :)
    I uninstalled it and installed it again and the error disappeared.
    Seems that the error was only showing up when upgrading from an old version.

    thanks!

  6. Central Geek
    Member
    Posted 10 months ago #

    This issue seems to have been resolved.
    I know it hasn't shown up for me at all..

  7. AlphaGolf_fr
    Member
    Plugin Author

    Posted 10 months ago #

    Yup, this shouldn't arise anymore from 0.0.15 onwards. Hence, closing the ticket. Anybody with a similar issue, please upgrade ASAP, visit the options page, check your settings, and save.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.