Available for Adoption Animals
count: 40Warning (2): file_get_contents(http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20): failed to open stream: HTTP request failed! HTTP/1.1 429
[APP/Model/Table/AnimalsTable.php, line 588]Code Context Configure::read('Sheltermate.paging.pageSize'));
$jsonResponse = file_get_contents($requestUrl, false, $context);
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalId = (int) 52741
$page = (int) 1
$requestBody = '{"AnimalId":[52741]}'
$contentLength = (int) 20
$request_headers = [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
]
$request_options = [
'http' => [
'header' => [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
],
'method' => 'POST',
'content' => '{"AnimalId":[52741]}'
]
]
$context = resource
$requestUrl = 'http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20'
$http_response_header = [
(int) 0 => 'HTTP/1.1 429 ',
(int) 1 => 'Cache-Control: no-cache',
(int) 2 => 'Pragma: no-cache',
(int) 3 => 'Content-Type: application/json; charset=utf-8',
(int) 4 => 'Expires: -1',
(int) 5 => 'Retry-After: 1',
(int) 6 => 'Server: Microsoft-IIS/10.0',
(int) 7 => 'sb-auth-token: 7951273BB0A63BA41A30F690E630D8656180E0F207F0A682911BAC17F8EE57A84DF627B092B22EA45F4088DA41DCBCF454BF1CDA522A78E8AEAD74FF84BE153AC2C5244A3C4EFCA67BD697EFAC594D71987FAFBC83757E2A3B20D8438E66381578080ED083AF46E71A2878E5915AF76BA21F7049AEBA72A32162804E2277FC84C64CB0840A95BF46011BBB25982EC34954EC72E0DC169DA8C454964A29976A450DD184C5578615E897DE0719B6B6341D010094D2694697229DAE9241EADB5162E15B9850B2EC4C6F1F28ACCAFB0C1D6A880FCBFBCD2644F4BC758AE566496BE602E614981D57467AE70485543D72789EC29D23EA8B10D85413117C7489C24352D95F2C676ADA55772304F8F45413548B4229B8E76C97998DE8AC43B4C28832F6884B284DFBAFE87D7F1D4E5E40595FFFDFBC99E73B1989448AA9B0A7C4069C6441DC65BB5A27A6BC8F9D71BC999B91F648BB8017DFA1B6EF6B4BB7CE5C496429EB293E6469FBEA6FFFD97DE74A7114E907A963B2158FBFFF36AF30182D309C439FF870A95A4D2F69E61F320CE8CCE4A32A3DD2DBD799673F0ACA7D75AE76ADA758996A26AEDF5D8112808E439E9B8C6A9E8177204FA4F9ED380A620D7B0CCCCC895DE971C99B5A4F827376C5906AB3857FE103681B6E42285DCE5DC5518B19CA05235065',
(int) 8 => 'X-Robots-Tag: noindex',
(int) 9 => 'X-Frame-Options: SAMEORIGIN',
(int) 10 => 'X-XSS-Protection: 1; mode=block',
(int) 11 => 'X-Content-Type-Options: nosniff',
(int) 12 => 'Date: Wed, 20 Jan 2021 09:46:39 GMT',
(int) 13 => 'Connection: close',
(int) 14 => 'Content-Length: 59'
]
file_get_contents - [internal], line ??
App\Model\Table\AnimalsTable::retrieveSheltermatePhotosForAnimal() - APP/Model/Table/AnimalsTable.php, line 588
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 765
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/AnimalsTable.php, line 768]Code Context $pCount = 0;
foreach ( $photos["Data"] as $image ) {
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalArray = [
'Name' => 'Ferg',
'DateOfBirthUtc' => '2020-10-24T13:00:00Z',
'License' => [
'Tag' => null,
'Issuer' => null
],
'EuthanasiaReason' => null,
'SecondaryEuthanasiaReason' => null,
'EuthanasiaType' => null,
'IsApprovedForEuthanasia' => false,
'IsOwnerPresentForEuthanasia' => false,
'DoNotEuthanise' => false,
'DoNotEuthaniseReason' => null,
'EuthanasiaAuthorisedBy' => null,
'OtherEuthanasiaReason' => null,
'AdoptionFee' => null,
'AdoptionSummary' => 'THE EXECUTIVE.I have to say 'I'm a busy cat. First, I've got to check out what's happening out the window. Next I'll see if any closets or cupboards need looking into. And then there are my naps-can't be late for those. I can fit a little socializing into my schedule. Shall we plan on breakfast and dinner? Hope you like kibbles. ',
'Age' => [
'IsApproximate' => false,
'Months' => (int) 0,
'Weeks' => (int) 12,
'Years' => (int) 0,
'AgeGroup' => null
],
'Breed' => [
'Primary' => [
'Name' => 'Domestic Medium Hair',
'Uri' => '/api/v2/animal/species/breed/32',
'Id' => (int) 32
],
'PrimarySpecies' => [
'Uri' => '/api/v2/animal/species/1863',
'Id' => (int) 1863
],
'Secondary' => null,
'SecondarySpecies' => null,
'IsCrossBreed' => true
],
'BreederRegistrationNumber' => null,
'ContactLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Features' => [
'CoatLength' => null,
'PrimaryColour' => 'Black',
'SecondaryColour' => null,
'CoatType' => null,
'EarType' => null,
'TailType' => null,
'EyeColour' => null
],
'Identification' => [
'HasMicrochip' => true,
'PrimaryMicrochipNumber' => '956000013379938',
'PrimaryMicrochipBrand' => [
'Name' => 'Trovan - Central Animal Registry',
'Id' => (int) 11
],
'PrimaryMicrochipImplantDateUtc' => '2021-01-02T13:00:00Z',
'SecondaryMicrochipNumber' => '',
'SecondaryMicrochipBrand' => null,
'SecondaryMicrochipImplantDateUtc' => null,
'OtherIdentification' => '',
'AcoNumber' => null,
'TagColour' => null,
'CollarType' => null,
'Barcode' => null,
'ShelterTag' => null,
'CustomTag' => null,
'CollarColour' => null,
'OldDatabaseNumber' => null
],
'Intake' => [
'DateUtc' => '2020-12-31T20:13:00Z',
'Region' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Source' => [
'Name' => 'Owner Surrender',
'Uri' => '/api/v2/animal/source/2',
'Id' => (int) 2
],
'ExtendedDetails' => [
'Uri' => '/api/v2/animal/sourcehistory/59753',
'Id' => (int) 59753
],
'Received' => null,
'SurrenderReason' => [
'Name' => 'Unwanted litter',
'Uri' => '/api/v2/animal/surrenderreason/147',
'Id' => (int) 147
],
'BehaviourCondition' => null,
'EmergencyBoardingReason' => null
],
'LastUpdatedUtc' => '2021-01-19T22:39:38.257Z',
'Location' => [
'PhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Kennel' => [
'Name' => '10',
'Uri' => '/api/v2/shelter/kennel/44757',
'Id' => (int) 44757
],
'Shelter' => [
'Name' => 'Cat Adoptions',
'Uri' => '/api/v2/shelter/143',
'Id' => (int) 143
],
'MostRecentPhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
]
],
'Medical' => [
'IsDeclawed' => false,
'IsVaccinated' => true,
'SpayedNeutered' => 'yes',
'PreferredFood' => null,
'PreviousMedicalDetails' => null
],
'Owner' => [
'Name' => 'Marnie Sweet',
'Uri' => '/api/v2/person/18386',
'Id' => (int) 18386
],
'Pattern' => null,
'Sex' => [
'Name' => 'Male',
'Uri' => '/api/v2/animal/gender/1',
'Id' => (int) 1
],
'Size' => null,
'Status' => [
'DateUtc' => '2021-01-19T22:31:00Z',
'Name' => 'Available For Adoption',
'Uri' => '/api/v2/animal/status/3',
'Id' => (int) 3
],
'SubStatus' => null,
'SubStatuses' => [],
'Type' => [
'Name' => 'Kitten',
'Uri' => '/api/v2/animal/species/type/15',
'Id' => (int) 15
],
'AvailableForAdoptionDateUtc' => '1900-01-01T00:00:00Z',
'DateOfWeighingUtc' => '2021-01-19T13:00:00Z',
'CurrentRabiesVaccination' => null,
'Litters' => null,
'RabiesTag' => null,
'Origin' => null,
'DangerousAnimalInformation' => null,
'LostFoundAddress' => [
'Country' => [
'Name' => 'Australia',
'Uri' => '/api/v2/location/country/3',
'Id' => (int) 3
],
'Jurisdiction' => [
'Name' => 'City Of Greater Geelong',
'Uri' => '/api/v2/jurisdiction/132',
'Id' => (int) 132
],
'State' => [
'Abbreviation' => 'VIC',
'Name' => 'Victoria',
'Uri' => '/api/v2/location/state/56',
'Id' => (int) 56
],
'StreetType' => null,
'Suburb' => null,
'DeliveryType' => null,
'PrintableString' => 'VIC, Australia',
'PrintableStreetAddressString' => 'VIC, Australia',
'CrossStreet' => '',
'DirectionOne' => '',
'DirectionTwo' => '',
'ExtraAddressDetails' => '',
'Postcode' => '',
'PostcodeSuffix' => null,
'StreetName' => '',
'StreetNumber' => '',
'UnitNumber' => '',
'DeliveryNumber' => '',
'IsApiValidated' => false,
'Id' => (int) 285725
],
'DateFoundUtc' => '2020-12-31T13:00:00Z',
'DateLostUtc' => null,
'IsDeleted' => false,
'Icons' => null,
'Weight' => '1.4 kg',
'MetaData' => [],
'RelatedAnimals' => null,
'Behaviour' => null,
'Media' => null,
'DistinguishingFeatures' => null,
'DueDateOutUtc' => '2021-01-08T13:00:00Z',
'Id' => (int) 52741
]
$ret = ''
$newRecord = false
$rightNow = object(Cake\I18n\Time) {
'time' => '2021-01-20T09:46:40+00:00',
'timezone' => 'UTC',
'fixedNowTime' => false
}
$animal = object(App\Model\Entity\Animal) {
'id' => (int) 52741,
'name' => 'Ferg',
'photo_url' => 'http://gaws.sheltermate.com/storage/image/aa0e7dc3afc643f6815f85c0b1be86ec-1611095327-1611095338-jpg/1024---n',
'sex_id' => (int) 1,
'status_id' => (int) 3,
'type_id' => (int) 15,
'pattern_id' => null,
'json_data' => '{"Name":"Ferg","DateOfBirthUtc":"2020-10-24T13:00:00Z","License":{"Tag":null,"Issuer":null},"EuthanasiaReason":null,"SecondaryEuthanasiaReason":null,"EuthanasiaType":null,"IsApprovedForEuthanasia":false,"IsOwnerPresentForEuthanasia":false,"DoNotEuthanise":false,"DoNotEuthaniseReason":null,"EuthanasiaAuthorisedBy":null,"OtherEuthanasiaReason":null,"AdoptionFee":null,"AdoptionSummary":"THE EXECUTIVE.I have to say 'I'm a busy cat. First, I've got to check out what's happening out the window. Next I'll see if any closets or cupboards need looking into. And then there are my naps-can't be late for those. I can fit a little socializing into my schedule. Shall we plan on breakfast and dinner? Hope you like kibbles. ","Age":{"IsApproximate":false,"Months":0,"Weeks":12,"Years":0,"AgeGroup":null},"Breed":{"Primary":{"Name":"Domestic Medium Hair","Uri":"\/api\/v2\/animal\/species\/breed\/32","Id":32},"PrimarySpecies":{"Uri":"\/api\/v2\/animal\/species\/1863","Id":1863},"Secondary":null,"SecondarySpecies":null,"IsCrossBreed":true},"BreederRegistrationNumber":null,"ContactLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Features":{"CoatLength":null,"PrimaryColour":"Black","SecondaryColour":null,"CoatType":null,"EarType":null,"TailType":null,"EyeColour":null},"Identification":{"HasMicrochip":true,"PrimaryMicrochipNumber":"956000013379938","PrimaryMicrochipBrand":{"Name":"Trovan - Central Animal Registry","Id":11},"PrimaryMicrochipImplantDateUtc":"2021-01-02T13:00:00Z","SecondaryMicrochipNumber":"","SecondaryMicrochipBrand":null,"SecondaryMicrochipImplantDateUtc":null,"OtherIdentification":"","AcoNumber":null,"TagColour":null,"CollarType":null,"Barcode":null,"ShelterTag":null,"CustomTag":null,"CollarColour":null,"OldDatabaseNumber":null},"Intake":{"DateUtc":"2020-12-31T20:13:00Z","Region":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Source":{"Name":"Owner Surrender","Uri":"\/api\/v2\/animal\/source\/2","Id":2},"ExtendedDetails":{"Uri":"\/api\/v2\/animal\/sourcehistory\/59753","Id":59753},"Received":null,"SurrenderReason":{"Name":"Unwanted litter","Uri":"\/api\/v2\/animal\/surrenderreason\/147","Id":147},"BehaviourCondition":null,"EmergencyBoardingReason":null},"LastUpdatedUtc":"2021-01-19T22:39:38.257Z","Location":{"PhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Kennel":{"Name":"10","Uri":"\/api\/v2\/shelter\/kennel\/44757","Id":44757},"Shelter":{"Name":"Cat Adoptions","Uri":"\/api\/v2\/shelter\/143","Id":143},"MostRecentPhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53}},"Medical":{"IsDeclawed":false,"IsVaccinated":true,"SpayedNeutered":"yes","PreferredFood":null,"PreviousMedicalDetails":null},"Owner":{"Name":"Marnie Sweet","Uri":"\/api\/v2\/person\/18386","Id":18386},"Pattern":null,"Sex":{"Name":"Male","Uri":"\/api\/v2\/animal\/gender\/1","Id":1},"Size":null,"Status":{"DateUtc":"2021-01-19T22:31:00Z","Name":"Available For Adoption","Uri":"\/api\/v2\/animal\/status\/3","Id":3},"SubStatus":null,"SubStatuses":[],"Type":{"Name":"Kitten","Uri":"\/api\/v2\/animal\/species\/type\/15","Id":15},"AvailableForAdoptionDateUtc":"1900-01-01T00:00:00Z","DateOfWeighingUtc":"2021-01-19T13:00:00Z","CurrentRabiesVaccination":null,"Litters":null,"RabiesTag":null,"Origin":null,"DangerousAnimalInformation":null,"LostFoundAddress":{"Country":{"Name":"Australia","Uri":"\/api\/v2\/location\/country\/3","Id":3},"Jurisdiction":{"Name":"City Of Greater Geelong","Uri":"\/api\/v2\/jurisdiction\/132","Id":132},"State":{"Abbreviation":"VIC","Name":"Victoria","Uri":"\/api\/v2\/location\/state\/56","Id":56},"StreetType":null,"Suburb":null,"DeliveryType":null,"PrintableString":"VIC, Australia","PrintableStreetAddressString":"VIC, Australia","CrossStreet":"","DirectionOne":"","DirectionTwo":"","ExtraAddressDetails":"","Postcode":"","PostcodeSuffix":null,"StreetName":"","StreetNumber":"","UnitNumber":"","DeliveryNumber":"","IsApiValidated":false,"Id":285725},"DateFoundUtc":"2020-12-31T13:00:00Z","DateLostUtc":null,"IsDeleted":false,"Icons":null,"Weight":"1.4 kg","MetaData":[],"RelatedAnimals":null,"Behaviour":null,"Media":null,"DistinguishingFeatures":null,"DueDateOutUtc":"2021-01-08T13:00:00Z","Id":52741}',
'date_created' => null,
'date_modified' => '4',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [
'date_modified' => true,
'name' => true,
'json_data' => true
],
'[original]' => [
'date_modified' => null
],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Animals'
}
$photos = null
$pCount = (int) 0
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 768
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (2): file_get_contents(http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20) [<a href='https://secure.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 429
[APP/Model/Table/AnimalsTable.php, line 588]Code Context Configure::read('Sheltermate.paging.pageSize'));
$jsonResponse = file_get_contents($requestUrl, false, $context);
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalId = (int) 51901
$page = (int) 1
$requestBody = '{"AnimalId":[51901]}'
$contentLength = (int) 20
$request_headers = [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
]
$request_options = [
'http' => [
'header' => [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
],
'method' => 'POST',
'content' => '{"AnimalId":[51901]}'
]
]
$context = resource
$requestUrl = 'http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20'
$http_response_header = [
(int) 0 => 'HTTP/1.1 429 ',
(int) 1 => 'Cache-Control: no-cache',
(int) 2 => 'Pragma: no-cache',
(int) 3 => 'Content-Type: application/json; charset=utf-8',
(int) 4 => 'Expires: -1',
(int) 5 => 'Retry-After: 1',
(int) 6 => 'Server: Microsoft-IIS/10.0',
(int) 7 => 'sb-auth-token: 5A0CDA66426829D28740A2110D1316E4C8F8DDD0E3217DFA9C16826403161E8D20389EF8F8A23D5FB17BB04EA36F6319A308D16DC7F0509089A715B6A9B3CAAF1A4393E1548007BE9977BFF057412CA4C6A3E373FF0A562F566DA39655448C2D2B2122FD1367DBE99A038FC51F090D2BBDBB687A513FD730F4E85E8F679E2FF6DE4DB69FD487041444D92532B8C65247D49BAD3A73261BE648E5E13546D5F0A091FD84A9FA4CCFECA33DF2371BBAD3E084046EB77896054499BFE54C65D4673E8B052461153B9C781AEC9D6CF708B144CA724A767697BD6950D281E52695C2F6DB2EA016AB6B6E17BDC3B50242DF55EEA08C3FBDFD93259FCAC7779AF5AD4F957B90395CAC7E2573053094B7A7E86AE79607CF060D7EBC912318B990F2B1D5D6717AE4689FE3977B4598C418F67F8EB91CEE5A9E547FF0F47C0F2F77BAF27E4B80D9203C788BEF56C01CE81455A7528413041F4633BE3C280A7B9FC10FD6BC46A0426DBD321A4FA31B57DC8934C609BE2BB4D614A756DAFB01789D69F2ADD88635A1278B7588F774855E72CC45922FA8C85144FDB9055E17E9A860E158AFB1E5B84D5E3AF6427C7F5327B4E0BEA54094005FA0802DC0E1F929CD4F965940A177CDA2DDE497057DDE9B1FBB6055040C2CCCDC2C260A07F76ACEF92ADF9B38337C04CB87AA',
(int) 8 => 'X-Robots-Tag: noindex',
(int) 9 => 'X-Frame-Options: SAMEORIGIN',
(int) 10 => 'X-XSS-Protection: 1; mode=block',
(int) 11 => 'X-Content-Type-Options: nosniff',
(int) 12 => 'Date: Wed, 20 Jan 2021 09:46:42 GMT',
(int) 13 => 'Connection: close',
(int) 14 => 'Content-Length: 59'
]
file_get_contents - [internal], line ??
App\Model\Table\AnimalsTable::retrieveSheltermatePhotosForAnimal() - APP/Model/Table/AnimalsTable.php, line 588
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 765
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/AnimalsTable.php, line 768]Code Context $pCount = 0;
foreach ( $photos["Data"] as $image ) {
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalArray = [
'Name' => 'Marcus',
'DateOfBirthUtc' => '2020-10-08T13:00:00Z',
'License' => [
'Tag' => null,
'Issuer' => null
],
'EuthanasiaReason' => null,
'SecondaryEuthanasiaReason' => null,
'EuthanasiaType' => null,
'IsApprovedForEuthanasia' => false,
'IsOwnerPresentForEuthanasia' => false,
'DoNotEuthanise' => false,
'DoNotEuthaniseReason' => null,
'EuthanasiaAuthorisedBy' => null,
'OtherEuthanasiaReason' => null,
'AdoptionFee' => null,
'AdoptionSummary' => 'Hi, I'm Marcus! I am a gentle, sweet kitten looking for a calm, quiet home.Older children would be fine but I absolutely LOVE other cats (all other cats), so another cat in the home would be purrfect! I am a very friendly kitten, I can be independent but I really like attention and I'm super cuddly with my people. I love to play with my toys a lot and I'm also happy playing with another cat or kitten. I have 2 siblings, Marble and Maizie, who I love to play and cuddle with plus my foster home had a few big cats and I loved, loved, loved them all. I'd like a home with someone who has the time to give me lots of cuddles but I'm ok if you need to work sometimes, just leave me with lots of toys and a playmate would be great too.
Of course you will need to keep me indoors due to my pink nose but I'm going to be more than fine with that. My sister Maizie (ID 51899) is heaps of fun so if you're looking to adopt 2 kittens to double the joy I'd love to be adopted with her but if you already have a cat friend at home for me, that would be great too.
Hopefully you can give me the nice calm home I'm looking for.
',
'Age' => [
'IsApproximate' => false,
'Months' => (int) 3,
'Weeks' => (int) 1,
'Years' => (int) 0,
'AgeGroup' => null
],
'Breed' => [
'Primary' => [
'Name' => 'Domestic Short Hair',
'Uri' => '/api/v2/animal/species/breed/33',
'Id' => (int) 33
],
'PrimarySpecies' => [
'Uri' => '/api/v2/animal/species/1859',
'Id' => (int) 1859
],
'Secondary' => null,
'SecondarySpecies' => null,
'IsCrossBreed' => true
],
'BreederRegistrationNumber' => null,
'ContactLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Features' => [
'CoatLength' => null,
'PrimaryColour' => 'Tabby',
'SecondaryColour' => 'White',
'CoatType' => null,
'EarType' => null,
'TailType' => null,
'EyeColour' => null
],
'Identification' => [
'HasMicrochip' => true,
'PrimaryMicrochipNumber' => '956000013368210',
'PrimaryMicrochipBrand' => [
'Name' => 'Trovan - Central Animal Registry',
'Id' => (int) 11
],
'PrimaryMicrochipImplantDateUtc' => '2020-10-06T13:00:00Z',
'SecondaryMicrochipNumber' => null,
'SecondaryMicrochipBrand' => null,
'SecondaryMicrochipImplantDateUtc' => null,
'OtherIdentification' => null,
'AcoNumber' => '1649044/59940/266',
'TagColour' => null,
'CollarType' => null,
'Barcode' => null,
'ShelterTag' => null,
'CustomTag' => null,
'CollarColour' => null,
'OldDatabaseNumber' => null
],
'Intake' => [
'DateUtc' => '2020-10-07T01:09:00Z',
'Region' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Source' => [
'Name' => 'Council',
'Uri' => '/api/v2/animal/source/13',
'Id' => (int) 13
],
'ExtendedDetails' => [
'Uri' => '/api/v2/animal/sourcehistory/58770',
'Id' => (int) 58770
],
'Received' => null,
'SurrenderReason' => null,
'BehaviourCondition' => null,
'EmergencyBoardingReason' => null
],
'LastUpdatedUtc' => '2021-01-13T00:53:09.003Z',
'Location' => [
'PhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Kennel' => null,
'Shelter' => [
'Name' => 'In Foster',
'Uri' => '/api/v2/shelter/145',
'Id' => (int) 145
],
'MostRecentPhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
]
],
'Medical' => [
'IsDeclawed' => false,
'IsVaccinated' => true,
'SpayedNeutered' => 'Yes',
'PreferredFood' => null,
'PreviousMedicalDetails' => null
],
'Owner' => [
'Name' => 'Nicole McMahon',
'Uri' => '/api/v2/person/32403',
'Id' => (int) 32403
],
'Pattern' => null,
'Sex' => [
'Name' => 'Male',
'Uri' => '/api/v2/animal/gender/1',
'Id' => (int) 1
],
'Size' => null,
'Status' => [
'DateUtc' => '2021-01-12T10:39:00Z',
'Name' => 'Available For Adoption',
'Uri' => '/api/v2/animal/status/3',
'Id' => (int) 3
],
'SubStatus' => null,
'SubStatuses' => [],
'Type' => [
'Name' => 'Kitten',
'Uri' => '/api/v2/animal/species/type/15',
'Id' => (int) 15
],
'AvailableForAdoptionDateUtc' => '1900-01-01T00:00:00Z',
'DateOfWeighingUtc' => null,
'CurrentRabiesVaccination' => null,
'Litters' => [
(int) 0 => [
'Uri' => '/api/v2/animal/litter/247',
'Id' => (int) 247
]
],
'RabiesTag' => null,
'Origin' => null,
'DangerousAnimalInformation' => null,
'LostFoundAddress' => [
'Country' => [
'Name' => 'Australia',
'Uri' => '/api/v2/location/country/3',
'Id' => (int) 3
],
'Jurisdiction' => [
'Name' => 'City Of Greater Geelong',
'Uri' => '/api/v2/jurisdiction/132',
'Id' => (int) 132
],
'State' => [
'Abbreviation' => 'VIC',
'Name' => 'Victoria',
'Uri' => '/api/v2/location/state/56',
'Id' => (int) 56
],
'StreetType' => [
'Name' => 'Road',
'Uri' => '/api/v2/location/streetType/3',
'Id' => (int) 3
],
'Suburb' => [
'Name' => 'Moolap',
'Uri' => '/api/v2/location/suburb/91905',
'Id' => (int) 91905
],
'DeliveryType' => null,
'PrintableString' => 'Pt Henry Road, born onsite, Moolap, VIC, 3221, Australia',
'PrintableStreetAddressString' => 'Pt Henry Road, Moolap, VIC, 3221, Australia',
'CrossStreet' => '',
'DirectionOne' => '',
'DirectionTwo' => '',
'ExtraAddressDetails' => 'born onsite',
'Postcode' => '3221',
'PostcodeSuffix' => null,
'StreetName' => 'Pt Henry',
'StreetNumber' => '',
'UnitNumber' => '',
'DeliveryNumber' => '',
'IsApiValidated' => false,
'Id' => (int) 281254
],
'DateFoundUtc' => '2020-10-08T13:00:00Z',
'DateLostUtc' => null,
'IsDeleted' => false,
'Icons' => null,
'Weight' => '',
'MetaData' => [],
'RelatedAnimals' => null,
'Behaviour' => null,
'Media' => null,
'DistinguishingFeatures' => null,
'DueDateOutUtc' => '2020-10-13T13:00:00Z',
'Id' => (int) 51901
]
$ret = ''
$newRecord = false
$rightNow = object(Cake\I18n\Time) {
'time' => '2021-01-20T09:46:43+00:00',
'timezone' => 'UTC',
'fixedNowTime' => false
}
$animal = object(App\Model\Entity\Animal) {
'id' => (int) 51901,
'name' => 'Marcus',
'photo_url' => 'http://gaws.sheltermate.com/storage/image/7ed504200b3b470e9e43258018ffc809-1608264964-1608264964-jpg/1024---n',
'sex_id' => (int) 1,
'status_id' => (int) 3,
'type_id' => (int) 15,
'pattern_id' => null,
'json_data' => '{"Name":"Marcus","DateOfBirthUtc":"2020-10-08T13:00:00Z","License":{"Tag":null,"Issuer":null},"EuthanasiaReason":null,"SecondaryEuthanasiaReason":null,"EuthanasiaType":null,"IsApprovedForEuthanasia":false,"IsOwnerPresentForEuthanasia":false,"DoNotEuthanise":false,"DoNotEuthaniseReason":null,"EuthanasiaAuthorisedBy":null,"OtherEuthanasiaReason":null,"AdoptionFee":null,"AdoptionSummary":"Hi, I'm Marcus! I am a gentle, sweet kitten looking for a calm, quiet home.Older children would be fine but I absolutely LOVE other cats (all other cats), so another cat in the home would be purrfect! I am a very friendly kitten, I can be independent but I really like attention and I'm super cuddly with my people. I love to play with my toys a lot and I'm also happy playing with another cat or kitten. I have 2 siblings, Marble and Maizie, who I love to play and cuddle with plus my foster home had a few big cats and I loved, loved, loved them all. I'd like a home with someone who has the time to give me lots of cuddles but I'm ok if you need to work sometimes, just leave me with lots of toys and a playmate would be great too.\r\nOf course you will need to keep me indoors due to my pink nose but I'm going to be more than fine with that. My sister Maizie (ID 51899) is heaps of fun so if you're looking to adopt 2 kittens to double the joy I'd love to be adopted with her but if you already have a cat friend at home for me, that would be great too.\r\nHopefully you can give me the nice calm home I'm looking for.\r\n","Age":{"IsApproximate":false,"Months":3,"Weeks":1,"Years":0,"AgeGroup":null},"Breed":{"Primary":{"Name":"Domestic Short Hair","Uri":"\/api\/v2\/animal\/species\/breed\/33","Id":33},"PrimarySpecies":{"Uri":"\/api\/v2\/animal\/species\/1859","Id":1859},"Secondary":null,"SecondarySpecies":null,"IsCrossBreed":true},"BreederRegistrationNumber":null,"ContactLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Features":{"CoatLength":null,"PrimaryColour":"Tabby","SecondaryColour":"White","CoatType":null,"EarType":null,"TailType":null,"EyeColour":null},"Identification":{"HasMicrochip":true,"PrimaryMicrochipNumber":"956000013368210","PrimaryMicrochipBrand":{"Name":"Trovan - Central Animal Registry","Id":11},"PrimaryMicrochipImplantDateUtc":"2020-10-06T13:00:00Z","SecondaryMicrochipNumber":null,"SecondaryMicrochipBrand":null,"SecondaryMicrochipImplantDateUtc":null,"OtherIdentification":null,"AcoNumber":"1649044\/59940\/266","TagColour":null,"CollarType":null,"Barcode":null,"ShelterTag":null,"CustomTag":null,"CollarColour":null,"OldDatabaseNumber":null},"Intake":{"DateUtc":"2020-10-07T01:09:00Z","Region":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Source":{"Name":"Council","Uri":"\/api\/v2\/animal\/source\/13","Id":13},"ExtendedDetails":{"Uri":"\/api\/v2\/animal\/sourcehistory\/58770","Id":58770},"Received":null,"SurrenderReason":null,"BehaviourCondition":null,"EmergencyBoardingReason":null},"LastUpdatedUtc":"2021-01-13T00:53:09.003Z","Location":{"PhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Kennel":null,"Shelter":{"Name":"In Foster","Uri":"\/api\/v2\/shelter\/145","Id":145},"MostRecentPhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53}},"Medical":{"IsDeclawed":false,"IsVaccinated":true,"SpayedNeutered":"Yes","PreferredFood":null,"PreviousMedicalDetails":null},"Owner":{"Name":"Nicole McMahon","Uri":"\/api\/v2\/person\/32403","Id":32403},"Pattern":null,"Sex":{"Name":"Male","Uri":"\/api\/v2\/animal\/gender\/1","Id":1},"Size":null,"Status":{"DateUtc":"2021-01-12T10:39:00Z","Name":"Available For Adoption","Uri":"\/api\/v2\/animal\/status\/3","Id":3},"SubStatus":null,"SubStatuses":[],"Type":{"Name":"Kitten","Uri":"\/api\/v2\/animal\/species\/type\/15","Id":15},"AvailableForAdoptionDateUtc":"1900-01-01T00:00:00Z","DateOfWeighingUtc":null,"CurrentRabiesVaccination":null,"Litters":[{"Uri":"\/api\/v2\/animal\/litter\/247","Id":247}],"RabiesTag":null,"Origin":null,"DangerousAnimalInformation":null,"LostFoundAddress":{"Country":{"Name":"Australia","Uri":"\/api\/v2\/location\/country\/3","Id":3},"Jurisdiction":{"Name":"City Of Greater Geelong","Uri":"\/api\/v2\/jurisdiction\/132","Id":132},"State":{"Abbreviation":"VIC","Name":"Victoria","Uri":"\/api\/v2\/location\/state\/56","Id":56},"StreetType":{"Name":"Road","Uri":"\/api\/v2\/location\/streetType\/3","Id":3},"Suburb":{"Name":"Moolap","Uri":"\/api\/v2\/location\/suburb\/91905","Id":91905},"DeliveryType":null,"PrintableString":"Pt Henry Road, born onsite, Moolap, VIC, 3221, Australia","PrintableStreetAddressString":"Pt Henry Road, Moolap, VIC, 3221, Australia","CrossStreet":"","DirectionOne":"","DirectionTwo":"","ExtraAddressDetails":"born onsite","Postcode":"3221","PostcodeSuffix":null,"StreetName":"Pt Henry","StreetNumber":"","UnitNumber":"","DeliveryNumber":"","IsApiValidated":false,"Id":281254},"DateFoundUtc":"2020-10-08T13:00:00Z","DateLostUtc":null,"IsDeleted":false,"Icons":null,"Weight":"","MetaData":[],"RelatedAnimals":null,"Behaviour":null,"Media":null,"DistinguishingFeatures":null,"DueDateOutUtc":"2020-10-13T13:00:00Z","Id":51901}',
'date_created' => null,
'date_modified' => '4',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [
'date_modified' => true,
'name' => true,
'json_data' => true
],
'[original]' => [
'date_modified' => null
],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Animals'
}
$photos = null
$pCount = (int) 0
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 768
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Lost or Stray Pets
count: 40Warning (2): file_get_contents(http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20) [<a href='https://secure.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 429
[APP/Model/Table/AnimalsTable.php, line 588]Code Context Configure::read('Sheltermate.paging.pageSize'));
$jsonResponse = file_get_contents($requestUrl, false, $context);
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalId = (int) 52969
$page = (int) 1
$requestBody = '{"AnimalId":[52969]}'
$contentLength = (int) 20
$request_headers = [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
]
$request_options = [
'http' => [
'header' => [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
],
'method' => 'POST',
'content' => '{"AnimalId":[52969]}'
]
]
$context = resource
$requestUrl = 'http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20'
$http_response_header = [
(int) 0 => 'HTTP/1.1 429 ',
(int) 1 => 'Cache-Control: no-cache',
(int) 2 => 'Pragma: no-cache',
(int) 3 => 'Content-Type: application/json; charset=utf-8',
(int) 4 => 'Expires: -1',
(int) 5 => 'Retry-After: 1',
(int) 6 => 'Server: Microsoft-IIS/10.0',
(int) 7 => 'sb-auth-token: 1EFE35B0CF7489E84787BCEF25BD2671EFB788B5F8BF3FD40902F6E12ED30F7E8D01094313512C3B8E1E13E1432DB73FCE0B28A56827D703E4F317239587512DC99A1B6FA7C53263C7EAE1FE28C3DE4CABFAB1F3BB6E052300F0B3D3A2FF193588B95B7BD855B76152B1B8E15C3F1900F8DAF1444629F7D646A9B9B8602DEDFF40C0777485274001F22A7A0313795129A0AA5AC0D1996DF84B34143FA90F18C97C50C71C3BFE531723FCC1CCAFDCA8E48C1188C6E8C535B7CC1ADAADA82FFEE30FBF249CEB7C268AAB8E9ABF2E09BEBAEEE297C5173236519BDFD953A5DEA1A36D8A1F03FCACFE92725585DEB4DD2AC572EA5EA39E1F5C8DC4080512C70684C272CFE68A7711DCEC9D1758AE708FF485BB69CA61B78796625BC5C467465E03504AB3A4607C79083BF3D86508D792C4111F7EB3F8C65E9948EEF12CBC3C07180A62260BA4242FC0294AEDE2FBB573DA962F06D92F1FAE7B2A5E1EB7CCA7184683E0FADF9EEEBBD8421680C08082406385904B53DF921FA61A1F8189040EB4645E27D818489EE4FB50DB8B2D7DD0C46D544C4D68F981CD10B37B47AC82A2BDD19CACBDC47C459B6D58F37C3C8A9CF5B74B01EFDDA045C1ACEEAFEA676D8DDB067DF24AF4E95D2515A2997F255F8F0B1C1AEF4C173C33839D52D7FDD130C9422EEC056E5AD6',
(int) 8 => 'X-Robots-Tag: noindex',
(int) 9 => 'X-Frame-Options: SAMEORIGIN',
(int) 10 => 'X-XSS-Protection: 1; mode=block',
(int) 11 => 'X-Content-Type-Options: nosniff',
(int) 12 => 'Date: Wed, 20 Jan 2021 09:46:49 GMT',
(int) 13 => 'Connection: close',
(int) 14 => 'Content-Length: 59'
]
file_get_contents - [internal], line ??
App\Model\Table\AnimalsTable::retrieveSheltermatePhotosForAnimal() - APP/Model/Table/AnimalsTable.php, line 588
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 765
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/AnimalsTable.php, line 768]Code Context $pCount = 0;
foreach ( $photos["Data"] as $image ) {
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalArray = [
'Name' => null,
'DateOfBirthUtc' => '2020-10-19T13:00:00Z',
'License' => [
'Tag' => null,
'Issuer' => null
],
'EuthanasiaReason' => null,
'SecondaryEuthanasiaReason' => null,
'EuthanasiaType' => null,
'IsApprovedForEuthanasia' => false,
'IsOwnerPresentForEuthanasia' => false,
'DoNotEuthanise' => false,
'DoNotEuthaniseReason' => null,
'EuthanasiaAuthorisedBy' => null,
'OtherEuthanasiaReason' => null,
'AdoptionFee' => null,
'AdoptionSummary' => '',
'Age' => [
'IsApproximate' => true,
'Months' => (int) 3,
'Weeks' => (int) 0,
'Years' => (int) 0,
'AgeGroup' => null
],
'Breed' => [
'Primary' => [
'Name' => 'Domestic Short Hair',
'Uri' => '/api/v2/animal/species/breed/33',
'Id' => (int) 33
],
'PrimarySpecies' => [
'Uri' => '/api/v2/animal/species/1859',
'Id' => (int) 1859
],
'Secondary' => null,
'SecondarySpecies' => null,
'IsCrossBreed' => true
],
'BreederRegistrationNumber' => null,
'ContactLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Features' => [
'CoatLength' => null,
'PrimaryColour' => 'Black',
'SecondaryColour' => null,
'CoatType' => null,
'EarType' => null,
'TailType' => null,
'EyeColour' => null
],
'Identification' => [
'HasMicrochip' => false,
'PrimaryMicrochipNumber' => null,
'PrimaryMicrochipBrand' => null,
'PrimaryMicrochipImplantDateUtc' => null,
'SecondaryMicrochipNumber' => null,
'SecondaryMicrochipBrand' => null,
'SecondaryMicrochipImplantDateUtc' => null,
'OtherIdentification' => null,
'AcoNumber' => null,
'TagColour' => null,
'CollarType' => null,
'Barcode' => null,
'ShelterTag' => null,
'CustomTag' => null,
'CollarColour' => null,
'OldDatabaseNumber' => null
],
'Intake' => [
'DateUtc' => '2021-01-20T01:04:00Z',
'Region' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Source' => [
'Name' => 'Stray',
'Uri' => '/api/v2/animal/source/14',
'Id' => (int) 14
],
'ExtendedDetails' => [
'Uri' => '/api/v2/animal/sourcehistory/60011',
'Id' => (int) 60011
],
'Received' => null,
'SurrenderReason' => null,
'BehaviourCondition' => null,
'EmergencyBoardingReason' => null
],
'LastUpdatedUtc' => '2021-01-20T01:29:25.58Z',
'Location' => [
'PhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Kennel' => null,
'Shelter' => [
'Name' => 'Ringworm Room',
'Uri' => '/api/v2/shelter/197',
'Id' => (int) 197
],
'MostRecentPhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
]
],
'Medical' => [
'IsDeclawed' => false,
'IsVaccinated' => true,
'SpayedNeutered' => 'No',
'PreferredFood' => null,
'PreviousMedicalDetails' => null
],
'Owner' => [
'Name' => 'Belinda Barritt',
'Uri' => '/api/v2/person/48740',
'Id' => (int) 48740
],
'Pattern' => null,
'Sex' => [
'Name' => 'Male',
'Uri' => '/api/v2/animal/gender/1',
'Id' => (int) 1
],
'Size' => null,
'Status' => [
'DateUtc' => '2021-01-20T01:04:00Z',
'Name' => 'Stray Hold',
'Uri' => '/api/v2/animal/status/72',
'Id' => (int) 72
],
'SubStatus' => null,
'SubStatuses' => [],
'Type' => [
'Name' => 'Kitten',
'Uri' => '/api/v2/animal/species/type/15',
'Id' => (int) 15
],
'AvailableForAdoptionDateUtc' => '1900-01-01T00:00:00Z',
'DateOfWeighingUtc' => null,
'CurrentRabiesVaccination' => null,
'Litters' => null,
'RabiesTag' => null,
'Origin' => null,
'DangerousAnimalInformation' => null,
'LostFoundAddress' => [
'Country' => [
'Name' => 'Australia',
'Uri' => '/api/v2/location/country/3',
'Id' => (int) 3
],
'Jurisdiction' => [
'Name' => 'Wyndham City Council',
'Uri' => '/api/v2/jurisdiction/244',
'Id' => (int) 244
],
'State' => [
'Abbreviation' => 'VIC',
'Name' => 'Victoria',
'Uri' => '/api/v2/location/state/56',
'Id' => (int) 56
],
'StreetType' => [
'Name' => 'Avenue',
'Uri' => '/api/v2/location/streetType/7',
'Id' => (int) 7
],
'Suburb' => [
'Name' => 'WYNDHAM VALE',
'Uri' => '/api/v2/location/suburb/93959',
'Id' => (int) 93959
],
'DeliveryType' => null,
'PrintableString' => 'Honour Avenue, found in melton and handed to vet, WYNDHAM VALE, VIC, 3024, Australia',
'PrintableStreetAddressString' => 'Honour Avenue, WYNDHAM VALE, VIC, 3024, Australia',
'CrossStreet' => '',
'DirectionOne' => '',
'DirectionTwo' => '',
'ExtraAddressDetails' => 'found in melton and handed to vet',
'Postcode' => '3024',
'PostcodeSuffix' => null,
'StreetName' => 'Honour',
'StreetNumber' => '',
'UnitNumber' => '',
'DeliveryNumber' => '',
'IsApiValidated' => false,
'Id' => (int) 286973
],
'DateFoundUtc' => '2021-01-19T13:00:00Z',
'DateLostUtc' => null,
'IsDeleted' => false,
'Icons' => null,
'Weight' => '',
'MetaData' => [],
'RelatedAnimals' => null,
'Behaviour' => null,
'Media' => null,
'DistinguishingFeatures' => null,
'DueDateOutUtc' => '2021-01-27T13:00:00Z',
'Id' => (int) 52969
]
$ret = ''
$newRecord = false
$rightNow = object(Cake\I18n\Time) {
'time' => '2021-01-20T09:46:50+00:00',
'timezone' => 'UTC',
'fixedNowTime' => false
}
$animal = object(App\Model\Entity\Animal) {
'id' => (int) 52969,
'name' => '',
'photo_url' => 'http://gaws.sheltermate.com/storage/image/cb6ede97127840258fc5b298b538bb07-1611105340-1611105346-jpeg/1024---n',
'sex_id' => (int) 1,
'status_id' => (int) 72,
'type_id' => (int) 15,
'pattern_id' => null,
'json_data' => '{"Name":null,"DateOfBirthUtc":"2020-10-19T13:00:00Z","License":{"Tag":null,"Issuer":null},"EuthanasiaReason":null,"SecondaryEuthanasiaReason":null,"EuthanasiaType":null,"IsApprovedForEuthanasia":false,"IsOwnerPresentForEuthanasia":false,"DoNotEuthanise":false,"DoNotEuthaniseReason":null,"EuthanasiaAuthorisedBy":null,"OtherEuthanasiaReason":null,"AdoptionFee":null,"AdoptionSummary":"","Age":{"IsApproximate":true,"Months":3,"Weeks":0,"Years":0,"AgeGroup":null},"Breed":{"Primary":{"Name":"Domestic Short Hair","Uri":"\/api\/v2\/animal\/species\/breed\/33","Id":33},"PrimarySpecies":{"Uri":"\/api\/v2\/animal\/species\/1859","Id":1859},"Secondary":null,"SecondarySpecies":null,"IsCrossBreed":true},"BreederRegistrationNumber":null,"ContactLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Features":{"CoatLength":null,"PrimaryColour":"Black","SecondaryColour":null,"CoatType":null,"EarType":null,"TailType":null,"EyeColour":null},"Identification":{"HasMicrochip":false,"PrimaryMicrochipNumber":null,"PrimaryMicrochipBrand":null,"PrimaryMicrochipImplantDateUtc":null,"SecondaryMicrochipNumber":null,"SecondaryMicrochipBrand":null,"SecondaryMicrochipImplantDateUtc":null,"OtherIdentification":null,"AcoNumber":null,"TagColour":null,"CollarType":null,"Barcode":null,"ShelterTag":null,"CustomTag":null,"CollarColour":null,"OldDatabaseNumber":null},"Intake":{"DateUtc":"2021-01-20T01:04:00Z","Region":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Source":{"Name":"Stray","Uri":"\/api\/v2\/animal\/source\/14","Id":14},"ExtendedDetails":{"Uri":"\/api\/v2\/animal\/sourcehistory\/60011","Id":60011},"Received":null,"SurrenderReason":null,"BehaviourCondition":null,"EmergencyBoardingReason":null},"LastUpdatedUtc":"2021-01-20T01:29:25.58Z","Location":{"PhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Kennel":null,"Shelter":{"Name":"Ringworm Room","Uri":"\/api\/v2\/shelter\/197","Id":197},"MostRecentPhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53}},"Medical":{"IsDeclawed":false,"IsVaccinated":true,"SpayedNeutered":"No","PreferredFood":null,"PreviousMedicalDetails":null},"Owner":{"Name":"Belinda Barritt","Uri":"\/api\/v2\/person\/48740","Id":48740},"Pattern":null,"Sex":{"Name":"Male","Uri":"\/api\/v2\/animal\/gender\/1","Id":1},"Size":null,"Status":{"DateUtc":"2021-01-20T01:04:00Z","Name":"Stray Hold","Uri":"\/api\/v2\/animal\/status\/72","Id":72},"SubStatus":null,"SubStatuses":[],"Type":{"Name":"Kitten","Uri":"\/api\/v2\/animal\/species\/type\/15","Id":15},"AvailableForAdoptionDateUtc":"1900-01-01T00:00:00Z","DateOfWeighingUtc":null,"CurrentRabiesVaccination":null,"Litters":null,"RabiesTag":null,"Origin":null,"DangerousAnimalInformation":null,"LostFoundAddress":{"Country":{"Name":"Australia","Uri":"\/api\/v2\/location\/country\/3","Id":3},"Jurisdiction":{"Name":"Wyndham City Council","Uri":"\/api\/v2\/jurisdiction\/244","Id":244},"State":{"Abbreviation":"VIC","Name":"Victoria","Uri":"\/api\/v2\/location\/state\/56","Id":56},"StreetType":{"Name":"Avenue","Uri":"\/api\/v2\/location\/streetType\/7","Id":7},"Suburb":{"Name":"WYNDHAM VALE","Uri":"\/api\/v2\/location\/suburb\/93959","Id":93959},"DeliveryType":null,"PrintableString":"Honour Avenue, found in melton and handed to vet, WYNDHAM VALE, VIC, 3024, Australia","PrintableStreetAddressString":"Honour Avenue, WYNDHAM VALE, VIC, 3024, Australia","CrossStreet":"","DirectionOne":"","DirectionTwo":"","ExtraAddressDetails":"found in melton and handed to vet","Postcode":"3024","PostcodeSuffix":null,"StreetName":"Honour","StreetNumber":"","UnitNumber":"","DeliveryNumber":"","IsApiValidated":false,"Id":286973},"DateFoundUtc":"2021-01-19T13:00:00Z","DateLostUtc":null,"IsDeleted":false,"Icons":null,"Weight":"","MetaData":[],"RelatedAnimals":null,"Behaviour":null,"Media":null,"DistinguishingFeatures":null,"DueDateOutUtc":"2021-01-27T13:00:00Z","Id":52969}',
'date_created' => null,
'date_modified' => '4',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [
'date_modified' => true,
'name' => true,
'json_data' => true
],
'[original]' => [
'date_modified' => null
],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Animals'
}
$photos = null
$pCount = (int) 0
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 768
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (2): file_get_contents(http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20) [<a href='https://secure.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 429
[APP/Model/Table/AnimalsTable.php, line 588]Code Context Configure::read('Sheltermate.paging.pageSize'));
$jsonResponse = file_get_contents($requestUrl, false, $context);
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalId = (int) 52887
$page = (int) 1
$requestBody = '{"AnimalId":[52887]}'
$contentLength = (int) 20
$request_headers = [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
]
$request_options = [
'http' => [
'header' => [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
],
'method' => 'POST',
'content' => '{"AnimalId":[52887]}'
]
]
$context = resource
$requestUrl = 'http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20'
$http_response_header = [
(int) 0 => 'HTTP/1.1 429 ',
(int) 1 => 'Cache-Control: no-cache',
(int) 2 => 'Pragma: no-cache',
(int) 3 => 'Content-Type: application/json; charset=utf-8',
(int) 4 => 'Expires: -1',
(int) 5 => 'Retry-After: 1',
(int) 6 => 'Server: Microsoft-IIS/10.0',
(int) 7 => 'sb-auth-token: 6DA74BAB24B860905F6D8FFB72F787214E149E5AB6CB293D919166E2ED11BD256EE34D533560DB9278887D160490D4DF558524F0123AB1F5621E6D3102EEE7BAD6489A62D6F0390960372AA317B6F31CB48DD976C36A7CF9ED6FAB1FB48364E0784E94D9ED796612C74D0054A5DB34631FB876B4D92917EB17C9C9E0542F8FD8C9F98981E6DFA4AF029FEF63DC79A3F610F9F76AE5B5D2DC78151592172644AB59133D46754FCC83705D8302242040E957F9341ACB6BF9DE3A76E706290B61B943BAB1FE9B0E4F31A9A0C46BADB49D98037F660FDEB8008D20BD86C2CC4CC51C97050037757A3EA20DCB67F39F0E5DA9EA3487D6F3FF519525BA8BB3290D42B62391E57796C6BCE4D1EFD5D1FAC3EC72945FDC7BE005AD0381EBA9EB2D3E5C506135EC7115AC43A4C015BC5C98B63FFE68D325AEB9EBB8C257512B4E6FF670EA7672A193C068C60598A40CB468DDC4718FCB1AF8A0A7F90148334591532CF4EB4EED940F60077D7BF05DDE9198DB6545EA271C00FAAA242BCFD24C04BA321E8072E4DECEE10E25BC05DC715AECFB01A3AD05E4DF80BEF07496FCBECC80DB0CF6F55EF6BCEE194574D87D1E1F5DB18DF2F5C0048E45B0BE907D7831992C08AF89A4289F42593AFF16C2DE44CD098629A3A6DEE34C6B97FE618B9DD66919E83CA23F78CD0C',
(int) 8 => 'X-Robots-Tag: noindex',
(int) 9 => 'X-Frame-Options: SAMEORIGIN',
(int) 10 => 'X-XSS-Protection: 1; mode=block',
(int) 11 => 'X-Content-Type-Options: nosniff',
(int) 12 => 'Date: Wed, 20 Jan 2021 09:46:51 GMT',
(int) 13 => 'Connection: close',
(int) 14 => 'Content-Length: 59'
]
file_get_contents - [internal], line ??
App\Model\Table\AnimalsTable::retrieveSheltermatePhotosForAnimal() - APP/Model/Table/AnimalsTable.php, line 588
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 765
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/AnimalsTable.php, line 768]Code Context $pCount = 0;
foreach ( $photos["Data"] as $image ) {
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalArray = [
'Name' => 'Aiden',
'DateOfBirthUtc' => '2020-12-03T13:00:00Z',
'License' => [
'Tag' => null,
'Issuer' => null
],
'EuthanasiaReason' => null,
'SecondaryEuthanasiaReason' => null,
'EuthanasiaType' => null,
'IsApprovedForEuthanasia' => false,
'IsOwnerPresentForEuthanasia' => false,
'DoNotEuthanise' => false,
'DoNotEuthaniseReason' => null,
'EuthanasiaAuthorisedBy' => null,
'OtherEuthanasiaReason' => null,
'AdoptionFee' => null,
'AdoptionSummary' => '',
'Age' => [
'IsApproximate' => false,
'Months' => (int) 0,
'Weeks' => (int) 6,
'Years' => (int) 0,
'AgeGroup' => null
],
'Breed' => [
'Primary' => [
'Name' => 'Domestic Short Hair',
'Uri' => '/api/v2/animal/species/breed/33',
'Id' => (int) 33
],
'PrimarySpecies' => [
'Uri' => '/api/v2/animal/species/1859',
'Id' => (int) 1859
],
'Secondary' => null,
'SecondarySpecies' => null,
'IsCrossBreed' => true
],
'BreederRegistrationNumber' => null,
'ContactLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Features' => [
'CoatLength' => null,
'PrimaryColour' => 'Grey',
'SecondaryColour' => null,
'CoatType' => null,
'EarType' => null,
'TailType' => null,
'EyeColour' => null
],
'Identification' => [
'HasMicrochip' => false,
'PrimaryMicrochipNumber' => null,
'PrimaryMicrochipBrand' => null,
'PrimaryMicrochipImplantDateUtc' => null,
'SecondaryMicrochipNumber' => null,
'SecondaryMicrochipBrand' => null,
'SecondaryMicrochipImplantDateUtc' => null,
'OtherIdentification' => null,
'AcoNumber' => '1688538/60605/157',
'TagColour' => null,
'CollarType' => null,
'Barcode' => null,
'ShelterTag' => null,
'CustomTag' => null,
'CollarColour' => null,
'OldDatabaseNumber' => null
],
'Intake' => [
'DateUtc' => '2021-01-14T02:06:00Z',
'Region' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Source' => [
'Name' => 'Council',
'Uri' => '/api/v2/animal/source/13',
'Id' => (int) 13
],
'ExtendedDetails' => [
'Uri' => '/api/v2/animal/sourcehistory/59917',
'Id' => (int) 59917
],
'Received' => null,
'SurrenderReason' => null,
'BehaviourCondition' => null,
'EmergencyBoardingReason' => null
],
'LastUpdatedUtc' => '2021-01-15T11:19:20.25Z',
'Location' => [
'PhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Kennel' => [
'Name' => '11',
'Uri' => '/api/v2/shelter/kennel/44818',
'Id' => (int) 44818
],
'Shelter' => [
'Name' => 'Ringworm Room',
'Uri' => '/api/v2/shelter/197',
'Id' => (int) 197
],
'MostRecentPhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
]
],
'Medical' => [
'IsDeclawed' => false,
'IsVaccinated' => true,
'SpayedNeutered' => 'No',
'PreferredFood' => null,
'PreviousMedicalDetails' => null
],
'Owner' => [
'Name' => 'City Of Greater Geelong ',
'Uri' => '/api/v2/person/5388',
'Id' => (int) 5388
],
'Pattern' => null,
'Sex' => [
'Name' => 'Male',
'Uri' => '/api/v2/animal/gender/1',
'Id' => (int) 1
],
'Size' => null,
'Status' => [
'DateUtc' => '2021-01-14T02:06:00Z',
'Name' => 'Stray Hold',
'Uri' => '/api/v2/animal/status/72',
'Id' => (int) 72
],
'SubStatus' => null,
'SubStatuses' => [],
'Type' => [
'Name' => 'Kitten',
'Uri' => '/api/v2/animal/species/type/15',
'Id' => (int) 15
],
'AvailableForAdoptionDateUtc' => '1900-01-01T00:00:00Z',
'DateOfWeighingUtc' => '2021-01-13T13:00:00Z',
'CurrentRabiesVaccination' => null,
'Litters' => null,
'RabiesTag' => null,
'Origin' => null,
'DangerousAnimalInformation' => null,
'LostFoundAddress' => [
'Country' => [
'Name' => 'Australia',
'Uri' => '/api/v2/location/country/3',
'Id' => (int) 3
],
'Jurisdiction' => [
'Name' => 'City Of Greater Geelong',
'Uri' => '/api/v2/jurisdiction/132',
'Id' => (int) 132
],
'State' => [
'Abbreviation' => 'VIC',
'Name' => 'Victoria',
'Uri' => '/api/v2/location/state/56',
'Id' => (int) 56
],
'StreetType' => [
'Name' => 'Street',
'Uri' => '/api/v2/location/streetType/2',
'Id' => (int) 2
],
'Suburb' => [
'Name' => 'Drysdale',
'Uri' => '/api/v2/location/suburb/91880',
'Id' => (int) 91880
],
'DeliveryType' => null,
'PrintableString' => 'High Street, Handed to vet by MOP, Drysdale, VIC, 3222, Australia',
'PrintableStreetAddressString' => 'High Street, Drysdale, VIC, 3222, Australia',
'CrossStreet' => '',
'DirectionOne' => '',
'DirectionTwo' => '',
'ExtraAddressDetails' => 'Handed to vet by MOP',
'Postcode' => '3222',
'PostcodeSuffix' => null,
'StreetName' => 'High',
'StreetNumber' => '',
'UnitNumber' => '',
'DeliveryNumber' => '',
'IsApiValidated' => false,
'Id' => (int) 286559
],
'DateFoundUtc' => '2021-01-12T13:00:00Z',
'DateLostUtc' => null,
'IsDeleted' => false,
'Icons' => null,
'Weight' => '0.606 kg',
'MetaData' => [],
'RelatedAnimals' => null,
'Behaviour' => null,
'Media' => null,
'DistinguishingFeatures' => null,
'DueDateOutUtc' => '2021-01-21T13:00:00Z',
'Id' => (int) 52887
]
$ret = ''
$newRecord = false
$rightNow = object(Cake\I18n\Time) {
'time' => '2021-01-20T09:46:51+00:00',
'timezone' => 'UTC',
'fixedNowTime' => false
}
$animal = object(App\Model\Entity\Animal) {
'id' => (int) 52887,
'name' => 'Aiden',
'photo_url' => 'http://gaws.sheltermate.com/storage/image/e7e7d8e88224499482b98f1618ec05a9-1610590261-1610590268-jpeg/1024---n',
'sex_id' => (int) 1,
'status_id' => (int) 72,
'type_id' => (int) 15,
'pattern_id' => null,
'json_data' => '{"Name":"Aiden","DateOfBirthUtc":"2020-12-03T13:00:00Z","License":{"Tag":null,"Issuer":null},"EuthanasiaReason":null,"SecondaryEuthanasiaReason":null,"EuthanasiaType":null,"IsApprovedForEuthanasia":false,"IsOwnerPresentForEuthanasia":false,"DoNotEuthanise":false,"DoNotEuthaniseReason":null,"EuthanasiaAuthorisedBy":null,"OtherEuthanasiaReason":null,"AdoptionFee":null,"AdoptionSummary":"","Age":{"IsApproximate":false,"Months":0,"Weeks":6,"Years":0,"AgeGroup":null},"Breed":{"Primary":{"Name":"Domestic Short Hair","Uri":"\/api\/v2\/animal\/species\/breed\/33","Id":33},"PrimarySpecies":{"Uri":"\/api\/v2\/animal\/species\/1859","Id":1859},"Secondary":null,"SecondarySpecies":null,"IsCrossBreed":true},"BreederRegistrationNumber":null,"ContactLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Features":{"CoatLength":null,"PrimaryColour":"Grey","SecondaryColour":null,"CoatType":null,"EarType":null,"TailType":null,"EyeColour":null},"Identification":{"HasMicrochip":false,"PrimaryMicrochipNumber":null,"PrimaryMicrochipBrand":null,"PrimaryMicrochipImplantDateUtc":null,"SecondaryMicrochipNumber":null,"SecondaryMicrochipBrand":null,"SecondaryMicrochipImplantDateUtc":null,"OtherIdentification":null,"AcoNumber":"1688538\/60605\/157","TagColour":null,"CollarType":null,"Barcode":null,"ShelterTag":null,"CustomTag":null,"CollarColour":null,"OldDatabaseNumber":null},"Intake":{"DateUtc":"2021-01-14T02:06:00Z","Region":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Source":{"Name":"Council","Uri":"\/api\/v2\/animal\/source\/13","Id":13},"ExtendedDetails":{"Uri":"\/api\/v2\/animal\/sourcehistory\/59917","Id":59917},"Received":null,"SurrenderReason":null,"BehaviourCondition":null,"EmergencyBoardingReason":null},"LastUpdatedUtc":"2021-01-15T11:19:20.25Z","Location":{"PhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Kennel":{"Name":"11","Uri":"\/api\/v2\/shelter\/kennel\/44818","Id":44818},"Shelter":{"Name":"Ringworm Room","Uri":"\/api\/v2\/shelter\/197","Id":197},"MostRecentPhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53}},"Medical":{"IsDeclawed":false,"IsVaccinated":true,"SpayedNeutered":"No","PreferredFood":null,"PreviousMedicalDetails":null},"Owner":{"Name":"City Of Greater Geelong ","Uri":"\/api\/v2\/person\/5388","Id":5388},"Pattern":null,"Sex":{"Name":"Male","Uri":"\/api\/v2\/animal\/gender\/1","Id":1},"Size":null,"Status":{"DateUtc":"2021-01-14T02:06:00Z","Name":"Stray Hold","Uri":"\/api\/v2\/animal\/status\/72","Id":72},"SubStatus":null,"SubStatuses":[],"Type":{"Name":"Kitten","Uri":"\/api\/v2\/animal\/species\/type\/15","Id":15},"AvailableForAdoptionDateUtc":"1900-01-01T00:00:00Z","DateOfWeighingUtc":"2021-01-13T13:00:00Z","CurrentRabiesVaccination":null,"Litters":null,"RabiesTag":null,"Origin":null,"DangerousAnimalInformation":null,"LostFoundAddress":{"Country":{"Name":"Australia","Uri":"\/api\/v2\/location\/country\/3","Id":3},"Jurisdiction":{"Name":"City Of Greater Geelong","Uri":"\/api\/v2\/jurisdiction\/132","Id":132},"State":{"Abbreviation":"VIC","Name":"Victoria","Uri":"\/api\/v2\/location\/state\/56","Id":56},"StreetType":{"Name":"Street","Uri":"\/api\/v2\/location\/streetType\/2","Id":2},"Suburb":{"Name":"Drysdale","Uri":"\/api\/v2\/location\/suburb\/91880","Id":91880},"DeliveryType":null,"PrintableString":"High Street, Handed to vet by MOP, Drysdale, VIC, 3222, Australia","PrintableStreetAddressString":"High Street, Drysdale, VIC, 3222, Australia","CrossStreet":"","DirectionOne":"","DirectionTwo":"","ExtraAddressDetails":"Handed to vet by MOP","Postcode":"3222","PostcodeSuffix":null,"StreetName":"High","StreetNumber":"","UnitNumber":"","DeliveryNumber":"","IsApiValidated":false,"Id":286559},"DateFoundUtc":"2021-01-12T13:00:00Z","DateLostUtc":null,"IsDeleted":false,"Icons":null,"Weight":"0.606 kg","MetaData":[],"RelatedAnimals":null,"Behaviour":null,"Media":null,"DistinguishingFeatures":null,"DueDateOutUtc":"2021-01-21T13:00:00Z","Id":52887}',
'date_created' => null,
'date_modified' => '4',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [
'date_modified' => true,
'name' => true,
'json_data' => true
],
'[original]' => [
'date_modified' => null
],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Animals'
}
$photos = null
$pCount = (int) 0
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 768
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (2): file_get_contents(http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20) [<a href='https://secure.php.net/function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 429
[APP/Model/Table/AnimalsTable.php, line 588]Code Context Configure::read('Sheltermate.paging.pageSize'));
$jsonResponse = file_get_contents($requestUrl, false, $context);
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalId = (int) 52959
$page = (int) 1
$requestBody = '{"AnimalId":[52959]}'
$contentLength = (int) 20
$request_headers = [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
]
$request_options = [
'http' => [
'header' => [
(int) 0 => 'sb-auth-token: 859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7',
(int) 1 => 'Content-Type: application/json',
(int) 2 => 'Accept: application/json',
(int) 3 => 'Content-Length: 20'
],
'method' => 'POST',
'content' => '{"AnimalId":[52959]}'
]
]
$context = resource
$requestUrl = 'http://gaws.sheltermate.com/api/v2/animal/photo/list?page=1&pageSize=20'
$http_response_header = [
(int) 0 => 'HTTP/1.1 429 ',
(int) 1 => 'Cache-Control: no-cache',
(int) 2 => 'Pragma: no-cache',
(int) 3 => 'Content-Type: application/json; charset=utf-8',
(int) 4 => 'Expires: -1',
(int) 5 => 'Retry-After: 1',
(int) 6 => 'Server: Microsoft-IIS/10.0',
(int) 7 => 'sb-auth-token: 1C680F190362D1F7DB5FFFBBEF149C59CC2984F94110A3DFFE7C9733C0B5EE448EAF90441123FC7DA9AA04A606E1DBC625C174CC0E05DC96AE057553D44DC9D431FEF3AF158E926A308D00DAA7C9514681EE77399F45A96DE29EFEDDCD85D18254849776A9E644A313E30B04D338DBD02C589500BED77BB1D1D33A5C687DB23525BCAB6BE09951E1AAE3C07E3EEE41619259E85F9CFFDC21CC6C7F7DBCCA9FAAD5493F12F2D1D41F9289F0AFCDEDF37125B0818C23D96F4CE5AFE8D5B9B1CCB6B38434322F3EF8340E9AB093A649681A86EDDB18C675308AD0F2E02416B0655DF34DFBEB68A3A310038F1BCF885EED37F8446DF0904AC4665B0F3FE3E1E65577C644BD990230A1C78CC4AE1A7F003F332F776630F9411B170616C7AE663B3A8D53C25D0A1E01B55FC6A83B03F51B6B54D65E9FE5F7CBA4033DEF8EB3CE48CC8397D509BD2AF654F609F114C5F13D24425F9F78FA4CAA7A97276F192285F4A7939538CAFCA1FFFABEB16503DBDAEA1F62C51C61777F3C6D40B9E963D6C19E99A3108EFF30FEFAEED7D93FC82D90EE112A0D7736FB49B9B5916593150B6AC196E1894662D99481EC9943C0BD5BE0C7BA215885DDF756157EBAA28DCCEA8FB4245E710AE8B46075442DDD9F682917DB012566CD3C74FF3F73EC0C4C64256C1A80AB46AAB5F8',
(int) 8 => 'X-Robots-Tag: noindex',
(int) 9 => 'X-Frame-Options: SAMEORIGIN',
(int) 10 => 'X-XSS-Protection: 1; mode=block',
(int) 11 => 'X-Content-Type-Options: nosniff',
(int) 12 => 'Date: Wed, 20 Jan 2021 09:46:52 GMT',
(int) 13 => 'Connection: close',
(int) 14 => 'Content-Length: 59'
]
file_get_contents - [internal], line ??
App\Model\Table\AnimalsTable::retrieveSheltermatePhotosForAnimal() - APP/Model/Table/AnimalsTable.php, line 588
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 765
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Warning (2): Invalid argument supplied for foreach() [APP/Model/Table/AnimalsTable.php, line 768]Code Context $pCount = 0;
foreach ( $photos["Data"] as $image ) {
$authToken = '859616801D8E1F02612981A9114EC7E0C394151070DE268311F05DF724CC8E4225AEE7689AAC23A197F4BF639D651E69AB0D68CCC50ACA1BE84DB6AB52A236B60D1F10CC7B71D2B3AC3D73AF46FE85DD3813B5630A9BF364F052BEA4C5A8A4007804D2D62E2DE5BD899E2607F12DADF177C8AB0EC099114B705C24F5565B099C4C2666A199F5BD42E6A44D38AFAACEB1C3FE6C1A0A246992A4FF4CF303E6B0FDD2491960A5C78EA015148E9824ACE26C37376A0ABE10874FDC08B71BC766B1BE3DE8C350FAAAF33189F61AF7985A2A0E7190469FD47EB68778A60DA2859EED5596D14D91F387B16D8134F44737868FC234ECA30A437C460B9B5A13351068BBA87BBA0373693C05AA5E82DA8B20FD8FEC6FC6DC840B5A4930A834A7FE8A75607C4140A6F06B17E648B5AFD9DE313903F7D91A308D353DAC440D5CC52BD3A7ED1D89B42DD5C72D95AE45DCB59E86FA77B3E8D449E11308C28DBF976A16546B4B62D8D9A55BBEA225666DC7494F22D2293BBD89B0402BC050B3D18573D0FF6F8756BEEC948187ABC0426F1919E82C23E5671DFCE6D7013B450AE4107009A1CACA06EA43A9DEEBC94424F5DAFBD650FF669F26D56ED9219D293902CFD2CAA85E1BF4FFDB0D622229AD76152C39CF6B98810EA26363ACF7CB2FD56F08074B5D19433EF94941A7'
$animalArray = [
'Name' => 'Curtis',
'DateOfBirthUtc' => '2020-09-18T13:00:00Z',
'License' => [
'Tag' => null,
'Issuer' => null
],
'EuthanasiaReason' => null,
'SecondaryEuthanasiaReason' => null,
'EuthanasiaType' => null,
'IsApprovedForEuthanasia' => false,
'IsOwnerPresentForEuthanasia' => false,
'DoNotEuthanise' => false,
'DoNotEuthaniseReason' => null,
'EuthanasiaAuthorisedBy' => null,
'OtherEuthanasiaReason' => null,
'AdoptionFee' => null,
'AdoptionSummary' => '',
'Age' => [
'IsApproximate' => true,
'Months' => (int) 4,
'Weeks' => (int) 0,
'Years' => (int) 0,
'AgeGroup' => null
],
'Breed' => [
'Primary' => [
'Name' => 'Domestic Medium Hair',
'Uri' => '/api/v2/animal/species/breed/32',
'Id' => (int) 32
],
'PrimarySpecies' => [
'Uri' => '/api/v2/animal/species/1863',
'Id' => (int) 1863
],
'Secondary' => null,
'SecondarySpecies' => null,
'IsCrossBreed' => true
],
'BreederRegistrationNumber' => null,
'ContactLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Features' => [
'CoatLength' => null,
'PrimaryColour' => 'Ginger',
'SecondaryColour' => null,
'CoatType' => null,
'EarType' => null,
'TailType' => null,
'EyeColour' => null
],
'Identification' => [
'HasMicrochip' => false,
'PrimaryMicrochipNumber' => null,
'PrimaryMicrochipBrand' => null,
'PrimaryMicrochipImplantDateUtc' => null,
'SecondaryMicrochipNumber' => null,
'SecondaryMicrochipBrand' => null,
'SecondaryMicrochipImplantDateUtc' => null,
'OtherIdentification' => null,
'AcoNumber' => '1690767-60637-157',
'TagColour' => null,
'CollarType' => null,
'Barcode' => null,
'ShelterTag' => null,
'CustomTag' => null,
'CollarColour' => null,
'OldDatabaseNumber' => null
],
'Intake' => [
'DateUtc' => '2021-01-19T01:51:00Z',
'Region' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Source' => [
'Name' => 'Council',
'Uri' => '/api/v2/animal/source/13',
'Id' => (int) 13
],
'ExtendedDetails' => [
'Uri' => '/api/v2/animal/sourcehistory/59997',
'Id' => (int) 59997
],
'Received' => null,
'SurrenderReason' => null,
'BehaviourCondition' => null,
'EmergencyBoardingReason' => null
],
'LastUpdatedUtc' => '2021-01-20T00:08:05.287Z',
'Location' => [
'PhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
],
'Kennel' => [
'Name' => '46',
'Uri' => '/api/v2/shelter/kennel/44639',
'Id' => (int) 44639
],
'Shelter' => [
'Name' => 'Lost Cats',
'Uri' => '/api/v2/shelter/135',
'Id' => (int) 135
],
'MostRecentPhysicalLocation' => [
'Name' => 'Geelong Animal Welfare Society',
'Uri' => '/api/v2/location/physicallocation/53',
'Id' => (int) 53
]
],
'Medical' => [
'IsDeclawed' => false,
'IsVaccinated' => true,
'SpayedNeutered' => 'No',
'PreferredFood' => null,
'PreviousMedicalDetails' => null
],
'Owner' => [
'Name' => 'City Of Greater Geelong ',
'Uri' => '/api/v2/person/5388',
'Id' => (int) 5388
],
'Pattern' => null,
'Sex' => [
'Name' => 'Male',
'Uri' => '/api/v2/animal/gender/1',
'Id' => (int) 1
],
'Size' => null,
'Status' => [
'DateUtc' => '2021-01-19T01:51:00Z',
'Name' => 'Stray Hold',
'Uri' => '/api/v2/animal/status/72',
'Id' => (int) 72
],
'SubStatus' => null,
'SubStatuses' => [],
'Type' => [
'Name' => 'Kitten',
'Uri' => '/api/v2/animal/species/type/15',
'Id' => (int) 15
],
'AvailableForAdoptionDateUtc' => '1900-01-01T00:00:00Z',
'DateOfWeighingUtc' => '2021-01-19T04:22:00Z',
'CurrentRabiesVaccination' => null,
'Litters' => null,
'RabiesTag' => null,
'Origin' => null,
'DangerousAnimalInformation' => null,
'LostFoundAddress' => [
'Country' => [
'Name' => 'Australia',
'Uri' => '/api/v2/location/country/3',
'Id' => (int) 3
],
'Jurisdiction' => [
'Name' => 'City Of Greater Geelong',
'Uri' => '/api/v2/jurisdiction/132',
'Id' => (int) 132
],
'State' => [
'Abbreviation' => 'VIC',
'Name' => 'Victoria',
'Uri' => '/api/v2/location/state/56',
'Id' => (int) 56
],
'StreetType' => [
'Name' => 'Court',
'Uri' => '/api/v2/location/streetType/4',
'Id' => (int) 4
],
'Suburb' => [
'Name' => 'Lara',
'Uri' => '/api/v2/location/suburb/91894',
'Id' => (int) 91894
],
'DeliveryType' => null,
'PrintableString' => 'Peck Court, Caught in trap by MOP, Lara, VIC, 3212, Australia',
'PrintableStreetAddressString' => 'Peck Court, Lara, VIC, 3212, Australia',
'CrossStreet' => '',
'DirectionOne' => '',
'DirectionTwo' => '',
'ExtraAddressDetails' => 'Caught in trap by MOP',
'Postcode' => '3212',
'PostcodeSuffix' => null,
'StreetName' => 'Peck',
'StreetNumber' => '',
'UnitNumber' => '',
'DeliveryNumber' => '',
'IsApiValidated' => false,
'Id' => (int) 286898
],
'DateFoundUtc' => '2021-01-18T13:00:00Z',
'DateLostUtc' => null,
'IsDeleted' => false,
'Icons' => null,
'Weight' => '1.6 kg',
'MetaData' => [],
'RelatedAnimals' => null,
'Behaviour' => null,
'Media' => null,
'DistinguishingFeatures' => null,
'DueDateOutUtc' => '2021-01-26T13:00:00Z',
'Id' => (int) 52959
]
$ret = ''
$newRecord = false
$rightNow = object(Cake\I18n\Time) {
'time' => '2021-01-20T09:46:52+00:00',
'timezone' => 'UTC',
'fixedNowTime' => false
}
$animal = object(App\Model\Entity\Animal) {
'id' => (int) 52959,
'name' => 'Curtis',
'photo_url' => 'http://gaws.sheltermate.com/storage/image/05b157158237491e8564f8cd559b2442-1611021568-1611021580-jpg/1024---n',
'sex_id' => (int) 1,
'status_id' => (int) 72,
'type_id' => (int) 15,
'pattern_id' => null,
'json_data' => '{"Name":"Curtis","DateOfBirthUtc":"2020-09-18T13:00:00Z","License":{"Tag":null,"Issuer":null},"EuthanasiaReason":null,"SecondaryEuthanasiaReason":null,"EuthanasiaType":null,"IsApprovedForEuthanasia":false,"IsOwnerPresentForEuthanasia":false,"DoNotEuthanise":false,"DoNotEuthaniseReason":null,"EuthanasiaAuthorisedBy":null,"OtherEuthanasiaReason":null,"AdoptionFee":null,"AdoptionSummary":"","Age":{"IsApproximate":true,"Months":4,"Weeks":0,"Years":0,"AgeGroup":null},"Breed":{"Primary":{"Name":"Domestic Medium Hair","Uri":"\/api\/v2\/animal\/species\/breed\/32","Id":32},"PrimarySpecies":{"Uri":"\/api\/v2\/animal\/species\/1863","Id":1863},"Secondary":null,"SecondarySpecies":null,"IsCrossBreed":true},"BreederRegistrationNumber":null,"ContactLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Features":{"CoatLength":null,"PrimaryColour":"Ginger","SecondaryColour":null,"CoatType":null,"EarType":null,"TailType":null,"EyeColour":null},"Identification":{"HasMicrochip":false,"PrimaryMicrochipNumber":null,"PrimaryMicrochipBrand":null,"PrimaryMicrochipImplantDateUtc":null,"SecondaryMicrochipNumber":null,"SecondaryMicrochipBrand":null,"SecondaryMicrochipImplantDateUtc":null,"OtherIdentification":null,"AcoNumber":"1690767-60637-157","TagColour":null,"CollarType":null,"Barcode":null,"ShelterTag":null,"CustomTag":null,"CollarColour":null,"OldDatabaseNumber":null},"Intake":{"DateUtc":"2021-01-19T01:51:00Z","Region":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Source":{"Name":"Council","Uri":"\/api\/v2\/animal\/source\/13","Id":13},"ExtendedDetails":{"Uri":"\/api\/v2\/animal\/sourcehistory\/59997","Id":59997},"Received":null,"SurrenderReason":null,"BehaviourCondition":null,"EmergencyBoardingReason":null},"LastUpdatedUtc":"2021-01-20T00:08:05.287Z","Location":{"PhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53},"Kennel":{"Name":"46","Uri":"\/api\/v2\/shelter\/kennel\/44639","Id":44639},"Shelter":{"Name":"Lost Cats","Uri":"\/api\/v2\/shelter\/135","Id":135},"MostRecentPhysicalLocation":{"Name":"Geelong Animal Welfare Society","Uri":"\/api\/v2\/location\/physicallocation\/53","Id":53}},"Medical":{"IsDeclawed":false,"IsVaccinated":true,"SpayedNeutered":"No","PreferredFood":null,"PreviousMedicalDetails":null},"Owner":{"Name":"City Of Greater Geelong ","Uri":"\/api\/v2\/person\/5388","Id":5388},"Pattern":null,"Sex":{"Name":"Male","Uri":"\/api\/v2\/animal\/gender\/1","Id":1},"Size":null,"Status":{"DateUtc":"2021-01-19T01:51:00Z","Name":"Stray Hold","Uri":"\/api\/v2\/animal\/status\/72","Id":72},"SubStatus":null,"SubStatuses":[],"Type":{"Name":"Kitten","Uri":"\/api\/v2\/animal\/species\/type\/15","Id":15},"AvailableForAdoptionDateUtc":"1900-01-01T00:00:00Z","DateOfWeighingUtc":"2021-01-19T04:22:00Z","CurrentRabiesVaccination":null,"Litters":null,"RabiesTag":null,"Origin":null,"DangerousAnimalInformation":null,"LostFoundAddress":{"Country":{"Name":"Australia","Uri":"\/api\/v2\/location\/country\/3","Id":3},"Jurisdiction":{"Name":"City Of Greater Geelong","Uri":"\/api\/v2\/jurisdiction\/132","Id":132},"State":{"Abbreviation":"VIC","Name":"Victoria","Uri":"\/api\/v2\/location\/state\/56","Id":56},"StreetType":{"Name":"Court","Uri":"\/api\/v2\/location\/streetType\/4","Id":4},"Suburb":{"Name":"Lara","Uri":"\/api\/v2\/location\/suburb\/91894","Id":91894},"DeliveryType":null,"PrintableString":"Peck Court, Caught in trap by MOP, Lara, VIC, 3212, Australia","PrintableStreetAddressString":"Peck Court, Lara, VIC, 3212, Australia","CrossStreet":"","DirectionOne":"","DirectionTwo":"","ExtraAddressDetails":"Caught in trap by MOP","Postcode":"3212","PostcodeSuffix":null,"StreetName":"Peck","StreetNumber":"","UnitNumber":"","DeliveryNumber":"","IsApiValidated":false,"Id":286898},"DateFoundUtc":"2021-01-18T13:00:00Z","DateLostUtc":null,"IsDeleted":false,"Icons":null,"Weight":"1.6 kg","MetaData":[],"RelatedAnimals":null,"Behaviour":null,"Media":null,"DistinguishingFeatures":null,"DueDateOutUtc":"2021-01-26T13:00:00Z","Id":52959}',
'date_created' => null,
'date_modified' => '4',
'[new]' => false,
'[accessible]' => [
'*' => true,
'id' => false
],
'[dirty]' => [
'date_modified' => true,
'name' => true,
'json_data' => true
],
'[original]' => [
'date_modified' => null
],
'[virtual]' => [],
'[errors]' => [],
'[invalid]' => [],
'[repository]' => 'Animals'
}
$photos = null
$pCount = (int) 0
App\Model\Table\AnimalsTable::updateOrStoreAnimal() - APP/Model/Table/AnimalsTable.php, line 768
App\Model\Table\AnimalsTable::retrieveSheltermateData() - APP/Model/Table/AnimalsTable.php, line 644
App\Controller\AnimalsController::getAnimalData() - APP/Controller/AnimalsController.php, line 164
Cake\Controller\Controller::invokeAction() - CORE/src/Controller/Controller.php, line 440
Cake\Http\ActionDispatcher::_invoke() - CORE/src/Http/ActionDispatcher.php, line 119
Cake\Http\ActionDispatcher::dispatch() - CORE/src/Http/ActionDispatcher.php, line 93
Cake\Http\BaseApplication::__invoke() - CORE/src/Http/BaseApplication.php, line 78
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\RoutingMiddleware::__invoke() - CORE/src/Routing/Middleware/RoutingMiddleware.php, line 59
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Routing\Middleware\AssetMiddleware::__invoke() - CORE/src/Routing/Middleware/AssetMiddleware.php, line 88
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Error\Middleware\ErrorHandlerMiddleware::__invoke() - CORE/src/Error/Middleware/ErrorHandlerMiddleware.php, line 92
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
DebugKit\Middleware\DebugKitMiddleware::__invoke() - ROOT/vendor/cakephp/debug_kit/src/Middleware/DebugKitMiddleware.php, line 52
Cake\Http\Runner::__invoke() - CORE/src/Http/Runner.php, line 65
Cake\Http\Runner::run() - CORE/src/Http/Runner.php, line 51
Warning (512): Unable to emit headers. Headers sent in file=/home/archivegaws/public_html/shelter/vendor/cakephp/cakephp/src/Error/Debugger.php line=822 [CORE/src/Http/ResponseEmitter.php, line 48]Code Context $message = "Unable to emit headers. Headers sent in file=$file line=$line";
if (Configure::read('debug')) {
trigger_error($message, E_USER_WARNING);
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$maxBufferLength = (int) 8192
$file = '/home/archivegaws/public_html/shelter/vendor/cakephp/cakephp/src/Error/Debugger.php'
$line = (int) 822
$message = 'Unable to emit headers. Headers sent in file=/home/archivegaws/public_html/shelter/vendor/cakephp/cakephp/src/Error/Debugger.php line=822'
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - ROOT/webroot/index.php, line 37
Warning (2): Cannot modify header information - headers already sent by (output started at /home/archivegaws/public_html/shelter/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 148]Code Context $response->getProtocolVersion(),
$response->getStatusCode(),
($reasonPhrase ? ' ' . $reasonPhrase : '')
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$reasonPhrase = 'OK'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - ROOT/webroot/index.php, line 37
Warning (2): Cannot modify header information - headers already sent by (output started at /home/archivegaws/public_html/shelter/vendor/cakephp/cakephp/src/Error/Debugger.php:822) [CORE/src/Http/ResponseEmitter.php, line 181]Code Context $name,
$value
), $first);
$response = object(Cake\Http\Response) {
'status' => (int) 200,
'contentType' => 'text/html',
'headers' => [
'Content-Type' => [
[maximum depth reached]
]
],
'file' => null,
'fileRange' => [],
'cookies' => [],
'cacheDirectives' => [],
'body' => ''
}
$cookies = []
$values = [
(int) 0 => 'text/html; charset=UTF-8'
]
$name = 'Content-Type'
$first = true
$value = 'text/html; charset=UTF-8'
header - [internal], line ??
Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181
Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55
Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 105
[main] - ROOT/webroot/index.php, line 37
GAWS