Omeka S Timeline


#1

Hi,

I’m having a problem Timeline plugin (v3.4.1 https://github.com/Daniel-KM/Omeka-S-module-Timeline) for Omeka-s (beta4).
Omeka-s seems to be working well, but get the following error when viewing a page with a timeline block.

Simile

Omeka S encountered an error
Zend\View\Exception\RuntimeException
Zend\View\Renderer\PhpRenderer::render: Unable to render template “timeline/timeline/events”; resolver could not resolve to a file

Details:

Zend\View\Exception\RuntimeException: Zend\View\Renderer\PhpRenderer::render: Unable to render template “timeline/timeline/events”; resolver could not resolve to a file in /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php:497
Stack trace:
#0 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render()
#1 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\JsonModel))
#2 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#3 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#4 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(123): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#5 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#6 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#7 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#8 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(348): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#9 /var/www/sites/omeka-s/index.php(21): Zend\Mvc\Application->run()
#10 {main}

Knightlab
Omeka S encountered an error

Error
Function name must be a string

Details:

Error: Function name must be a string in /var/www/sites/omeka-s/modules/Timeline/view/timeline/common/block-layout/timeline_knightlab.phtml:7
Stack trace:
#0 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include()
#1 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Helper/Partial.php(61): Zend\View\Renderer\PhpRenderer->render()
#2 [internal function]: Zend\View\Helper\Partial->__invoke(‘timeline/common…’, Array)
#3 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(397): call_user_func_array(Object(Zend\View\Helper\Partial), Array)
#4 /var/www/sites/omeka-s/modules/Timeline/src/Site/BlockLayout/Timeline.php(114): Zend\View\Renderer\PhpRenderer->__call(‘partial’, Array)
#5 /var/www/sites/omeka-s/application/src/View/Helper/BlockLayout.php(121): Timeline\Site\BlockLayout\Timeline->render(Object(Zend\View\Renderer\PhpRenderer), Object(Omeka\Api\Representation\SitePageBlockRepresentation))
#6 /var/www/sites/omeka-s/application/view/omeka/site/page/content.phtml(9): Omeka\View\Helper\BlockLayout->render(Object(Omeka\Api\Representation\SitePageBlockRepresentation))
#7 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php(505): include(’/var/www/sites/…’)
#8 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render()
#9 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#10 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#11 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(236): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#12 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(200): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#13 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#14 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#15 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
#16 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
#17 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(348): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#18 /var/www/sites/omeka-s/index.php(21): Zend\Mvc\Application->run()
#19 {main}

php -m
[PHP Modules]
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gettext
hash
iconv
json
libxml
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

System information
Omeka S
Version 1.0.0-beta4
PHP
Version 7.0.18-0ubuntu0.16.04.1
SAPI apache2handler
Extensions apache2handler, calendar, Core, ctype, date, dom, exif, fileinfo, filter, ftp, gettext, hash, iconv, json, libxml, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, readline, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, Zend OPcache, zlib
Disabled Functions , pcntl_alarm, pcntl_exec, pcntl_fork, pcntl_getpriority, pcntl_get_last_error, pcntl_setpriority, pcntl_signal, pcntl_signal_dispatch, pcntl_sigprocmask, pcntl_sigtimedwait, pcntl_sigwaitinfo, pcntl_strerror, pcntl_wait, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifcontinued, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig
MySQL
Server Version 5.7.18-0ubuntu0.16.04.1
Client Version mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
Mode STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_AUTO_CREATE_USER, NO_ENGINE_SUBSTITUTION
OS
Version Linux 4.4.0-81-generic x86_64

Omeka-s is currently behind a firewall, so no public access.

Hope you can help,
Cillian


#2

This is a bug (!). I fixed it on Timeline, you can upgrade your install.


#3

Note that the Simile timeline is working out of box, but to use knightlab timeline, you may need an account.


#4

Hi Daniel,

Thanks for the update.

I downloaded the latest new module and have omeka-s beta4. But I still have the same problem, basically the timeline page is looking for “**/**timeline/10/events.json” or similar. I get a 404/500.
Maybe there’s something wrong with my setup.

Thanks,
Cillian


#5

This is a second bug. Is it working when you use the Simile Timeline ? (first option in the main config of the module).


#6

Same error for both Simile and Knightlab. It should all be in my first post. I tried both, both are trying to use /timeline/[id]/events.json and get a 404/500,


#7

There were two errors in the first post. I fixed the second one and I’m looking for the first one.


#8

Okay, I see.
First bug, Knightlab produces error ‘Function name must be a string’.
Other is “Failed to load json data from /timeline/10/events.json” Forbidden.


#9

I can reproduce the case, so the bug is not related to you.


#10

I fixed the bug, so you can upgrade to 3.4.2. In fact, the module worked when we upgraded from an old release, as I do, but not when installed directly, so I didn’t see it first. There were a similar bug in the core of Omeka S, so I fixed it too.


#11

Hi,

Thanks for the update. I made both changes, timeline to v3.4.2 and Omeka S core. Uninstalled module, removed timeline block, install timeline module, added timeline bloc, and cleared cache.

For Simile, get:

Failed to load json from /timeline/26/events.json. Internal server error.

On dev tool chrome console. Error: GET http://exhibitions.library.nuigalway.ie/timeline/26/events.json 500 (Internal Server Error) simile-ajax-bundle.js:2898

http://exhibitions.library.nuigalway.ie/timeline/26/events.json gives:

Omeka S encountered an error
Zend\View\Exception\RuntimeException
Zend\View\Renderer\PhpRenderer::render: Unable to render template “timeline/timeline/events”; resolver could not resolve to a file

Details:

Zend\View\Exception\RuntimeException: Zend\View\Renderer\PhpRenderer::render: Unable to render template “timeline/timeline/events”; resolver could not resolve to a file in /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/Renderer/PhpRenderer.php:497
Stack trace:
0 /var/www/sites/omeka-s/vendor/zendframework/zend-view/src/View.php(207): Zend\View\Renderer\PhpRenderer->render()
1 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(105): Zend\View\View->render(Object(Zend\View\Model\JsonModel))
2 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
3 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
4 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/View/Http/DefaultRenderingStrategy.php(123): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
5 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
6 /var/www/sites/omeka-s/vendor/zendframework/zend-eventmanager/src/EventManager.php(171): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent))
7 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(367): Zend\EventManager\EventManager->triggerEvent(Object(Zend\Mvc\MvcEvent))
8 /var/www/sites/omeka-s/vendor/zendframework/zend-mvc/src/Application.php(348): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
9 /var/www/sites/omeka-s/index.php(21): Zend\Mvc\Application->run()
10 {main}


#12

This is fixed in version 3.4.3. This was a vicious bug: it worked if another module adds an option (view strategy for json) in the main config, and it worked when the debug mode was enabled.

The issue may occur on some other modules too, because even if Omeka S uses json a lot, it is not set as a possible view strategy in the main config.


#13

Just like to confirm that it is working now. Thanks for all the work.


#14

I’m very late to this threat and am not having this problem, but I wonder if you can explain what you mean by “to use the knightlab timeline, you may need an account”? I’ve just asked a global admin at my institution to add the Timeline Module to our Sandbox, but I am not sure how to use the Knightlab timeline over the Simile timeline. For the record, I’m just a site admin, so any edits or additions to anything is something I’ll have to specifically ask someone else to do.

Apologies in advance if this is a super low-level kind of question.