Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#57696 closed defect (bug) (invalid)

fatal error

Reported by: unicas's profile unicas Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description (last modified by costdev)

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??

Change History (4)

#1 @costdev
2 years ago

  • Description modified (diff)

#2 @costdev
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

[EN]
Hi @unicas, welcome to Trac and sorry to hear you're having problems with your site!

Please note that bug reports in Trac are only for bugs that have been confirmed as an issue in WordPress core.

It looks like you have already posted about this problem in the support forum. Please continue the discussion there and if the issue is identified as a problem in WordPress core, feel free to reopen this ticket.


[ES]
Hola @unicas, ¡bienvenido a Trac y siento que tengas problemas con tu sitio!

Por favor, ten en cuenta que los informes de errores en Trac son sólo para errores que han sido confirmados como un problema en el núcleo de WordPress.

Parece que ya has publicado sobre este problema en el foro de soporte. Por favor, continúa la discusión allí y si el problema se identifica como un problema en el núcleo de WordPress, siéntete libre de reabrir este ticket.

#3 @unicas
2 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

buenas noticias, puedo editar todas las demas paginas menos la de inicio...podeis ayudarme??

#4 @costdev
2 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

[EN]
Hi @unicas,

Great to hear you can now edit most of your website! This suggests that the issue is not in WordPress core.

You can get help with the home page on the support forum, but Trac is not the appropriate place for support requests.


[ES]
Hola @unicas,

Me alegra saber que ya puedes editar la mayor parte de tu sitio web. Puedes obtener ayuda con la página de inicio en el foro de soporte, pero Trac no es el lugar apropiado para solicitudes de soporte.

Note: See TracTickets for help on using tickets.