Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Uncaught SyntaxError: Unexpected token <

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi, I see in the console this error:
Uncaught SyntaxError: Unexpected token <    (index):1

Any idea what I could have done wrong in the setup?
  • ubunti's Avatar
  • ubunti
  • LIfetime Developer - Big Bamboo
  • 371 posts
  • Karma: -3
The administrator has disabled public write access.
Added to my list and will fix in the update today.

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
this error goes away when I tick "Load compressed Javascript file"
  • ubunti's Avatar
  • ubunti
  • LIfetime Developer - Big Bamboo
  • 371 posts
  • Karma: -3
The administrator has disabled public write access.
Yes thats odd - getting a fix now.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
Ive discovered that its related to the gzip option and have added a note here:

docs.joomlabamboo.com/zen-grid-framework-4/settings/javascript-settings.html

It's only relevant for some local hosts. But it's recommended to not use php gzip locally.
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.
I never had GZIP turned on, neither in Joomla nor in Xero. I doubt that is the cause of the problem, at least not on my localhost.
  • ubunti's Avatar
  • ubunti
  • LIfetime Developer - Big Bamboo
  • 371 posts
  • Karma: -3
Last Edit: 9 years 5 months ago by ubunti.
The administrator has disabled public write access.
Its hard to know what your settings have been as it sounds like they havent been saving properly.

This fixes the issue for me.

The error relates to a conflict with the gzip method and another method I have installed in Mamp. Specifically:

output handler 'ob_gzhandler' conflicts with 'zlib output compression'

Thanks
  • Anthony Olsen's Avatar
  • Anthony Olsen
  • LIfetime Developer - Big Bamboo
  • 23925 posts
  • 788 Thanks
  • Karma: 433
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers