Results 1 to 3 of 3

Thread: I am getting an error I have no idea about

  1. #1

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    I am getting an error I have no idea about

    Ok, I have a script and I am getting the error "Fatal error: Call to a member function on a non-object in /home/kevinmc7882/www/photo_album/test.php on line 279". I have no idea wbout this becuase its on the line "$d->close();" and does not show any of the information below it. If I comment the line out it shows all the information but there is a delay and a big gap at this spot.

    I have posted the file, any help would be great and the sooner the better, I am racking my brain to no avail. The file is an FRM but rename to PHP, I cant attach PHP files to the post for somereason.
    Attached Files Attached Files
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

  2. #2
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: I am getting an error I have no idea about

    PHP Code:
    }else
        
        
    $filename $subcatagory "/Explain.txt";
        
    $handle fopen($filename"r");
        
    $contents fread($handlefilesize($filename));
        
    fclose($handle);
        
        echo 
    "$contents</td></tr></table>";    

    Sometimes you get an error message for something that isn't even causing the problem. I believe in this case your missing the opening { for the else statement.
    Don't Rate my posts.

  3. #3

    Thread Starter
    Fanatic Member neicedover1982's Avatar
    Join Date
    Jun 2005
    Posts
    566

    Re: I am getting an error I have no idea about

    Ok, I fixed that issue and made some changes to my program and all started to work fine. I am getting this exact error "Fatal error: Call to a member function on a non-object in /home/kevinmc7882/www/photo_album/test.php on line 413".

    Now heres the thing. I never see it and the whole page shows unless I have the image viewing in the same window and not a popup. So i think there is an issue in the code where it starts like,
    "if ($viewtype == "Window") {
    $imagename = $subcatagory . "/" . $folder . "/" . $page . "/" . $picturename;
    $exif = exif_read_data($imagename, 0, true);
    $filename = $exif['FILE']['FileName'];"

    I have posted the new code here, like before, rename the frm to php since php files cant be uploaded.
    Attached Files Attached Files
    Kevin | New England Iced Over | http://www.kevincawleyjr.com

Posting Permissions

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



Click Here to Expand Forum to Full Width