e2interactive forums » Report a Bug

Search:

Undefined offset

(7 posts)

  1. dee
    Member

    Notice: Undefined offset: 0 in D:\clients\4pmtest.com\www\getfolders.php on line 131

    Notice: Undefined offset: 1 in D:\clients\4pmtest.com\www\getfolders

    Notice: Undefined offset: 2 in D:\clients\4pmtest.com\www\getfolders

    Notice: Undefined offset: 3 in D:\clients\4pmtest.com\www\getfolders

    Anybody know why im getting this when i try and open the slideshow?

    Posted 7 months ago #
  2. I've never seen this Notice message before, do you have a link to the page so I could see it? What version of php are you running?

    Posted 7 months ago #
  3. dkell
    Member

    Hi,
    I'm getting this error too; has there been any progress with it?

    The message being output in the index.php file is:

    '<script type="text/JavaScript">
    26 var tempgallery = new Array()
    27
    28
    29 <b>Notice</b>: Undefined offset: 0 in <b> C:\Inetpub\wwwroot\Ken\gallery\getfolders.php </b> on line <b>60</b>
    30 var currentwidth=;
    31
    32 <b>Notice</b>: Undefined offset: 1 in <b> C:\Inetpub\wwwroot\Ken\gallery\getfolders.php</b> on line <b>61</b>
    33 var currentheight=;'

    I'm using PHP version 5.2.3. I've uploaded two images & 2 thumbnails, but they're not appearing in the gallery. I only have a local version at the moment.

    Any help would be appreciated :)

    Posted 6 months ago #
  4. It's really hard for me to help with an error when I can't see it and test it, is there anyway you can put it on a non-local site?

    Posted 6 months ago #
  5. dkell
    Member

    Hey,

    I've uploaded it at: http://www.davidkelly.ie/testbox/photo/

    The Undefined Offset Notice isn't showing up in the HTML source (I'd say because php errors are disabled by the host), but the gallery still isn't working.

    Any help would be appreciated :)

    Thanks.

    Posted 6 months ago #
  6. As a simple test, open up the getfolder.php file and find line 60 and 61 and try getting rid of these lines of code:

    echo "var currentwidth=".$photos[0].";\n";
    echo "var currentheight=".$photos[1].";";

    Then let me know what happens

    Posted 6 months ago #
  7. dkell
    Member

    When I comment out those lines I'm getting an error: currentwidth not defined (line 29)

    There's also a second error:

    tempgallery[0] has no properties (e2photo.js line 31) - don't know if this is related to the first one...

    Posted 6 months ago #

RSS feed for this topic

Reply

You must log in to post.