Title: problem with current() expects parameter 1 to be array
Last modified: August 21, 2016

---

# problem with current() expects parameter 1 to be array

 *  Resolved [wpraj](https://wordpress.org/support/users/wpraj/)
 * (@wpraj)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/)
 * Hi there,
 * First I must say this is an amazing event manager plugin I have ever found.I 
   am really loving it.
 * Just a small glitch.Not sure why I am getting this message.
 * Warning: current() expects parameter 1 to be array, null given
 * I am copying the code from events-list.php and put it in a theme template file.
 * Can you please suggest me the right way please.
 * Many thanks,
 * [http://wordpress.org/plugins/events-manager/](http://wordpress.org/plugins/events-manager/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538498)
 * can I know the template path in your theme?
 * eg. wp-content > themes > Your Theme > plugins > events-manager > templates >
   events-list.php
 *  Thread Starter [wpraj](https://wordpress.org/support/users/wpraj/)
 * (@wpraj)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538501)
 * Thanks.I am copying the code from events-list.php and pasting it in one of my
   theme’s template file.
 * The file location is wp-content > themes > Your Theme > full-width.php
 * I would like to show the events list in one of my theme’s template file.
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538534)
 * If you’re pasting the code it needs to be in the location that Angelo mentioned.
 * What do you want to do – just show the events list in your full-width template,
   or something more advanced?
 *  Thread Starter [wpraj](https://wordpress.org/support/users/wpraj/)
 * (@wpraj)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538535)
 * I just want to show the listings in my full-width.php template which is currently
   under /mytheme/ folder.
 *  Thread Starter [wpraj](https://wordpress.org/support/users/wpraj/)
 * (@wpraj)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538547)
 * Sorry it’s fixed now.Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘problem with current() expects parameter 1 to be array’ is closed to 
new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [wpraj](https://wordpress.org/support/users/wpraj/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/problem-with-current-expects-parameter-1-to-be-array/#post-4538547)
 * Status: resolved