PHP Fatal Error



A fatal error has occured during the attempt to resize the "https://gesundamsonnberg.at/wp-content/uploads/2019/01/Foto_Alex_Kremer_GZ_Portrait.jpg" image.

Possible causes and their solutions (in the order of occurence) are:

  1. Your webserver has low PHP memory limit.
    Locate "php.ini" file on your webserver and change "memory_limit" variable to at least "128MB" or ideally "256MB". If you do not know how this works, ask your hosting company to do this for you.

  2. Your webserver does not have the "GD" PHP extension installed or is using a wrong version that is incompatible with the version of PHP that your webserver is running. It is a necessary PHP extension that allows image resizing.
    Ask your hosting company to install the "GD" PHP extension on your webserver.

  3. The image that you have uploaded and tried to resize is too large. This can be stressful on your webserver.
    Reupload the image with smaller dimensions and size. We don't recommend uploading images larger than 2000x2000px and with size no more than 2MB.

  4. You are resizing the image to a very large resolution like 2000x2000px and larger. This can be stressful on your webserver.
    Do not resize images to resolutions larger than 2000x2000px.

  5. The /wp-content/uploads/freshizer/ directory does not exist on your webserver.
    Using your favorite FTP program, manually create this directory and set it's permissions to 0644.

  6. Your webserver has (almost) no disk space left.
    Double-check if there is enough free space left on your webserver disk.



Error details:

array(4) {
  ["type"]=>
  int(1)
  ["message"]=>
  string(14915) "Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php:116
Stack trace:
#0 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(116): fclose()
#1 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(81): blFile->closeFile()
#2 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(860): blFile->readAllAndClose()
#3 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(962): blInputStreamFile->readAll()
#4 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(787): blInputStreamAdapteour->readAll()
#5 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1196): blImgDownloader->downloadImage()
#6 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1093): fImgDeliverer->_deliveryFromRemote()
#7 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2308): fImgDeliverer->deliveryImage()
#8 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer_facade.php(42): fImg->_resize()
#9 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2242): fImg_facade->_resize()
#10 /var/www/clients/client7/web36/web/wp-content/plugins/ark-core/builder/blocks/class.ffBlImage.php(289): fImg::resize()
#11 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderBlock.php(232): ffBlImage->_render()
#12 /var/www/clients/client7/web36/web/wp-content/plugins/ark-core/builder/elements/Team/Team8/class.ffElTeam8.php(119): ffThemeBuilderBlock->render()
#13 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElTeam8->_render()
#14 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#15 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#16 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#17 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#18 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#19 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#20 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#21 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#22 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode()
#23 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render()
#24 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#25 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#26 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#27 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#28 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#29 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#30 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#31 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#32 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElSection.php(346): ffThemeBuilderElement->_doShortcode()
#33 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElSection->_render()
#34 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#35 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#36 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#37 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#38 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#39 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#40 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#41 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#42 /var/www/clients/client7/web36/web/wp-content/plugins/ark-core/builder/elements/Loop/PostContent/class.ffElPostContent.php(75): ffThemeBuilderElement->_doShortcode()
#43 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElPostContent->_render()
#44 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#45 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#46 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#47 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#48 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#49 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#50 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#51 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#52 /var/www/clients/client7/web36/web/wp-content/plugins/ark-core/builder/elements/Loop/PostWrapper/class.ffElPostWrapper.php(44): ffThemeBuilderElement->_doShortcode()
#53 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElPostWrapper->_render()
#54 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#55 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#56 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#57 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#58 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#59 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#60 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#61 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#62 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode()
#63 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render()
#64 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#65 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#66 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#67 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#68 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#69 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#70 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#71 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#72 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElSection.php(346): ffThemeBuilderElement->_doShortcode()
#73 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElSection->_render()
#74 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#75 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#76 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#77 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#78 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#79 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#80 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#81 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(82): ffThemeBuilderShortcodesWalker->doShortcode()
#82 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(75): ffThemeBuilderShortcodesWalker->get()
#83 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderManager.php(288): ffThemeBuilderShortcodesWalker->render()
#84 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/class.ffSitePreferencesManager.php(124): ffThemeBuilderManager->render()
#85 /var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/actTemplateInclude.php(5): ffSitePreferencesManager->actTemplateRedirect()
#86 /var/www/clients/client7/web36/web/wp-includes/template-loader.php(106): include('...')
#87 /var/www/clients/client7/web36/web/wp-blog-header.php(19): require_once('...')
#88 /var/www/clients/client7/web36/web/index.php(17): require('...')
#89 {main}
  thrown"
  ["file"]=>
  string(110) "/var/www/clients/client7/web36/web/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php"
  ["line"]=>
  int(116)
}