Page 1 of 1

Error when adding rule on a filter

Posted: 17 Oct 2016, 21:31
by nivssrtt
Hi everyone,

When I add a rule on a filter, I get this error : Exception: TypeError, dojo.create is not a function
Stack trace :

Code: Select all

createNewRuleElement/<[email protected]://myserver/tt-rss/prefs.php:153:147
Ajax.Request<[email protected]://myserver/tt-rss/lib/prototype.js?1473351226:1817:8
Ajax.Request<[email protected]://myserver/tt-rss/lib/prototype.js?1473351226:1747:7


Here is my setup :
- tt-rss git 6687cb9927cf6bef4440115676dd8bdf716041f4
- debian 7.4
- Aapache : Server version: Apache/2.4.20 (Debian) Server built: 2016-04-10T12:03:41
- mysql Ver 14.14 Distrib 5.5.40, for debian-linux-gnu (armv7l) using readline 6.2
- PHP 7.0.7-1

Any ideas ?

Vincent

Re: Error when adding rule on a filter

Posted: 17 Oct 2016, 21:42
by sleeper_service
what rule?

Re: Error when adding rule on a filter

Posted: 17 Oct 2016, 22:04
by nivssrtt
I've search again this error on Internet, and find out that dojo.create is deprecated on early version of dojo.
So I've downgrade it to 1.7.2, ie :

Code: Select all

apt-get install libjs-dojo-core=1.7.2+dfsg-1

and it solve the problem (I'd 1.11.0+dfsg-1 before)

Thanks anyway.

Re: Error when adding rule on a filter

Posted: 17 Oct 2016, 22:18
by fox
tt-rss git includes correct and tested build of dojo/dijit, you shouldn't be using dojo packages (not that you even could without somehow hacking the code/httpd aliases)

please don't post in support until you unfuck your install because whatever is that you're running i'm not going to touch with a ten foot pole, regardless of whether it seemingly works or not; any more issues reported will result in a probation for violating subforum rules

Re: Error when adding rule on a filter

Posted: 17 Oct 2016, 22:41
by nivssrtt
I think I've found where this bug come from : I've installed debian sid version of tt-rss along with git's version of tt-rss. I thought I've running the git version.
The debian sid's version use libjs-dojo-core v1.11.0 (so this version have dojo.create bug)
https://packages.debian.org/unstable/main/tt-rss

When I've downgrade libjs-dojo-core, it uninstalled debian's tt-rss. Where I'd access tt-rss, it asks me to configure it, like it was a new install. So I never used the git version.

Sorry, for trouble.

Regards

Re: Error when adding rule on a filter

Posted: 17 Oct 2016, 22:46
by fox
now you understand why i have no interest in supporting any of this crap - they split libraries from your software and then arbitrary upgrade them without checking whether stuff actually works

anyway, uninstall all the prehistoric debian crap, use the up-to-date git version and you'll be fine (not probated even!)