Lemmings Forums

Site Boards => Site Discussion => Topic started by: Flopsy on August 28, 2024, 03:58:51 AM

Title: Error when downloading attachments in forum PMs
Post by: Flopsy on August 28, 2024, 03:58:51 AM
Whenever I'm downloading forum PM attached files at the moment I'm getting the following error on a new page

"Call to undefined function create_function()"

I have tested attachments attached to actual public forum messages and they are downloading fine so it only seems to be limited to PM message attachments.
Title: Re: Error when downloading attachments in forum PMs
Post by: Silken Healer on August 28, 2024, 04:16:16 AM
I just PM'd myself an example attachment to test it and it dont work either so probably not juts you then
Title: Re: Error when downloading attachments in forum PMs
Post by: namida on August 28, 2024, 04:24:37 AM
This is likely an incompatibility between the PM attachments extension and the newer versions of PHP. Guess I'll need to drop us back to an older version for now...

EDIT: Confirmed. It's the result of a function that was already deprecated in PHP7, and was outright removed in PHP8. I've bumped the version back as a temporary workaround, and will try to manually adjust the code to be compatible with newer versions.
Title: Re: Error when downloading attachments in forum PMs
Post by: namida on August 28, 2024, 06:41:53 AM
I've now modified the PM attachment code to work correctly on PHP 8.3 (and thus set the site back to using it).
Title: Re: Error when downloading attachments in forum PMs
Post by: Flopsy on August 28, 2024, 11:08:58 AM
I'm still getting the same error message.

I have tried logging out and back in, loading the site in a new window and it's still happening. The attachments are .zip files
Title: Re: Error when downloading attachments in forum PMs
Post by: Silken Healer on August 28, 2024, 11:11:47 AM
It's working for me now