{"action":"created","issue":{"url":"https://api.github.com/repos/collective/collective.cover/issues/686","repository_url":"https://api.github.com/repos/collective/collective.cover","labels_url":"https://api.github.com/repos/collective/collective.cover/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/collective/collective.cover/issues/686/comments","events_url":"https://api.github.com/repos/collective/collective.cover/issues/686/events","html_url":"https://github.com/collective/collective.cover/issues/686","id":192447865,"number":686,"title":"Render error when change image size","user":{"login":"rafaeltcc","id":3977779,"avatar_url":"https://avatars.githubusercontent.com/u/3977779?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaeltcc","html_url":"https://github.com/rafaeltcc","followers_url":"https://api.github.com/users/rafaeltcc/followers","following_url":"https://api.github.com/users/rafaeltcc/following{/other_user}","gists_url":"https://api.github.com/users/rafaeltcc/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaeltcc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaeltcc/subscriptions","organizations_url":"https://api.github.com/users/rafaeltcc/orgs","repos_url":"https://api.github.com/users/rafaeltcc/repos","events_url":"https://api.github.com/users/rafaeltcc/events{/privacy}","received_events_url":"https://api.github.com/users/rafaeltcc/received_events","type":"User","site_admin":false},"labels":[{"id":209473,"url":"https://api.github.com/repos/collective/collective.cover/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":{"login":"rodfersou","id":131209,"avatar_url":"https://avatars.githubusercontent.com/u/131209?v=3","gravatar_id":"","url":"https://api.github.com/users/rodfersou","html_url":"https://github.com/rodfersou","followers_url":"https://api.github.com/users/rodfersou/followers","following_url":"https://api.github.com/users/rodfersou/following{/other_user}","gists_url":"https://api.github.com/users/rodfersou/gists{/gist_id}","starred_url":"https://api.github.com/users/rodfersou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodfersou/subscriptions","organizations_url":"https://api.github.com/users/rodfersou/orgs","repos_url":"https://api.github.com/users/rodfersou/repos","events_url":"https://api.github.com/users/rodfersou/events{/privacy}","received_events_url":"https://api.github.com/users/rodfersou/received_events","type":"User","site_admin":false},"assignees":[{"login":"rodfersou","id":131209,"avatar_url":"https://avatars.githubusercontent.com/u/131209?v=3","gravatar_id":"","url":"https://api.github.com/users/rodfersou","html_url":"https://github.com/rodfersou","followers_url":"https://api.github.com/users/rodfersou/followers","following_url":"https://api.github.com/users/rodfersou/following{/other_user}","gists_url":"https://api.github.com/users/rodfersou/gists{/gist_id}","starred_url":"https://api.github.com/users/rodfersou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodfersou/subscriptions","organizations_url":"https://api.github.com/users/rodfersou/orgs","repos_url":"https://api.github.com/users/rodfersou/repos","events_url":"https://api.github.com/users/rodfersou/events{/privacy}","received_events_url":"https://api.github.com/users/rodfersou/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-30T01:08:47Z","updated_at":"2016-11-30T13:30:07Z","closed_at":null,"body":"Hi,\r\n\r\nI am using a production 4.3.9 Plone with latest collective.cover. If, in my Layout editor, I choose any image size different of default 200:200 for a Basic Tile I get:\r\n\r\nThere was an error while rendering this tile\r\n\r\nI get the following in my log\r\n\r\n2016-11-29T23:01:35 ERROR plone.subrequest Error handling subrequest to http://inverta.org/jornal/capa/@@collective.cover.basic/a9379171-0f0a-4981-93c2-4ef4505d54fe\r\nTraceback (most recent call last):\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.subrequest-1.6.11-py2.7.egg/plone/subrequest/__init__.py\", line 145, in subrequest\r\n    bind=1)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/mapply.py\", line 78, in mapply\r\n    else: return object(*args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.tiles-1.5.2-py2.7.egg/plone/tiles/esi.py\", line 68, in __call__\r\n    return self.index(*args, **kwargs)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Products/Five/browser/pagetemplatefile.py\", line 125, in __call__\r\n    return self.im_func(im_self, *args, **kw)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/Zope2-2.13.24-py2.7.egg/Products/Five/browser/pagetemplatefile.py\", line 59, in __call__\r\n    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py\", line 132, in pt_render\r\n    strictinsert=0, sourceAnnotations=sourceAnnotations\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.pagetemplate-3.6.3-py2.7.egg/zope/pagetemplate/pagetemplate.py\", line 240, in __call__\r\n    interpreter()\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 271, in __call__\r\n    self.interpret(self.program)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 852, in do_condition\r\n    self.interpret(block)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 821, in do_loop_tal\r\n    self.interpret(block)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 533, in do_optTag_tal\r\n    self.do_optTag(stuff)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 518, in do_optTag\r\n    return self.no_tag(start, program)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 513, in no_tag\r\n    self.interpret(program)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 852, in do_condition\r\n    self.interpret(block)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 533, in do_optTag_tal\r\n    self.do_optTag(stuff)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 518, in do_optTag\r\n    return self.no_tag(start, program)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 513, in no_tag\r\n    self.interpret(program)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 343, in interpret\r\n    handlers[opcode](self, args)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py\", line 583, in do_setLocal_tal\r\n    self.engine.setLocal(name, self.engine.evaluateValue(expr))\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/tales.py\", line 696, in evaluate\r\n    return expression(self)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/pythonexpr.py\", line 59, in __call__\r\n    return eval(self._code, vars)\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/collective.cover-1.3b1-py2.7.egg/collective/cover/browser/scaling.py\", line 198, in scale\r\n    **parameters)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.scale-1.4.1-py2.7.egg/plone/scale/storage.py\", line 166, in scale\r\n    self._cleanup()\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.scale-1.4.1-py2.7.egg/plone/scale/storage.py\", line 186, in _cleanup\r\n    value['modified'] < modified_time - KEEP_SCALE_MILLIS):\r\nTypeError: unsupported operand type(s) for -: 'str' and 'int'\r\nrc@inverta:~/Plone-4.3/zeocluster$ tail -f var/client1/event.log\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/zope.tales-3.5.3-py2.7.egg/zope/tales/pythonexpr.py\", line 59, in __call__\r\n    return eval(self._code, vars)\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/collective.cover-1.3b1-py2.7.egg/collective/cover/browser/scaling.py\", line 198, in scale\r\n    **parameters)\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.scale-1.4.1-py2.7.egg/plone/scale/storage.py\", line 166, in scale\r\n    self._cleanup()\r\n  File \"/home/rc/Plone-4.3/buildout-cache/eggs/plone.scale-1.4.1-py2.7.egg/plone/scale/storage.py\", line 186, in _cleanup\r\n    value['modified'] < modified_time - KEEP_SCALE_MILLIS):\r\nTypeError: unsupported operand type(s) for -: 'str' and 'int'\r\n"},"comment":{"url":"https://api.github.com/repos/collective/collective.cover/issues/comments/263873479","html_url":"https://github.com/collective/collective.cover/issues/686#issuecomment-263873479","issue_url":"https://api.github.com/repos/collective/collective.cover/issues/686","id":263873479,"user":{"login":"hvelarde","id":341393,"avatar_url":"https://avatars.githubusercontent.com/u/341393?v=3","gravatar_id":"","url":"https://api.github.com/users/hvelarde","html_url":"https://github.com/hvelarde","followers_url":"https://api.github.com/users/hvelarde/followers","following_url":"https://api.github.com/users/hvelarde/following{/other_user}","gists_url":"https://api.github.com/users/hvelarde/gists{/gist_id}","starred_url":"https://api.github.com/users/hvelarde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvelarde/subscriptions","organizations_url":"https://api.github.com/users/hvelarde/orgs","repos_url":"https://api.github.com/users/hvelarde/repos","events_url":"https://api.github.com/users/hvelarde/events{/privacy}","received_events_url":"https://api.github.com/users/hvelarde/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T13:30:07Z","updated_at":"2016-11-30T13:30:07Z","body":"@rodfersou where do we have to fix it?"}}
{"actor":{"display_login":"hvelarde"}}