Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-06-19 23:41:37

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Publisher album error

I get this message when I try to change or modify an album in a published site (CE4 Publisher) :
INTERNAL ERROR
JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: json_encode(): Invalid UTF-8 sequence in argument|#0 [internal function]: ErrorHandler::handleError(2, 'json_encode(): ...', '/home/pidej435/...', 5, Array)
#1 /home/pidej435/public_html/tnm_2014-2015/ttg-be/publisher/application/views/templates/template_json.php(5): json_encode(Array)
#2 /home/pidej435/public_html/tnm_2014-2015/ttg-be/framework/helpers/ViewHelper.php(40): require('/home/pidej435/...')
#3 /home/pidej435/public_html/tnm_2014-2015/ttg-be/publisher/application/controllers/ApiController.php(186): ViewHelper::render('', Array, 'json')
#4 [internal function]: ApiController->listTemplates()
#5 /home/pidej435/public_html/tnm_2014-2015/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /home/pidej435/public_html/tnm_2014-2015/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /home/pidej435/public_html/tnm_2014-2015/ttg-be/publisher/index.php(23): Framework->route()
#8 {main}|URL: /tnm_2014-2015/ttg-be/publisher/index.php

What does this mean?

Offline

#2 2015-06-19 23:46:05

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: Publisher album error

OK I found the mistake : never ever place an accentuated character in a template name! Rather than modèle you have to write model
Got to live with it...

Last edited by pideja (2015-06-19 23:46:21)

Offline

#3 2015-06-19 23:48:48

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Publisher album error

yep, for all file and folder names use only standard characters.
Use letters, numbers, underscores, or dashes. No spaces.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2015-06-20 00:04:24

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Publisher album error

json_encode doesn't like UTF8 characters, though our code does tell it to accept them.

Offline

Board footer

Powered by FluxBB