An error has occurred. 0 Call to undefined function create_function()

Rate this item
(0 votes)

The Joomla website gives this error in the back end, and errors on the front end (depending on the template):

An error has occurred. 0 Call to undefined function create_function()

This error happens because Joomla 5 requires PHP 8.1+, but you have an outdated third-party extension or template containing the create_function() function. The PHP development team deprecated this function in PHP 7.2 and completely removed it in PHP 8.0.0. When Joomla runs on modern PHP, encountering this removed function instantly triggers a fatal crash.

How to fix the problem

  • Choose a compatible version of PHP - likely PHP 7.2
  • You should be able to access the Admin and front end again. Migrate Joomla to the current version and update all templates and plugins.
Read 442 times Last modified on Sunday, 21 June 2026 15:01
More in this category: « Joomla 4 Admin has no CSS Styling