Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 12 of 12

This is a discussion on Script giving error in the Shared & Semi-Dedicated forum
Does anyone know what this error means? Warning: main(): stream does not support seeking in /home/goznet/public_html/cory/gallery/html_wrap/gallery.header on line 28 I have made no changes to ...

  1. #1
    JPC Member
    Join Date
    Mar 2002
    Posts
    3

    Script giving error

    Does anyone know what this error means?

    Warning: main(): stream does not support seeking in /home/goznet/public_html/cory/gallery/html_wrap/gallery.header on line 28

    I have made no changes to my site in weeks and I am not sure when this error started but I have no been able to figure out what is causing it.. any help will be appreciated!

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Sounds like an (absolute) path is off. Hard to tell without further info...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    Jan
    Jan is offline
    JPC Member
    Join Date
    Oct 2002
    Posts
    48
    I'm getting the same error. It's been working fine for months and then suddenly, without me making any changes, I get this error.

  4. #4
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    JagPC probably did some maintenance on 'your' server and upgraded the software. When this happens, sometimes older code, or poorly written code, quits working. You're just gonna have to do a little investigating, find the offending code and correct the problem[s].

    A perfect example of this is:

    http://forums.jaguarpc.com/showthrea...h t=setlocale
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  5. #5
    JPC Member
    Join Date
    Jul 2003
    Location
    santa clara, ca
    Posts
    1

    i thought it wasn't my fault...

    i had this same problem and i was about to write up a test page to show how easy it was to reproduce, since i thought my code that was giving me the error was simple enough. then i couldn't reproduce it... i looked around a little further and saw that what was causing the error for me was using an include() from an http location... clearly wrong, i know, but my excuse is that the code was messy to begin with. ;-) i had this problem in two different instances where there were variables in an include() statement.

    include($home . "foo"); produced an error
    include("../foo"); did not.

    so, you might try taking a look at your own code, because as one of you mentioned, it did work before... for some strange reason. as i said, in my case it's not var's in includes, but simply invalid locations assigned to vars.

  6. #6
    Jan
    Jan is offline
    JPC Member
    Join Date
    Oct 2002
    Posts
    48
    Yes, JaguarPC have updated to PHP 4.3.2 and there is a 'bug' which gives this error when using an http path. If you do a search for the erorr you will find hundreds of sites which now display this error!!!

    I asked for the PHP ini file to be modified and now the include file is being shown but the error is still being displayed, although the people at the support desk say they can't see the error from their end. I've tried it on different computers and different browsers and the error always displays for me. Looks like I'm going to have to go through all my pages and use the relative path instead!!

  7. #7
    Jan
    Jan is offline
    JPC Member
    Join Date
    Oct 2002
    Posts
    48
    By the way, I have three sites hosted here and just this one hosted on Silver is displaying this error despite the same sort of PHP code being used on the other two (which are also on different servers and according to the cpanel have the same version of PHP). This is most puzzling!!
    Last edited by Jan; 07-26-2003 at 12:48 PM.

  8. #8
    JPC Member
    Join Date
    Mar 2002
    Posts
    3

    Thanks!

    I just checked out the code and it was an include with an http path, i've updated it and the errors are gone!


    Thanks!

  9. #9
    Jan
    Jan is offline
    JPC Member
    Join Date
    Oct 2002
    Posts
    48
    Glad it helped. I have a huge task in front of me modifying ALL of my pages!!

  10. #10
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Originally posted by Jan
    Glad it helped. I have a huge task in front of me modifying ALL of my pages!!
    It might not be too bad. I backup my site up to my local computer all the time. When I have to change a bunch of code, I simply use the search feature in W2K and look for files containing certain text in my backup folder.

    Not to beat a dead horse, but that's how I found all the instances of 'setlocale' in my Nuke site. I did a search of all files containing 'setlocale' in my backup directory and 5 or 6 files were found. I went in and edited them, saved and uploaded them back to the server... bada, bing, bada, boom.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  11. #11
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    If you're still getting the error and the file is being included correctly, you may wnat to try using @include(...). Placeing an @ in front of any function in PHP will surpress any error messages that the function throws. I'm not sure that include() is really a function, though, so it may not work.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  12. #12
    Jan
    Jan is offline
    JPC Member
    Join Date
    Oct 2002
    Posts
    48
    Thank you Jason. As far as I have found out that will work too but it still means editing every single page. Does anyone know of a fix where editing every page would not be necessary?

    Thank you for the tip too, Vin DSL. I hadn't thought of doing that.

    Jan

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
  •