Skip to content

BUG: Slim application error for metadata images #72

@garybuhrmaster

Description

@garybuhrmaster

When trying to obtain an image using a relative uri (which would usually result in a redirect to AWS) using the URL

https://json.schedulesdirect.org/20141201/image/assets/p12906584_ce_h5_aa.jpg

one receives a Slim application error:

Slim Application Error
The application could not run because of the following error:

Details

Type: ErrorException
Code: 2
Message: Invalid argument supplied for foreach()
File: /var/www/html/functions/func.20141201.php
Line: 2642
Trace

#0 /var/www/html/functions/func.20141201.php(2642): Slim\Slim::handleErrors(2, 'Invalid argumen...', '/var/www/html/f...', 2642, Array)
#1 /var/www/html/index.php(941): pushImagesToAWS('assets/p1290658...')
#2 [internal function]: {closure}(Array)
#3 /var/www/html/vendor/slim/slim/Slim/Route.php(468): call_user_func_array(Object(Closure), Array)
#4 /var/www/html/vendor/slim/slim/Slim/Slim.php(1338): Slim\Route->dispatch()
#5 /var/www/html/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#6 /var/www/html/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#7 /var/www/html/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#8 /var/www/html/vendor/slim/slim/Slim/Slim.php(1283): Slim\Middleware\PrettyExceptions->call()
#9 /var/www/html/index.php(1177): Slim\Slim->run()
#10 {main}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions