Results 1 to 3 of 3

Thread: Error: DIV with ID "fadeshow4" not found on page.

  1. #1
    Join Date
    Mar 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error: DIV with ID "fadeshow4" not found on page.

    1. Title: Ultimate Fade-in slideshow (v2.6.1)
    2. DD URL: http://dynamicdrive.com/dynamicindex...nslideshow.htm

    I have recently installed this slideshow on my homepage and it seems to work fine. However I also wish to hide it from every other page of the site. Here is the code I am using to hide the slideshow elsewhere.

    <?php if ($this_is_home_page) { ?>
    <div id="fadeshow4"></div>
    <?php } ?>

    When I go to any page other than the homepage I get this error: Error: DIV with ID "fadeshow4" not found on page.

    ======================================================================================

    I believe this is the javascript code that needs to be changed, commented out or removed, but I am not sure how to do that so the script quits checking for errors.

    Here is that code. Your help with this is greatly appreciated.

    ]
    if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    return
    }

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That code is for situations where the script IS NOT put on every page regardless of whether or not it's used on them. If you cannot correct that, you can comment out the alert (add highlighted using a text only editor like NotePad):

    Code:
    		if (setting.$wrapperdiv.length==0){ //if no wrapper DIV found
    			// alert("Error: DIV with ID \""+setting.wrapperid+"\" not found on page.")
    			return
    		}
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    The best way to avoid that error message is remove the instantiation of the slideshow in the <head>...</head> section of your page. This will be very easy to implement in PHP.

Similar Threads

  1. Error: DIV with ID "mybgcarousel" not found on page.
    By wally247 in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 10-02-2013, 05:20 AM
  2. Ultimate Fade-in ERROR: DIV with ID "fadeshow1" not found on page."
    By familyfanclub in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 09-16-2010, 11:20 AM
  3. "No content exists at page 1! Loading 1st page instead." ERROR
    By harshalizee in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-08-2010, 09:23 AM
  4. Resolved <a href "#"> is linking to an error page.
    By maximumovertime in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 02-13-2009, 07:00 PM
  5. login script "user data not found"
    By jimo in forum PHP
    Replies: 10
    Last Post: 01-13-2007, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •