![](https://kingstradeleague.pro/wp-content/uploads/2023/06/ban1.jpg)
PHP Fatal Error
A fatal error has occured during the attempt to resize the "https://kingstradeleague.pro/wp-content/uploads/2023/06/ban2.jpg" image.
Possible causes and their solutions (in the order of occurence) are:
-
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.
-
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.
-
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.
-
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.
-
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.
-
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(17648) "Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, bool given in /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php:116 Stack trace: #0 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(116): fclose() #1 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(81): blFile->closeFile() #2 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(860): blFile->readAllAndClose() #3 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(962): blInputStreamFile->readAll() #4 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(787): blInputStreamAdapteour->readAll() #5 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1196): blImgDownloader->downloadImage() #6 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(1093): fImgDeliverer->_deliveryFromRemote() #7 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2308): fImgDeliverer->deliveryImage() #8 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer_facade.php(42): fImg->_resize() #9 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php(2242): fImg_facade->_resize() #10 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/ark-core/builder/blocks/class.ffBlImage.php(289): fImg::resize() #11 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderBlock.php(232): ffBlImage->_render() #12 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/ark-core/builder/elements/BasicElements/ImageSlider/class.ffElImageSlider.php(129): ffThemeBuilderBlock->render() #13 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElImageSlider->_render() #14 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #15 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #16 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #17 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #18 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #19 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #20 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #21 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #22 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode() #23 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render() #24 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #25 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #26 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #27 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #28 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #29 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #30 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #31 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #32 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElRow.php(285): ffThemeBuilderElement->_doShortcode() #33 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElRow->_render() #34 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #35 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #36 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #37 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #38 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #39 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #40 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #41 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #42 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode() #43 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render() #44 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #45 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #46 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #47 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #48 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #49 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #50 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #51 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #52 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElRow.php(285): ffThemeBuilderElement->_doShortcode() #53 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElRow->_render() #54 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #55 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #56 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #57 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #58 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #59 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #60 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #61 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #62 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElColumn.php(498): ffThemeBuilderElement->_doShortcode() #63 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElColumn->_render() #64 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #65 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #66 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #67 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #68 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #69 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #70 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #71 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #72 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/elements/class.ffElSection.php(346): ffThemeBuilderElement->_doShortcode() #73 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElSection->_render() #74 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #75 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #76 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #77 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #78 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #79 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #80 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #81 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(698): ffThemeBuilderShortcodesWalker->doShortcode() #82 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/ark-core/builder/elements/Loop/PostContent/class.ffElPostContent.php(75): ffThemeBuilderElement->_doShortcode() #83 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(473): ffElPostContent->_render() #84 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(422): ffThemeBuilderElement->_renderJustTheElement() #85 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderElement.php(549): ffThemeBuilderElement->_renderElementWithCaching() #86 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(365): ffThemeBuilderElement->render() #87 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(246): ffThemeBuilderShortcodesWalker->_printShortcode() #88 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(224): ffThemeBuilderShortcodesWalker->shortcodesCallback() #89 [internal function]: ffThemeBuilderShortcodesWalker->_ourShortcodeCalback() #90 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(166): preg_replace_callback() #91 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(82): ffThemeBuilderShortcodesWalker->doShortcode() #92 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderShortcodesWalker.php(75): ffThemeBuilderShortcodesWalker->get() #93 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/builder/class.ffThemeBuilderManager.php(288): ffThemeBuilderShortcodesWalker->render() #94 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/class.ffSitePreferencesManager.php(124): ffThemeBuilderManager->render() #95 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/themes/sitePreferences/actTemplateInclude.php(5): ffSitePreferencesManager->actTemplateRedirect() #96 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-includes/template-loader.php(106): include('...') #97 /var/www/vhosts/kingstradeleague.pro/httpdocs/wp-blog-header.php(19): require_once('...') #98 /var/www/vhosts/kingstradeleague.pro/httpdocs/index.php(17): require('...') #99 {main} thrown" ["file"]=> string(121) "/var/www/vhosts/kingstradeleague.pro/httpdocs/wp-content/plugins/fresh-framework/framework/extern/freshizer/freshizer.php" ["line"]=> int(116) }