[resolved] Error when installing Omeka 2.7.1 on Red Hat 8 with PHP 7.2.24-1

Hi all,

We are getting the following error when trying to install Omeka 2.7.1.

Our server is Red Hat Enterprize Linux 8, and we are on PHP 7.2.24-1.

Any ideas on how we might resolve this?

Fatal error: Uncaught Error: Call to undefined function json_encode() in /webvol/application/libraries/Omeka/Navigation.php:431 Stack trace: #0 /webvol/application/models/Installer/Default.php(124): Omeka_Navigation::getNavigationOptionValueForInstall() #1 /webvol/application/models/Installer/Default.php(58): Installer_Default->_addOptions() #2 /webvol/install/controllers/IndexController.php(61): Installer_Default->install() #3 /webvol/application/libraries/Zend/Controller/Action.php(516): IndexController->indexAction() #4 /webvol/application/libraries/Zend/Controller/Dispatcher/Standard.php(308): Zend_Controller_Action->dispatch(‘indexAction’) #5 /webvol/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #6 /webvol/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(105): Zend_Controller_Front->dispatch() #7 /webvol/application/libraries/Zend/Application.php(384): Zend_Application_Boots in /webvol/application/libraries/Omeka/Navigation.php on line 431

Your server is missing the json extension.

On Red Hat, you’d probably need to install a php-json package.

1 Like

Thanks so much! That fixed the issue.

This topic was automatically closed after 250 days. New replies are no longer allowed.