Title: Fatal error
Last modified: September 2, 2022

---

# Fatal error

 *  [cointacted](https://wordpress.org/support/users/cointacted/)
 * (@cointacted)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4239/)
 * Hi, on a few sites using elementor I get fatal errors. Because size of the image
   has been changed by elementor. Here the error on one of the sites, but it’s the
   same issue for sure:
 *     ```
       Fatal error: Uncaught Error: Unsupported operand types: string * string
       in /home/u107210759/domains/comwe.app/public_html/content/plugins/amazon-s3-and-cloudfront/classes/integrations/media-library.php on line 1203
   
       Call stack:
   
       DeliciousBrains\W\I\Media_Library::DeliciousBrains\W\I\{closure}()
       uasort()
       content/plugins/amazon-s3-and-cloudfront/classes/integrations/media-library.php:1204
       DeliciousBrains\W\I\Media_Library::convert_dimensions_to_size_name()
       content/plugins/amazon-s3-and-cloudfront/classes/integrations/media-library.php:1176
       DeliciousBrains\W\I\Media_Library::maybe_convert_size_to_string()
       content/plugins/amazon-s3-and-cloudfront/classes/integrations/media-library.php:812
       DeliciousBrains\W\I\Media_Library::maybe_sign_intermediate_size()
       content/plugins/amazon-s3-and-cloudfront/classes/integrations/media-library.php:731
       DeliciousBrains\W\I\Media_Library::maybe_encode_wp_get_attachment_image_src()
       wp-includes/class-wp-hook.php:307
       WP_Hook::apply_filters()
       wp-includes/plugin.php:191
       apply_filters()
       wp-includes/media.php:992
       wp_get_attachment_image_src()
       content/plugins/elementor/includes/controls/groups/image-size.php:249
       Elementor\Group_Control_Image_Size::get_attachment_image_src()
       content/plugins/elementor/includes/controls/groups/image-size.php:110
       Elementor\Group_Control_Image_Size::get_attachment_image_html()
       content/plugins/elementor/includes/controls/groups/image-size.php:156
       Elementor\Group_Control_Image_Size::print_attachment_image_html()
       content/plugins/elementor/includes/widgets/image.php:701
       Elementor\Widget_Image::render()
       content/plugins/elementor/includes/base/controls-stack.php:2223
       Elementor\Controls_Stack::render_by_mode()
       content/plugins/elementor/includes/base/widget-base.php:609
       Elementor\Widget_Base::render_content()
       content/plugins/elementor/includes/base/widget-base.php:750
       Elementor\Widget_Base::print_content()
       content/plugins/elementor/includes/base/element-base.php:447
       Elementor\Element_Base::print_element()
       content/plugins/elementor/includes/base/element-base.php:787
       Elementor\Element_Base::print_content()
       content/plugins/elementor/includes/base/element-base.php:447
       Elementor\Element_Base::print_element()
       content/plugins/elementor/includes/base/element-base.php:787
       Elementor\Element_Base::print_content()
       content/plugins/elementor/includes/base/element-base.php:447
       Elementor\Element_Base::print_element()
       content/plugins/elementor/includes/base/element-base.php:787
       Elementor\Element_Base::print_content()
       content/plugins/elementor/includes/base/element-base.php:447
       Elementor\Element_Base::print_element()
       content/plugins/elementor/includes/base/element-base.php:787
       Elementor\Element_Base::print_content()
       content/plugins/elementor/includes/base/element-base.php:447
       Elementor\Element_Base::print_element()
       content/plugins/elementor/core/base/document.php:1635
       Elementor\C\B\Document::print_elements()
       content/plugins/elementor/core/base/document.php:1086
       Elementor\C\B\Document::print_elements_with_wrapper()
       content/plugins/elementor/includes/frontend.php:1092
       Elementor\Frontend::get_builder_content()
       content/plugins/elementor/includes/frontend.php:1006
       Elementor\Frontend::apply_builder_in_content()
       wp-includes/class-wp-hook.php:307
       WP_Hook::apply_filters()
       wp-includes/plugin.php:191
       apply_filters()
       wp-includes/post-template.php:253
       the_content()
       content/plugins/elementor/modules/page-templates/module.php:190
       Elementor\M\P\Module::print_callback()
       call_user_func()
       content/plugins/elementor/modules/page-templates/module.php:207
       Elementor\M\P\Module::print_content()
       content/plugins/elementor/modules/page-templates/templates/header-footer.php:19
       include()
       wp-includes/template-loader.php:106
       require_once()
       wp-blog-header.php:19
       require()
       index.php:17
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * (@deliciousbrains)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4239/#post-15984383)
 * This is a known issue with custom sizes created with a version of Elementor before
   3.7.x when running on PHP 8.0+.
 * You’ll need to upgrade to Elementor 3.7 or later and then fix any images given
   a custom size to make sure they do not have strings for their width or height.
 * The next major version of WP Offload Media will have some protection against 
   this kind of invalid data.
 * -IJ

Viewing 1 replies (of 1 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Delicious Brains](https://wordpress.org/support/users/deliciousbrains/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-4239/#post-15984383)
 * Status: not resolved