[wp-trac] [WordPress Trac] #57696: fatal error
WordPress Trac
noreply at wordpress.org
Sat Feb 11 09:20:08 UTC 2023
#57696: fatal error
--------------------------+------------------------------
Reporter: unicas | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Description changed by costdev:
Old description:
> buenos dias, sigo con este error...
> Fatal error: Uncaught ValueError: imagecreatetruecolor(): Argument #2
> ($height) must be greater than 0 in
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/media.php:3771
> Stack trace: #0 /homepages/32/d944883379/htdocs/padelandyou/wp-
> includes/media.php(3771): imagecreatetruecolor(200, -22) #1
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-image-
> editor-gd.php(205): wp_imagecreatetruecolor(200, -22) #2
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-image-
> editor-gd.php(176): WP_Image_Editor_GD->_resize('200', '-22', true) #3
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/libraries/bfi-thumb/bfi-
> thumb.php(618): WP_Image_Editor_GD->resize('200', '-22', true) #4
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/libraries/bfi-thumb/bfi-thumb.php(54):
> BFI_Thumb_1_3::thumb('https://www.pad...', Array, true) #5
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/libraries/bfi-thumb/bfi-
> thumb.php(795): bfi_thumb('https://www.pad...', Array) #6
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(308): bfi_image_downsize(false, 2198, Array) #7
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/plugin.php(205):
> WP_Hook->apply_filters(false, Array) #8
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/media.php(207):
> apply_filters('image_downsize', false, 2198, Array) #9
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/media.php(954):
> image_downsize(2198, Array) #10
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/controls/groups/image-size.php(249):
> wp_get_attachment_image_src(2198, Array) #11
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/controls/groups/image-size.php(110):
> Elementor\Group_Control_Image_Size::get_attachment_image_src(2198,
> 'thumbnail', Array) #12 /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/widgets/image-box.php(585):
> Elementor\Group_Control_Image_Size::get_attachment_image_html(Array,
> 'thumbnail', 'image') #13 /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/controls-stack.php(2268):
> Elementor\Widget_Image_Box->render() #14
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/widget-base.php(609):
> Elementor\Controls_Stack->render_by_mode() #15
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/widget-base.php(733):
> Elementor\Widget_Base->render_content() #16
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/element-base.php(536):
> Elementor\Widget_Base->get_raw_data(true) #17
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/element-base.php(536):
> Elementor\Element_Base->get_raw_data(true) #18
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/core/base/document.php(966):
> Elementor\Element_Base->get_raw_data(true) #19
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/core/base/document.php(632):
> Elementor\Core\Base\Document->get_elements_raw_data(Array, true) #20
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/base/controls-stack.php(1021):
> Elementor\Core\Base\Document->get_initial_config() #21
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/core/editor/editor.php(527):
> Elementor\Controls_Stack->get_config() #22
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(308): Elementor\Core\Editor\Editor->enqueue_scripts('') #23
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(332): WP_Hook->apply_filters('', Array) #24
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/plugin.php(517):
> WP_Hook->do_action(Array) #25 /homepages/32/d944883379/htdocs/padelandyou
> /wp-includes/script-loader.php(2180): do_action('wp_enqueue_scri...') #26
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(308): wp_enqueue_scripts('') #27
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(332): WP_Hook->apply_filters('', Array) #28
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/plugin.php(517):
> WP_Hook->do_action(Array) #29 /homepages/32/d944883379/htdocs/padelandyou
> /wp-includes/general-template.php(3043): do_action('wp_head') #30
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/includes/editor-templates/editor-
> wrapper.php(31): wp_head() #31
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/core/editor/editor.php(322):
> include('/homepages/32/d...') #32
> /homepages/32/d944883379/htdocs/padelandyou/wp-
> content/plugins/elementor/core/editor/editor.php(163):
> Elementor\Core\Editor\Editor->print_editor_template() #33
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(308): Elementor\Core\Editor\Editor->init('') #34
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/class-wp-
> hook.php(332): WP_Hook->apply_filters('', Array) #35
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/plugin.php(517):
> WP_Hook->do_action(Array) #36 /homepages/32/d944883379/htdocs/padelandyou
> /wp-admin/admin.php(419): do_action('admin_action_el...') #37
> /homepages/32/d944883379/htdocs/padelandyou/wp-admin/post.php(12):
> require_once('/homepages/32/d...') #38 {main} thrown in
> /homepages/32/d944883379/htdocs/padelandyou/wp-includes/media.php on line
> 3771
>
> todo actualizado, plugins desactivados y activados, el error sigue ahí.
> Por lo que indica el error, creo que está aqui:
>
> @param int $height Image height in pixels.
> * @return resource|GdImage|false The GD image resource or GdImage
> instance on success.
> * False on failure.
> */
> function wp_imagecreatetruecolor( $width, $height ) {
> $img = imagecreatetruecolor( $width, $height );
>
> if ( is_gd_image( $img )
> && function_exists( 'imagealphablending' ) && function_exists(
> 'imagesavealpha' )
> ) {
> imagealphablending( $img, false );
> imagesavealpha( $img, true );
> }
>
> return $img;
> }
>
> pero no tengo ni idea de codigo, llevo dos semanas con este
> problema...alguien puede ayudarme??
New description:
buenos dias, sigo con este error...
{{{
Fatal error: Uncaught ValueError: imagecreatetruecolor(): Argument #2
($height) must be greater than 0 in /wp-includes/media.php:3771
Stack trace:
#0 /wp-includes/media.php(3771): imagecreatetruecolor(200, -22)
#1 /wp-includes/class-wp-image-editor-gd.php(205):
wp_imagecreatetruecolor(200, -22)
#2 /wp-includes/class-wp-image-editor-gd.php(176):
WP_Image_Editor_GD->_resize('200', '-22', true)
#3 /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-
thumb.php(618): WP_Image_Editor_GD->resize('200', '-22', true)
#4 /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-
thumb.php(54): BFI_Thumb_1_3::thumb('https://www.pad...', Array, true)
#5 /wp-content/plugins/elementor/includes/libraries/bfi-thumb/bfi-
thumb.php(795): bfi_thumb('https://www.pad...', Array)
#6 /wp-includes/class-wp-hook.php(308): bfi_image_downsize(false, 2198,
Array)
#7 /wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#8 /wp-includes/media.php(207): apply_filters('image_downsize', false,
2198, Array)
#9 /wp-includes/media.php(954): image_downsize(2198, Array)
#10 /wp-content/plugins/elementor/includes/controls/groups/image-
size.php(249): wp_get_attachment_image_src(2198, Array)
#11 /wp-content/plugins/elementor/includes/controls/groups/image-
size.php(110):
Elementor\Group_Control_Image_Size::get_attachment_image_src(2198,
'thumbnail', Array)
#12 /wp-content/plugins/elementor/includes/widgets/image-box.php(585):
Elementor\Group_Control_Image_Size::get_attachment_image_html(Array,
'thumbnail', 'image')
#13 /wp-content/plugins/elementor/includes/base/controls-stack.php(2268):
Elementor\Widget_Image_Box->render()
#14 /wp-content/plugins/elementor/includes/base/widget-base.php(609):
Elementor\Controls_Stack->render_by_mode()
#15 /wp-content/plugins/elementor/includes/base/widget-base.php(733):
Elementor\Widget_Base->render_content()
#16 /wp-content/plugins/elementor/includes/base/element-base.php(536):
Elementor\Widget_Base->get_raw_data(true)
#17 /wp-content/plugins/elementor/includes/base/element-base.php(536):
Elementor\Element_Base->get_raw_data(true)
#18 /wp-content/plugins/elementor/core/base/document.php(966):
Elementor\Element_Base->get_raw_data(true)
#19 /wp-content/plugins/elementor/core/base/document.php(632):
Elementor\Core\Base\Document->get_elements_raw_data(Array, true)
#20 /wp-content/plugins/elementor/includes/base/controls-stack.php(1021):
Elementor\Core\Base\Document->get_initial_config()
#21 /wp-content/plugins/elementor/core/editor/editor.php(527):
Elementor\Controls_Stack->get_config()
#22 /wp-includes/class-wp-hook.php(308):
Elementor\Core\Editor\Editor->enqueue_scripts('')
#23 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#24 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#25 /wp-includes/script-loader.php(2180): do_action('wp_enqueue_scri...')
#26 /wp-includes/class-wp-hook.php(308): wp_enqueue_scripts('')
#27 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#28 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#29 /wp-includes/general-template.php(3043): do_action('wp_head')
#30 /wp-content/plugins/elementor/includes/editor-templates/editor-
wrapper.php(31): wp_head()
#31 /wp-content/plugins/elementor/core/editor/editor.php(322):
include('/homepages/32/d...')
#32 /wp-content/plugins/elementor/core/editor/editor.php(163):
Elementor\Core\Editor\Editor->print_editor_template()
#33 /wp-includes/class-wp-hook.php(308):
Elementor\Core\Editor\Editor->init('')
#34 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#35 /wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#36 /wp-admin/admin.php(419): do_action('admin_action_el...')
#37 /wp-admin/post.php(12): require_once('/homepages/32/d...')
#38 {main} thrown in /wp-includes/media.php on line 3771
}}}
todo actualizado, plugins desactivados y activados, el error sigue ahí.
Por lo que indica el error, creo que está aqui:
{{{
* @param int $height Image height in pixels.
* @return resource|GdImage|false The GD image resource or GdImage
instance on success.
* False on failure.
*/
function wp_imagecreatetruecolor( $width, $height ) {
$img = imagecreatetruecolor( $width, $height );
if ( is_gd_image( $img )
&& function_exists( 'imagealphablending' ) && function_exists(
'imagesavealpha' )
) {
imagealphablending( $img, false );
imagesavealpha( $img, true );
}
return $img;
}
}}}
pero no tengo ni idea de codigo, llevo dos semanas con este
problema...alguien puede ayudarme??
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57696#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list