Issue when creating new attachments in articles Topic is solved

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
TCludts_93
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Sep 20, 2017 11:16 am

Issue when creating new attachments in articles

Post by TCludts_93 » Mon Dec 05, 2022 3:31 pm

Hello

We're currently using our Joomla website on version 8.0.26.
We noticed that we can no longer add new attachment(s) to articles, we get the following error message upon trying to save:

0 Call to undefined function create_function()

With debug enabled we receive some additional information - see attachment.

Anybody that experiences this same behavior? Any fixes?

Thanks in advance for the feedback!
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Mon Dec 05, 2022 8:15 pm, edited 1 time in total.
Reason: mod note: moved from 3.x General Questions

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 15434
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Issue when creating new attachments in articles

Post by toivo » Mon Dec 05, 2022 8:14 pm

TCludts_93 wrote:
Mon Dec 05, 2022 3:31 pm
We're currently using our Joomla website on version 8.0.26.
Joomla versions start with 3 or 4. Version 8 is either MySQL or PHP.

The third party component Attachments was last updated in 2018 and is therefore unlikely to be compatible with PHP 8, released two years ago.

TCludts_93 wrote:
Mon Dec 05, 2022 3:31 pm
0 Call to undefined function create_function()
The function create_function() was deprecated in PHP 7.2 and removed in PHP 8, which explains the PHP fatal error.

If you need this extension and if it is still possible to select PHP 7.4 from your cPanel or a similar page provided by your host, you need to change Error Reporting in Global Configuration to 'Simple' or 'None' to be able to use Attachments.
Toivo Talikka, Global Moderator

TCludts_93
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Sep 20, 2017 11:16 am

Re: Issue when creating new attachments in articles

Post by TCludts_93 » Tue Dec 06, 2022 7:57 am

Hi Toivo

I meant PHP 8.0.26, my bad. We're running the latest Joomla 3 build.
I'll try to find another solution. We are indeed able to change the PHP version back to 7.4, but that would only be a temporary option - we do want our website running on PHP 8.x.

We do have other possibilities that we might be able investigate.

Thanks for the feedback!


Post Reply

Return to “Extensions for Joomla! 3.x”