Home>Support>Undefined posts error on Post Carousel in SiteOrigin Widgets Bundle

Undefined posts error on Post Carousel in SiteOrigin Widgets Bundle

Hi,

I’m using the Post Carousel widget in the widgets bundle. It works fine on one of our other websites, but on one website, clicking the right arrow to scroll it it starts trying to load more posts but the loading spinner continues endlessly. On further inspection I realized I was getting a http 500 back from the server, and on the website logs I get this:

[Mon Jul 03 09:43:45 2017] [warn] [client 85.199.233.162] mod_fcgid: stderr: PHP Notice: Undefined variable: posts in [WEBSITE PATH]/wp-content/plugins/so-widgets-bundle/widgets/post-carousel/tpl/carousel-post-loop.php on line 6, referer: https://whypay.net/
[Mon Jul 03 09:43:45 2017] [warn] [client 85.199.233.162] mod_fcgid: stderr: PHP Fatal error: Call to a member function have_posts() on a non-object in [WEBSITE PATH]/wp-content/plugins/so-widgets-bundle/widgets/post-carousel/tpl/carousel-post-loop.php on line 6, referer: https://whypay.net/

As you can see from the logs, the website in question is https://whypay.net, and the carousel slider is about halfway down the page under the title “From the Blog”.

I’m not sure what’s going on, WordPress and all the plugins are updated.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Danny,

    Okay so I’ve had a look around and this issue is caused due to this file not being included in the output which is as a result of jquery.touchSwipe.min.js not being included in the output.

    Are you using any plugins that allow you to filter and/or remove assets? If so, can you please try allowing both of the above files.

    If you’re not too sure, Can you try disabling all non-SiteOrigin plugins and see if this fixes the issue? You’ll need to clear all your caches after disabling your plugins.

    If it does fix the issue, then try re-enabling your plugins one by one until the issue comes back. This procedure will help diagnose which plugin is causing the issue.

    Once we know that, we’ll be able to look at what might be causing the conflict and either solve the problem or help you find an alternative plugin.

    If you aren’t using a SiteOrigin theme, then you can also try temporarily switching to one of the default WordPress themes to see if the issue is theme related.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More