Menu

Warning error - no league teams loaded

Help
2008-11-14
2013-04-25
  • Nobody/Anonymous

    A message shows in the left window stating Teams currently loaded: Warning: strpos() [function strpos]: Offset no contained in string in f:\xampp\htdocs\statfink\helm\league.php on line 209

    Same warning appears again for line 215.

    Line 209 reads:

    $end = strpos($html, '<div class="navlist yspsplit tablelegend"', $start+49);

    Line 215 reads:

    $name1end = strpos($html, '</option>', $name1start);

    Our league team names are:

    1.      Rainbow Warriors
    2.     Glyn The Ranger
    3.     Koiz
    4.     Dor jan and Earl
    5.     Tea and Crumpets
    6.     Vals Strikers
    7.     Alwyz Slacking
    8.     Fig's Rampaging SK
    9.     Pacman
    10.     Saeba's Cheerleaders
    11.     Melodiez Sea Babez
    12.     Ranjadeath

    The center box shows the NFL games loaded correctly...

    The right side box shows Last updated: 11-14-08, 9:06 am
    There are no games in progress. Tracking will resume during the next scheduled game
    Sunday at 1:00pm.

    If I click for scores, it only shows two teams listed:

    team (0)     0.00
    team (0)     0.00

    Any assistance on this situation would be appreciated.

    Regards -
    -Bob

     
    • Nobody/Anonymous

      Update -

      I switched weeks to grab a previous week, same error message, but when I flipped back to this week, no error message, but no teams loaded either.

      Regards -

       
    • Nobody/Anonymous

      Further update:

      If you specify a specific week, it gives the warning every time... if you specify "This week" in Data to use, no error, just no data.
      It did change the message after running through all the weeks to: Yahoo is pulling the ol verification thing.

      Regards -

       
    • Nobody/Anonymous

      I let the helm window sit for 5 hours, then attempted to Grab Fantasy Info again. The NFL games load without a problem and the right pane continues to work as far as I can tell, but the left pane still shows "Yahoo is pulling the ol verification thing" as the message and loading no teams...

      I have looked through several of the forum messages, but have not yet found what the cause of this error message is. It sounds like the program cannot access Yahoo, but I verified that I input the correct user and password information into the system and I can access the Fantasy team page using both Firefox and IE.

      Regards -
      -Bob

       
    • Nobody/Anonymous

      Have determined that statfink will not work for me because of my yahoo password (which is working in several other utilities)...

      My yahoo password contains a $ in it, which is a special character in php... and because of the way it is being read in, will only read the characters up to the $ and nothing after it...

      Tried changing the $ to %24 in the config file, but it was read as %24 and attempted to be used that way...

      Will see if there is a way to modify the main file and hard code the password in, but suspect that it will not work.

      Regards -

       
    • Brad

      Brad - 2008-11-16

      Try putting a backslash (\) before the $.  Backslash is the php string escape character.

      - Brad

       
    • Nobody/Anonymous

      Still doesn't download the teams from the Yahoo league, but does give me some other ideas to play with.
      Thanks for the suggestion...

      Regards -

       
    • Bob Hipsher

      Bob Hipsher - 2008-12-06

      Greets -

      I added code to the league.php to strip slashes from the params:

      $params = stripslashes ($params);

      This appears to have resolved the problem and I can now obtain stats.

      I should point out that with Internet Explorer 8 (beta) the "Start Tracking" button disappears for some reason. I haven't delved into that problem yet and since we are at the end of the season, probably wont for now.

      Thanks for the escape suggestion, Brad... placing the slash in the config file and then stripping it as it was sent to curl appeared to have resolved the problem.

      Regards -

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.