Warning: Trying to access array offset on value of type null in /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php on line 31

Warning: Undefined array key "sizes" in /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php on line 33

Fatal error: Uncaught Error: array_keys(): Argument #1 ($array) must be of type array, null given
in /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php on line 33

Call stack:

  1. array_keys()
    app/themes/megalab/src/ViewModel/Archive/Components/Author.php:33
  2. THEME\V\A\C\Author::takeProdAvatarImage()
    app/themes/megalab/src/ViewModel/Archive/Components/Author.php:21
  3. THEME\V\A\C\Author::getData()
    app/themes/megalab/src/ViewModel/Archive.php:173
  4. THEME\ViewModel\Archive::setComponents()
    app/themes/megalab/src/ViewModel/Archive.php:48
  5. THEME\ViewModel\Archive::__construct()
    app/themes/megalab/src/ViewModel/ArchiveAuthor.php:20
  6. THEME\ViewModel\ArchiveAuthor::__construct()
    app/themes/megalab/author.php:8
  7. include()
    wp-includes/template-loader.php:106
  8. require_once()
    wp-blog-header.php:19
  9. require()
    index.php:6

Query Monitor


Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php:33 Stack trace: #0 /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php(33): array_keys() #1 /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php(21): THEME\ViewModel\Archive\Components\Author->takeProdAvatarImage() #2 /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive.php(173): THEME\ViewModel\Archive\Components\Author->getData() #3 /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive.php(48): THEME\ViewModel\Archive->setComponents() #4 /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/ArchiveAuthor.php(20): THEME\ViewModel\Archive->__construct() #5 /data2/websites/megalab/web/app/themes/megalab/author.php(8): THEME\ViewModel\ArchiveAuthor->__construct() #6 /data2/websites/megalab/web/wp/wp-includes/template-loader.php(106): include('...') #7 /data2/websites/megalab/web/wp/wp-blog-header.php(19): require_once('...') #8 /data2/websites/megalab/web/index.php(6): require('...') #9 {main} thrown in /data2/websites/megalab/web/app/themes/megalab/src/ViewModel/Archive/Components/Author.php on line 33