Prison Mission

Help, Encourage and Support



PHP Fatal Error



A fatal error has occured during the attempt to resize the "https://xn--42c2bf2f.com/wp-content/uploads/2021/01/พันธกิจเรือนจำ-011.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(9366) "Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php:116
Stack trace:
#0 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(116): fclose()
#1 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(81): blFile->closeFile()
#2 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(860): blFile->readAllAndClose()
#3 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(962): blInputStreamFile->readAll()
#4 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(787): blInputStreamAdapteour->readAll()
#5 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1196): blImgDownloader->downloadImage()
#6 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1093): fImgDeliverer->_deliveryFromRemote()
#7 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2308): fImgDeliverer->deliveryImage()
#8 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer_facade.php(42): fImg->_resize()
#9 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2242): fImg_facade->_resize()
#10 /home/vtmco.org/public_html/wp-content/plugins/ark-core/builder/blocks/class.ffBlImage.php(289): fImg::resize()
#11 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderBlock.php(232): ffBlImage->_render()
#12 /home/vtmco.org/public_html/wp-content/plugins/ark-core/builder/elements/BasicElements/Image/class.ffElImage.php(56): ffThemeBuilderBlock->render()
#13 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElImage->_render()
#14 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#15 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#16 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#17 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#18 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#19 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#20 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#21 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(345): ffThemeBuilderShortcodesWalker->doShortcode()
#22 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#23 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#24 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#25 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#26 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(345): ffThemeBuilderShortcodesWalker->doShortcode()
#27 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#28 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#29 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#30 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#31 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#32 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode()
#33 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render()
#34 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#35 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#36 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#37 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#38 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#39 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#40 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#41 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode()
#42 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElSection.php(346): ffThemeBuilderElement->_doShortcode()
#43 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElSection->_render()
#44 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement()
#45 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching()
#46 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render()
#47 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode()
#48 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback()
#49 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback()
#50 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback()
#51 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(82): ffThemeBuilderShortcodesWalker->doShortcode()
#52 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(75): ffThemeBuilderShortcodesWalker->get()
#53 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderManager.php(288): ffThemeBuilderShortcodesWalker->render()
#54 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/class.ffSitePreferencesManager.php(124): ffThemeBuilderManager->render()
#55 /home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/actTemplateInclude.php(5): ffSitePreferencesManager->actTemplateRedirect()
#56 /home/vtmco.org/public_html/wp-includes/template-loader.php(106): include('...')
#57 /home/vtmco.org/public_html/wp-blog-header.php(19): require_once('...')
#58 /home/vtmco.org/public_html/index.php(17): require('...')
#59 {main}
  thrown"
  ["file"]=>
  string(103) "/home/vtmco.org/public_html/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php"
  ["line"]=>
  int(116)
}