soflyy / breakdance-bugs

Bug reports from Breakdance users.
40 stars 6 forks source link

Issue with Post List on PHP 8.1 in 1.6 Beta 1 #951

Closed thekendog closed 11 months ago

thekendog commented 11 months ago

When using the post list element and making it a slider, I get an error. Here's the automated message I get.

Error Code: 500 Request Time: Wed, 27 Sep 2023 14:13:49 GMT Request URI: https://example.com/?_breakdance_doing_ajax=yes&_ajax_nonce=a304893306 Request Type: POST

To test, I deactivated every single other plugin except BD. I downgraded to PHP 7.4 and didn't get this error using BD 1.6. I then upgraded back to PHP 8.1 using BD 1.6 and the error returned. I then downgraded Breakdance to 1.5 using PHP 8.1 and did not get the error. This means it must be something in BD 1.6.

What's interesting to me is that the new error message thing implemented in 1.6 implies that this is a server error. As I mentioned above though, this is not an error that appears in BD 1.5. Seems a little misleading to just imply it's a server error.

thekendog commented 11 months ago

Error seems to be coming from line 263 of ssr.php in the PostsList folder.

rodolphebertozzo commented 11 months ago

+1 when I would edit a post template single

00x1a commented 11 months ago

I can confirm. Post loop builder and Postlist create 500 error.

louisreingold commented 11 months ago

Error seems to be coming from line 263 of ssr.php in the PostsList folder.

The above is an example of a helpful, useful comment.

louisreingold commented 11 months ago

@thekendog thanks for the report. We fixed the issue you reported in https://breakdance.com/breakdance-1-6-rc-1/

@00x1a @rodolphebertozzo thanks also for your reports. We investigated your reports, but there is no guarantee we fixed your specific problem since you didn't provide an error message. If you encounter further PHP errors, please do what the @thekendog did and provide the actual error message.