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

---

# Warning: array_splice() expects parameter 1 to be array,

 *  Resolved [Karen KISS WP Websites](https://wordpress.org/support/users/mtgamberwesbitedesign/)
 * (@mtgamberwesbitedesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/)
 * Hi Meitar,
 * Not sure whether I’m using the correct coding since the googlesheet I’m using
   is the new version.
 * WP 3.9.1
    Plugin Version 0.4.6
 * I’m testing your plogin to see if it’ll load the spreadsheet and be searchable.
 * [gdoc key=”186J1mGrwxbr3v4Br1DLsU9Fd8S8TR_yAQkE2NEvCMvU”]
 * I receive the following error:
 * Warning: array_splice() expects parameter 1 to be array, null given in public_html/
   mountgambierwebsitedesign.com.au/dummy/wp-content/plugins/inline-google-spreadsheet-
   viewer/inline-gdocs-viewer.php on line 99
 * Warning: Invalid argument supplied for foreach() in /public_html/mountgambierwebsitedesign.
   com.au/dummy/wp-content/plugins/inline-google-spreadsheet-viewer/inline-gdocs-
   viewer.php on line 119
 * Warning: Invalid argument supplied for foreach() in /public_html/mountgambierwebsitedesign.
   com.au/dummy/wp-content/plugins/inline-google-spreadsheet-viewer/inline-gdocs-
   viewer.php on line 132
 * Warning: array_splice() expects parameter 1 to be array, null given in public_html/
   mountgambierwebsitedesign.com.au/dummy/wp-content/plugins/inline-google-spreadsheet-
   viewer/inline-gdocs-viewer.php on line 99
 * Warning: Invalid argument supplied for foreach() in /public_html/mountgambierwebsitedesign.
   com.au/dummy/wp-content/plugins/inline-google-spreadsheet-viewer/inline-gdocs-
   viewer.php on line 119
 * Warning: Invalid argument supplied for foreach() in /public_html/mountgambierwebsitedesign.
   com.au/dummy/wp-content/plugins/inline-google-spreadsheet-viewer/inline-gdocs-
   viewer.php on line 132
 * Any idea what I can do to fix this?
 * I saw that someone else had this with new version of google docs but that was
   using an older version of your plugin.
 * Thanks for your help,
    Karen
 * [https://wordpress.org/plugins/inline-google-spreadsheet-viewer/](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)

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

 *  Plugin Author [Meitar](https://wordpress.org/support/users/meitar/)
 * (@meitar)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/#post-5014447)
 * Nope. For new Google Spreadsheets, use the full URL. Like it says in the plugin
   description:
 * > After setting the appropriate Sharing setting, copy the URL you use to view
   > the Spreadsheet from your browser’s address bar into the shortcode. For example,
   > to display the spreadsheet at [https://docs.google.com/spreadsheets/d/ABCDEFG/edit](https://docs.google.com/spreadsheets/d/ABCDEFG/edit),
   > use the following shortcode in your WordPress post or page:
   > > [gdoc key=”[https://docs.google.com/spreadsheets/d/ABCDEFG/edit”%5D](https://docs.google.com/spreadsheets/d/ABCDEFG/edit”%5D)
 *  Thread Starter [Karen KISS WP Websites](https://wordpress.org/support/users/mtgamberwesbitedesign/)
 * (@mtgamberwesbitedesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/#post-5014453)
 * Thanks I knew I was doing something wrong.
 *  Thread Starter [Karen KISS WP Websites](https://wordpress.org/support/users/mtgamberwesbitedesign/)
 * (@mtgamberwesbitedesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/#post-5014464)
 * Okay I have the spreadsheet displaying now.
 * Are the tables are searchable using the search box?
    I’m not finding anything
   on the spreadsheet.
 * I’m assuming that the search may not work since it’s just displaying the spreadsheet
   rather than ‘importing it’.
 *  [johnaq](https://wordpress.org/support/users/johnaq/)
 * (@johnaq)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/#post-5014794)
 * I have a similar problem.
 * I can view the default sheet of my new Google spreadsheet using the full address,
   but cannot view another sheet either by using the full address or gid option.
 * thanks for any help

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/inline-google-spreadsheet-viewer.
   svg)
 * [Inline Google Spreadsheet Viewer](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/inline-google-spreadsheet-viewer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/)
 * [Active Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/inline-google-spreadsheet-viewer/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [johnaq](https://wordpress.org/support/users/johnaq/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/warning-array_splice-expects-parameter-1-to-be-array/#post-5014794)
 * Status: resolved