• Resolved dkshaw

    (@dkshaw)


    Having a hard time trying to figure out this fatal error. This happens when I upload a new image using the media library page. Any ideas?

    Fatal Error
    
    The theme has encountered a problem that it cannot recover from. Please use the following information to try to resolve the problem.
    
    Error Code:	php_code_error:1:XXXXXX/wp-content/plugins/wp-retina-2x/wr2x_vt_resize.php:38:Cannot use object of type WP_Error as array
    Message:	A fatal code error occurred.
    
    If you are unable to fix this problem, please copy all the text on this screen and send it to [email protected].
    
    Debug Data:
    Array
    (
        [0] => Array
            (
                [file] => xxxx/wp-content/plugins/tabber-widget/lib/classes/it-error.php
                [line] => 123
                [function] => fatal
                [class] => ITError
                [type] => ::
                [args] => Array
                    (
                        [0] => php_code_error:1:xxxx/wp-content/plugins/wp-retina-2x/wr2x_vt_resize.php:38:Cannot use object of type WP_Error as array
                        [1] => A fatal code error occurred.
                    )
    
            )
    
        [1] => Array
            (
                [file] => xxxx/wp-content/plugins/tabber-widget/lib/classes/it-error.php
                [line] => 150
                [function] => handle_error
                [class] => ITError
                [type] => ::
                [args] => Array
                    (
                        [0] => 1
                        [1] => Cannot use object of type WP_Error as array
                        [2] => xxxx/wp-content/plugins/wp-retina-2x/wr2x_vt_resize.php
                        [3] => 38
                    )
    
            )
    
        [2] => Array
            (
                [function] => it_error_shutdown
                [args] => Array
                    (
                    )
    
            )
    
    )

    I saw this post which sounds like the same error I am getting. The plugin tells me that I need to upload a file larger than 2048 x 2048. I tried it with a 4MB file and that is when I get this issue.

    https://ww.wp.xz.cn/plugins/wp-retina-2x/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    It is weird… the WP internal function breaks. It might be because the file is too big. Is this the only error you get? What is in your PHP error logs?

    Thread Starter dkshaw

    (@dkshaw)

    Yeah that’s the only error. At this point I’ve managed to just reduce the size to under 2MB and that works fine. There isn’t really any need for me to upload a 4MB file at this point so I am ok with this issue for now. Thanks for your reply.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Okay, so that is your PHP settings. You can try to change them but you really need access to the server configuration – or you can ask your hosting service.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error: Cannot use object of type WP_Error as array’ is closed to new replies.