[SOLVED] Ubuntu 13.10 upgrade - blank Gallery screen

royh

Joined: 2013-10-20
Posts: 1
Posted: Sun, 2013-10-20 21:55

Gentlemen and Ladies:

Those of you - like me - that just upgraded to Ubuntu 13.10 and got a nice blank screen for Gallery (I'm running 3.0.4 - perhaps I should upgrade :) )

I found that I needed to "apt-get install php5-json" ... for some reason I lost it during the upgrade (could be it was included elsewhere - not sure)

Previous errors were:
2013-10-20 20:24:09 +00:00 --- error: Kohana_PHP_Exception [ 1 ]: Call to undefined function json_encode()
/opt/gallery/modules/gallery/libraries/SafeString.php [ 104 ]
#0 [internal function]: Kohana_PHP_Exception_Core::shutdown_handler(NULL)
#1 /opt/gallery/system/core/Event.php(208): call_user_func_array(Array, Array)
#2 /opt/gallery/system/core/Kohana.php(553): Event_Core::run('system.shutdown')
#3 [internal function]: Kohana_Core::shutdown()
#4 {main}

Problem is fixed and Gallery is operational again.

Many thanks for a wonderful program.

 
flubber

Joined: 2013-02-27
Posts: 4
Posted: Mon, 2013-10-21 03:39

For some reason your PHP was instaled /compiled without JSON. Either:
* Recompile it
* Install a package
* Use a function that emulates json_encode, which can be found in the comments section of http://php.net/manual/en/function.json-encode.php