WordPress.org

Forums

Call to undefined function image_slider_show() (14 posts)

  1. Roboka
    Member
    Posted 1 year ago #

    Hi,
    I have a slight problem. the index page shows the following error
    Fatal error: Call to undefined function image_slider_show() in /home/www/100/wp-content/themes/sandbox/index.php on line 3

    someone please help. someone else updated the site , so i have no back up but have the above error.

    here is the website link http://cio100.cio.co.ke/ . Kindly assist

  2. Dave Naylor
    Member
    Posted 1 year ago #

    Looks like a slider plugin was removed or deactivated but there's still a reference to it in your theme's index.php. Open the file in a text editor and remove the reference, or re-install/reactivate the slider.

  3. Roboka
    Member
    Posted 1 year ago #

    True, the plugin was not activated, but when i activate, the error is still there
    below is the index.php file contents

    <?php get_header() ?>
    <div id="sliders">
    <?php if(function_exists(image_slider_show())){image_slider_show();}?>
    </div>
    <div id="container">

    <div id="content">
    <div class="home-page-column">
    <?php if ( function_exists('dynamic_sidebar')&& dynamic_sidebar('Home Page First Column') ) : endif; ?>
    </div>
    <div class="home-page-column">
    <?php if ( function_exists('dynamic_sidebar')&& dynamic_sidebar('Home Page Second Column') ) : endif; ?>
    </div>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar() ?>
    <?php get_footer() ?>

    when i remove the reference, the site is back up but the slider is not there

  4. Dave Naylor
    Member
    Posted 1 year ago #

    Did the function name change? Did you install a different slider?

  5. Roboka
    Member
    Posted 1 year ago #

    Havent installed a different slider, your perception makes sense, below is the link to
    image-slider/slider.php content. dont seem to find the image_slider_show function

    http://pastebin.com/5A5GruP5

  6. Roboka
    Member
    Posted 1 year ago #

    how do i identify the changed function name?

  7. Dave Naylor
    Member
    Posted 1 year ago #

    You should have posted all the above at pastebin.com and provided the link.

    If you look at what you posted, you'll find this:

    <div class="wholeform">
    <h4> call this function in template file to show slideshow as_tejus_show_slideshow();</h4>
    
    <h4>OR use this shortcode [as_tejus_slides] in posts or pages.</h4>
    </div>
  8. Roboka
    Member
    Posted 1 year ago #

    ok. Pasted it on pastebin.com and provided the link.
    So what about the <div class="wholeform"> ? i dont follow

  9. Dave Naylor
    Member
    Posted 1 year ago #

    I quoted what you'd posted back at you. I'll strip it even further:

    call this function in template file to show slideshow as_tejus_show_slideshow(); OR use this shortcode [as_tejus_slides] in posts or pages.

  10. Roboka
    Member
    Posted 1 year ago #

    So i have done as you instructed on the function, the site is back on, but the slider images are not showing.

    <div id="sliders">
    <?php if(function_exists(as_tejus_show_slideshow())){as_tejus_show_slideshow();}?>
    </div>

    http://cio100.cio.co.ke/

  11. Dave Naylor
    Member
    Posted 1 year ago #

    Is the slider a custom plugin? It looks like it's a customised Anything Slider install. Where did you download it from?

  12. Roboka
    Member
    Posted 1 year ago #

    actually i dont know who did the site, was refered to help wih the situation after the error appeared. so as of now, i dont know where the slider was downloaded. cant seem to find it when i search for plugins in wordpress dashboard or the website that it refers to as well. seems the support for the plugin stopped.

  13. Dave Naylor
    Member
    Posted 1 year ago #

    I think your best course of action would be to grab a new slider plugin. This one's nice:

    https://wordpress.org/plugins/soliloquy-lite/

  14. Roboka
    Member
    Posted 1 year ago #

    Thankyou very much for your help Ranger. I will surely do so
    Shukran (swahili word for thankyou)

Topic Closed

This topic has been closed to new replies.

About this Topic