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.
You are not logged in.
Pages: 1
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
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
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
json_encode doesn't like UTF8 characters, though our code does tell it to accept them.
Offline
Pages: 1