Title: Warning: array_slice() expects parameter 1 to be array
Last modified: August 22, 2016

---

# Warning: array_slice() expects parameter 1 to be array

 *  Resolved [fahd.daghrir](https://wordpress.org/support/users/fahddaghrir/)
 * (@fahddaghrir)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/)
 * Hello,
 * I have a recent issue with the plugin.
    I got the following warning :
 * Warning: array_slice() expects parameter 1 to be array, null given in/home/rando/
   domains/randotunisie.tn/public_html/wp-content/plugins/youtube-channel/youtube-
   channel.php on line625
 * here is my Debug information:
 * server: Apache/2
    php: 5.2.17 wp: 3.9.2 ytc: 2.2.2 url: [http://www.randotunisie.tn](http://www.randotunisie.tn)
   title: VIDEO ATR channel: urkekg vidqty: 1 playlist: PLEC850BE962234400 use_res:
   null cache_time: null only_pl: null getrnd: null maxrnd: 25 goto_txt: null showgoto:
   null popup_goto: null showtitle: null showvidesc: null descappend: … videsclen:
   null width: 220 to_show: thumbnail autoplay: null autoplay_mute: null controls:
   null fixnoitem: null ratio: 3 fixyt: null hideinfo: null hideanno: null themelight:
   null debugon: on userchan: null enhprivacy: null
 * of course I have nothing displayed on my website.
 * Any recommended solution please ?
 * [https://wordpress.org/plugins/youtube-channel/](https://wordpress.org/plugins/youtube-channel/)

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

 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5233954)
 * Hi Fahd,
 * Please check your email. Thank you.
 *  [Hillz](https://wordpress.org/support/users/hillz/)
 * (@hillz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5233968)
 * Hi Urkekg,
 * I’m having the exact same problem with the plugin on my site, any help would 
   be appreciated, thank you.
 * server: Apache
    php: 5.2.17 wp: 3.8.4 ytc: 2.2.2 url: [http://reloadtv.mx](http://reloadtv.mx)
   title: Videos channel: reloadvg vidqty: 2 playlist: null use_res: null cache_time:
   null only_pl: null getrnd: null maxrnd: 25 goto_txt: null showgoto: on popup_goto:
   null showtitle: on showvidesc: null descappend: … videsclen: null width: 220 
   to_show: thumbnail autoplay: null autoplay_mute: null controls: null fixnoitem:
   null ratio: 3 fixyt: null hideinfo: null hideanno: null themelight: null debugon:
   on userchan: null enhprivacy: null
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5233975)
 * Hello Hillz,
 * As I can see, looks that you have solved your issue. Is that correct? Did you
   enabled “Fix No Item” option?
 *  [Hillz](https://wordpress.org/support/users/hillz/)
 * (@hillz)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5233979)
 * Hello Urkekg,
 * No, it just fixed itself. So I’m guessing it might have been something at google’s
   end.
    Thanx for answering.
 *  Plugin Author [Aleksandar Urošević](https://wordpress.org/support/users/urkekg/)
 * (@urkekg)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5233980)
 * You’re correct. I found that feed with parameter `orderby=published` returned
   JSON w/o entries (only JSON header inside), and that mess with YTC parser.
 * I also saw that problem on Fahd’s website is solved, so closing this topic as
   resolved.
 *  Thread Starter [fahd.daghrir](https://wordpress.org/support/users/fahddaghrir/)
 * (@fahddaghrir)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5234007)
 * Thank you !
    Issue resolved. we can close this topic

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

The topic ‘Warning: array_slice() expects parameter 1 to be array’ is closed to 
new replies.

 * ![](https://ps.w.org/youtube-channel/assets/icon.svg?rev=2845692)
 * [My YouTube Channel](https://wordpress.org/plugins/youtube-channel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-channel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-channel/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-channel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-channel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-channel/reviews/)

## Tags

 * [items](https://wordpress.org/support/topic-tag/items/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 6 replies
 * 3 participants
 * Last reply from: [fahd.daghrir](https://wordpress.org/support/users/fahddaghrir/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/warning-array_slice-expects-parameter-1-to-be-array/#post-5234007)
 * Status: resolved