GPXIN-31: Notices on Import

Issue Information

Issue Type: Bug
Priority: Major
Status: Closed

Reported By:
Ben Tasker
Assigned To:
Ben Tasker
Project: PHP GPXIngest (GPXIN)
Resolution: Fixed (2017-07-03 09:27:52)
Affects Version: 1.02, 1.03,
Target version: 1.03,

Created: 2017-07-02 12:17:50
Time Spent Working
15 minutes
0 minutes
15 minutes

GPXIN-27 added support for routes, however because the class isn't created by default it generates a PHP WARNING level error/warning.

Need to adjust to ensure that journey->related->routes is defined by default.

Issue Links

Github #19
Toggle State Changes


Originally raised in Github #19

Repo: PHP-GPX-Ingest
Commit: 68b717f63e90542808953633c85c98e34a527032
Author: B Tasker <github@<Domain Hidden>>

Date: Mon Jul 03 09:17:39 2017 +0100
Commit Message: GPXIN-31 Ensure journey->related->routes is initialised correctly (from #19) to prevent WARNING level entries

Test case is fairly simple:



    require 'src/GPXIngest/GPXIngest.php';

    $gpx = new GPXIngest\GPXIngest;

Where gpx-ingest-pb is a GPX file that makes use of rte points (see #19 for an example)

Modified (-)(+)

Webhook User-Agent


View Commit

Marking this as resolved, test case passes and it was always going to be a simple fix anyway.
btasker changed timespent from '0 minutes' to '15 minutes'
btasker changed status from 'Open' to 'Resolved'
btasker added 'Fixed' to resolution
btasker changed status from 'Resolved' to 'Closed'

Work log

Ben Tasker
2017-07-03 09:27:38

Time Spent: 15 minutes
Log Entry: Fixing and testing