[ensembl-dev] ENSEMBL Genomes installation: AJAX error, Trailing commas

Rafael Hernández rafahd87 at gmail.com
Tue Feb 26 12:49:30 GMT 2013


Hi Ensembl devs,

I've installed a local version of Ensembl Genomes release 17 70 and I find
some troubles with AJAX webpage refreshing.
When I start the httpd process (for example Ensembl fungi), an error
message is showed as follows:

/usr/local/ensembl_bacteria/htdocs/minified/2726da28aef31bfd2ae4c565379d344e.js.tmp:12878:
ERROR - Parse error. Internet Explorer has a non-standard intepretation of
trailing commas. Arrays will have the wrong length and objects will not
parse at all.
});
 ^

1 error(s), 0 warning(s)

In spite of this error, the httpd process continues and the Ensembl fungi
starts. However this error causes that the generated javascript file
("/minified/xxxxxxxxxxxx.js) doesn't work correctly and the webpages never
updates after a query (no AJAX refreshing).
The cause of this problem is in the new version of the file *
/eg-plugins/common/htdocs/components/99_ZMenu.js* (revision 1.23), a
trailing comma that breaks the javascript generation (yesterday this
problem was fixed in branch ensemblgenomes-17-70a). Removing this trailing
comma, Ensembl fungi, metazoa, plants and protists works, however Bacteria
still not working.

For bacteria module, the /eg-plugins/bacteria/htdocs/components/ directory
contains some files used for the *minified *javascript generation* *and I
think that there could be the problem.
When I remove the trailing comma in
*/eg-plugins/common/htdocs/components/99_ZMenu.js,
*2 more similar errors are thrown.
I'm trying to fix the problem but I can't find the cause. Any idea?

Thank you and regards,

Rafa Hernández de Diego

SLU-Global Bioinformatics Center
Swedish University for Agricultural Sciences (SLU)
Gerda Nilssons väg 2,
Box 7023, 750 07 Uppsala, Sweden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20130226/986880e1/attachment.html>


More information about the Dev mailing list