• Resolved JohnNadeau

    (@johnnadeau)


    Hi Jeremy,

    We have two sites, both running version 1.3.3 successfully since that version’s release (LakePath.com and LeLacAppelle.com)

    We updated to version 1.4.0 on both sites today (Sunday 11/20/16) and it resulted in the error below.

    I tried clearing our Cache (SiteGround SuperCacher at both web sites) & WebBrowser Cache to no avail.

    I then rolled back LakePath to ver 1.3.3 (didn’t even flush the SiteGround cache), and all was well again at LakePath. For consistency, I then rolled back LeLacAppelle to ver 1.3.3.

    Here’s a screenshot of how it works on LakePath with ver 1.3.3: https://snag.gy/1l0zMc.jpg

    ISSUE: On LakePath, in place of the LEFT COLUMN, where the Posts/Images are brought in from LeLacAppelle, here’s the error (repeated for each/every imported post):
    Warning: array_slice() expects parameter 1 to be array, object given in /home/nadeauap/public_html/lakepath/wp-content/plugins/rest-api-post-embeds/rest-api-post-embeds.php on line 326

    Please let me know if you need me to update the plugin to 1.4.0 and/or make any other changes to assist in troubleshooting this issue. Otherwise, I’ll remain at ver 1.3.3 until you advise.

    Thanks in advance for all of your help and insight !

    John

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I’m not really familiar with SiteGround’s cache plugin, but a few Google searches seem to mention a few options fields allow you to exclude URLs from being cached.

    It might be worth trying to stop caching of the REST API URL you’re pulling posts from. If you’re pulling random posts from LeLacAppelle.com, the changes will have to be made in your cache settings on LeLacAppelle.com, and the URL to exclude will look like this:

    https://lelacappelle.com/wp-json/wp/v2/posts/

    If the plugin requires an exact URL, you’ll need to enter the query paramters as well, like so:

    https://lelacappelle.com/wp-json/wp/v2/posts/?orderby=rand

    Let me know how it goes.

    @johnnadeau – My name is Ivan Atanasov, part of the Senior Support Team at SiteGround. I will be contacting you in ticket 2096523 regarding High CPU Usage.

    Thread Starter JohnNadeau

    (@johnnadeau)

    @ivanatanasov Thank you. I’ll check in with you at the Support Ticket.

    @jeherve Thank you. THAT resolved it!

    I was able to add “/wp-json/wp/v2/posts/” to the “Exclude URLs From Dynamic Caching” in the SG SuperCacher Plugin Dashboard at LeLac’s site.

    I tried it with the full https://domain, but it didn’t work until I truncated it to the “path” only.

    See screenshot here: https://snag.gy/wKMo6k.jpg

    Thanks again for all of your help and insight!!!!!

    John

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Warning: array_slice Version 1.4.0’ is closed to new replies.