WordPress.org

Ready to get started?Download WordPress

Forums

WP Carousel not work for me, Why? (11 posts)

  1. Yakir Sitbon
    Member
    Posted 3 years ago #

    Hey all..
    I just want to use with WP Carousel, But its not work. I tested it on 3.1.2 and 3.1.3 WordPress version, And not work.

    On the Admin Panel ALL work perfect, i can add posts, create new Carousels, change themes.. BUT on the site its not work.

    I use with this function:
    <?php wp_carousel(0); ?>

    And its make the all Carousel images and tags, but the JavaScript its not running.

    I check it on the Page Source Code and no see any JavaScript file by WP Carousel, Just CSS files.

    Thanks for support,
    Yakir.

  2. red.is.back
    Member
    Posted 2 years ago #

    Same problem! KingYes did you get a solution? Or i just have to change plugin?

    Thank You

    Simona

  3. Yakir Sitbon
    Member
    Posted 2 years ago #

    Nope.
    I write a new plugin for myself. :\

  4. sumolari
    Member
    Posted 2 years ago #

    I don't know why I didn't replied to this topic 7 months ago, but if WP Carousel Javascript code is not loading, it is because your theme does not have this code at the end:

    <?php wp_footer(); ?>

    WordPress features an incredible hook API that allows developers to put their code in almost any part of the site without modifying anything, but to do this, there must be called special functions like wp_head() or wp_footer().

    I don't understand why, but there are some theme developers that remove wp_footer(). This not only breaks WP Carousel, but any other plugin that uses the hook wp_footer to put important code of the plugin.

    The easiest way to fix the problem is editing footer.php file of your theme and add near </body> <?php wp_footer(); ?>.

    With that WP Carousel's code will be loaded.

    Take into account that WP Carousel is not adding directly the code to the footer. It uses WordPress functions to enqueue Javascript code and tells WP Carousel that the code can be loaded in the footer. As I have said before, without this line any other plugin that tells WordPress that its code can be placed in footer will be broken.

  5. red.is.back
    Member
    Posted 2 years ago #

    Hi, thanks for the reply, but this is not my problem, i have wp_head() and wp_footer() in my theme, but it doesn't work. here is my website i put the widget (even the code) under the big slideshow but nothing, can you help me? I searched a lot of plugin but everybody told me to use wp-carousel so i'm trying so hard to make it work! :D

  6. sumolari
    Member
    Posted 2 years ago #

    Have you put <?php wp_carousel(ID); ?> under the big carousel? I've checked your site and the JS code is loaded, but WP Carousel is not adding any HTML code to the page.

    If you've added the code and still not working, it might be a PHP error behind. If your server is configured to not show PHP errors, you must add the following code in wp-config.php:

    error_reporting(E_ALL);
    ini_set('display_errors', '1');

    This will reveal any PHP error and give very useful information for fixing the error (if it is a PHP error).

  7. red.is.back
    Member
    Posted 2 years ago #

    Ok thank you very much! It was a permission problem with our hosting!
    The error generated was
    [Fri Jan 06 17:02:15 2012] [error] [client 151.76.202.192] Premature end of script headers: update_db.php, referer: http://www.zonzoweb.com/sandbox/illcox/wp-admin/admin.php?page=edit-carousel-0
    [Fri Jan 06 17:02:15 2012] [error] [client 151.76.202.192] suexec policy violation: see suexec log for more details, referer: http://www.zonzoweb.com/sandbox/illcox/wp-admin/admin.php?page=edit-carousel-0
    and we solved it reparing web hosting permissions!

    Thanks, greetings from Italy!

  8. sumolari
    Member
    Posted 2 years ago #

    Thanks for using WP Carousel!

  9. WP Carousel is just displaying a black box.

    It's a very pretty box, but still, it would be prettier with my photos in it.

    Here is the Debug error I get:

    Use of undefined constant carousel_init - assumed 'carousel_init' in /wp-content/plugins/carousel/carousel.php on line 658

  10. sumolari
    Member
    Posted 2 years ago #

    Which version of WP Carousel are you using?

    Did you modify the name of the files? WP Carousel does not contain any file named carousel.php by default.

  11. Sorry! I was looking at a different Carousel, by Simon Baier. I have just installed yours and it looks good so far. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic