soflyy / breakdance-bugs

Bug reports from Breakdance users.
38 stars 5 forks source link

500 Error when resizing logo to a custom size #1088

Open out-of-order opened 1 month ago

out-of-order commented 1 month ago

You MUST include a clear description of the bug and EXACT steps to reproduce the bug or IT WILL BE CLOSED:

This is a confirmed error by the BD E-Mail support:

Thanks for the information. This issue is reported to our development team. They will look at it but we cannot provide an estimate on when the fix will be available. Unfortunately, I couldn't find a viable workaround.

I'm stuck at BD v1.7.0 (1.x and not 0.alpha) BD is not willing to offer updates for testing. For dev and testing I am not willing to pay continuously at all and even less for this kind of bad status. Though I understand the need of monetization (of course) this case could already be the reason for me not to go with BD in the future (which is my problem of course).

For example:

  1. Open Breakdance
  2. Load a premade layout
  3. Change the Logo size
error
Response Code: 500
Request Time: Sat, 23 Mar 2024 07:31:45 GMT
Request Type: POST
Request URL: https://breakdance.dev.rs4.example.com/wp-admin/admin-ajax.php?_breakdance_doing_ajax=yes&_ajax_nonce=5d0fb9833e
Body:
{
"action": "breakdance_resize_image",
"id": 45,
"width": 100,
"height": 100
}

PHP Logs:

2024-03-29 10:41:01 2a02:8108:983f:e8c0:c5ef:1c7e:7f1c:e304     500 POST /wp-admin/admin-ajax.php?_breakdance_doing_ajax=yes&_ajax_nonce=2e9e000449 HTTP/2.0
2024-03-29 10:41:01 2a03:4000:4e:d76:288b:a3ff:feee:6347     401 GET /wp-content/uploads/2024/03/Logo.jpg HTTP/1.1

WordPress Debug Logs:

[29-Mar-2024 09:46:52 UTC] Breakdance\AJAX\BreakdanceAjaxHandlerException thrown with message "Unable to edit this image."

Stacktrace:
#8 Breakdance\AJAX\BreakdanceAjaxHandlerException in /home/users/dev/www/breakdance/wordpress/wp-content/plugins/breakdance/plugin/ajax/api.php:113
#7 Exception in /home/users/dev/www/breakdance/wordpress/wp-content/plugins/breakdance/plugin/media/resizer.php:53
#6 Breakdance\Media\Resizer\resizeImage in /home/users/dev/www/breakdance/wordpress/wp-content/plugins/breakdance/plugin/media/resizer.php:86
#5 Breakdance\Media\Resizer\endpoint in /home/users/dev/www/breakdance/wordpress/wp-content/plugins/breakdance/plugin/ajax/api.php:111
#4 call_user_func_array in /home/users/dev/www/breakdance/wordpress/wp-content/plugins/breakdance/plugin/ajax/api.php:111
#3 Breakdance\AJAX\{closure} in /home/users/dev/www/breakdance/wordpress/wp-includes/class-wp-hook.php:324
#2 WP_Hook:apply_filters in /home/users/dev/www/breakdance/wordpress/wp-includes/class-wp-hook.php:348
#1 WP_Hook:do_action in /home/users/dev/www/breakdance/wordpress/wp-includes/plugin.php:517
#0 do_action in /home/users/dev/www/breakdance/wordpress/wp-admin/admin-ajax.php:188

You should also include the following information: