Ticket #23 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

PHP errors

Reported by: Tuinslak Owned by: pietercolpaert
Priority: major Milestone: Mobile Site 1.5
Component: API Keywords:
Cc: Tuinslak

Description

Getting this error on certain stations:

Warning: Invalid argument supplied for foreach() in /var/www/iRail/api/InputHandlers/BRailConnectionInput.php on line 95

Fatal error: Call to a member function getDepart() on a non-object in /var/www/iRail/api/OutputHandlers/MobileWebOutput.php on line 25

for example:

  • from VICHTE
  • to ANTWERPEN BERCHEM

Attachments

Screen shot 2010-10-06 at 19.36.46.png Download (21.4 KB) - added by Tuinslak 3 years ago.
Screen shot 2010-10-06 at 19.36.52.png Download (24.4 KB) - added by Tuinslak 3 years ago.

Change History

comment:1 Changed 3 years ago by Tuinslak

Only gives an error on 2/10/2010 - today this works fine.

comment:2 Changed 3 years ago by Tuinslak

#21 (by Christophe):


On this request:

 http://api.irail.be/connections.php?to=JURBISE&from=BRUXELLES-MIDI&date=290910&time=1610&timeSel=depart&lang=en&trainsonly=1

I get the error code:

Warning:  Invalid argument supplied for foreach() in /home/yeri/irail/api/InputHandlers/BRailConnectionInput.php on line 95
<connections version="1.0" timestamp="1285771329"/> 

Fatal error</b>:  Call to a member function getDepart() on a non-object in /home/yeri/irail/api/connections.php on line 89



This work nice now, but you have all infos on the bug.

EDIT: crash again now.

On irail.be give this message:

Warning: Invalid argument supplied for foreach() in /home/yeri/irail/api/InputHandlers/BRailConnectionInput.php on line 95

Fatal error: Call to a member function getDepart() on a non-object in /home/yeri/irail/api/OutputHandlers/MobileWebOutput.php on line 25

comment:3 Changed 3 years ago by pietercolpaert

  • Status changed from new to closed
  • Resolution set to invalid

Could not reproduce. Fixed by other commits?

comment:4 Changed 3 years ago by Tuinslak

  • Status changed from closed to reopened
  • Resolution invalid deleted

Not fixed, can reproduce.

see screenshots

Changed 3 years ago by Tuinslak

Changed 3 years ago by Tuinslak

comment:5 Changed 3 years ago by pietercolpaert

  • Status changed from reopened to closed
  • Resolution set to fixed

Changed to error message. HAFAS returns error.

comment:6 Changed 3 years ago by Tuinslak

  • Status changed from closed to reopened
  • Resolution fixed deleted

=> "We're sorry, we could not retrieve the correct data from our sources" ?

use noresults.php for that (layout...)

comment:7 Changed 3 years ago by pietercolpaert

  • Status changed from reopened to closed
  • Resolution set to fixed

Done

Note: See TracTickets for help on using tickets.