Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Chouby

    (@chouby)

    Hello!

    Could you precise the circumstances? When do you get this warning?

    Thread Starter guillermovargasquisoboni

    (@guillermovargasquisoboni)

    Hello Chouby,

    I really appreciate your reactivity, as usual.

    I sought the warning for the first time when I was developing a theme for a blog that is not suppose to be multilingual and where I’m not using the plugin (The Lupita Project).

    I suspect the problem could be related with another plugin that is central on this particular project, the Event Organiser plugin. Actually, the warning is only appearing when I’m editing an event (something like a post) in the dashboard, and exclusively in the view for a quick edit. The message of warning is repeated many times. I take a picture of the screen that you can temporarily see here.

    Plugin Author Chouby

    (@chouby)

    I did not succeed to to reproduce the warning, even with plugin Event organizer active, but nevertheless, could you try to edit the line 81 of polylang/admin/admin-filters-columns.php and replace:

    return reset($columns);

    by

    return empty($columns) ? '' : reset($columns);

    Thread Starter guillermovargasquisoboni

    (@guillermovargasquisoboni)

    Yes Choubi, this changement works perfectly !

    So, I have edited the file directly on the plugin’s folder, not in a child. Should I do it?

    Plugin Author Chouby

    (@chouby)

    You can edit directly the file. That’s not an issue as Polylang 1.5.1 will include this fix.

    Thread Starter guillermovargasquisoboni

    (@guillermovargasquisoboni)

    Cool, thank you !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warning: reset() expects parameter 1 to be array’ is closed to new replies.