Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagick Image library handler return array instead of boolean #2029

Closed
keulu-ing opened this issue May 28, 2019 · 0 comments · Fixed by #2151
Closed

Imagick Image library handler return array instead of boolean #2029

keulu-ing opened this issue May 28, 2019 · 0 comments · Fixed by #2151

Comments

@keulu-ing
Copy link

Describe the bug
Imagick Image library handler return array instead of boolean.

CodeIgniter 4 version
Beta3

Affected module(s)
Imagick Image library handler

Expected behavior, and steps to reproduce if appropriate
a boolean true or false

Context

  • OS: [e.g. lmde3]
  • Web server [e.g. nginx]
  • PHP version [e.g. 7.2.13]

stackTrace

{
    "title": "TypeError",
    "type": "TypeError",
    "code": 500,
    "message": "Return value of CodeIgniter\\Images\\Handlers\\ImageMagickHandler::save() must be of the type boolean, array returned",
    "file": "/var/www/imprimerie-europeenne.com/api/system/Images/Handlers/ImageMagickHandler.php",
    "line": 307,
    "trace": [
        {
            "file": "/var/www/imprimerie-europeenne.com/api/app/API/v1/OrdersFiles.php",
            "line": 165,
            "function": "save",
            "class": "CodeIgniter\\Images\\Handlers\\ImageMagickHandler",
            "type": "->",
            "args": [
                "/var/www/imprimerie-europeenne.com/api/writable/accounts_files/fc76026770156673420acf706f994f4b/196546/small/affiche-corriger-c-est-abdiquer.jpg"
            ]
        },
        {
            "file": "/var/www/imprimerie-europeenne.com/api/system/CodeIgniter.php",
            "line": 838,
            "function": "create",
            "class": "App\\API\\v1\\OrdersFiles",
            "type": "->",
            "args": []
        },
        {
            "file": "/var/www/imprimerie-europeenne.com/api/system/CodeIgniter.php",
            "line": 335,
            "function": "runController",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->",
            "args": [
                {}
            ]
        },
        {
            "file": "/var/www/imprimerie-europeenne.com/api/system/CodeIgniter.php",
            "line": 245,
            "function": "handleRequest",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->",
            "args": [
                null,
                {
                    "handler": "file",
                    "backupHandler": "dummy",
                    "storePath": "/var/www/imprimerie-europeenne.com/api/writable/cache/",
                    "cacheQueryString": false,
                    "prefix": "",
                    "memcached": {
                        "host": "127.0.0.1",
                        "port": 11211,
                        "weight": 1,
                        "raw": false
                    },
                    "redis": {
                        "host": "127.0.0.1",
                        "password": null,
                        "port": 6379,
                        "timeout": 0,
                        "database": 0
                    },
                    "validHandlers": {
                        "dummy": "CodeIgniter\\Cache\\Handlers\\DummyHandler",
                        "file": "CodeIgniter\\Cache\\Handlers\\FileHandler",
                        "memcached": "CodeIgniter\\Cache\\Handlers\\MemcachedHandler",
                        "predis": "CodeIgniter\\Cache\\Handlers\\PredisHandler",
                        "redis": "CodeIgniter\\Cache\\Handlers\\RedisHandler",
                        "wincache": "CodeIgniter\\Cache\\Handlers\\WincacheHandler"
                    }
                },
                false
            ]
        },
        {
            "file": "/var/www/imprimerie-europeenne.com/api/public/index.php",
            "line": 45,
            "function": "run",
            "class": "CodeIgniter\\CodeIgniter",
            "type": "->",
            "args": []
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant