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.
Trying to use publisher 2.1.2 to upload an album to a CE4 auto index page and receiving this error:
An internal error has occurred: JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: file_put_contents(./../../Johnstone-Wedding/bride-and-groom/gallery.xml): failed to open stream: No such file or directory|#0 [internal function]: ErrorHandler::handleError(2, 'file_put_conten...', '/hermes/bosoraw...', 143, Array)
#1 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/helpers/PublisherHelper.php(143): file_put_contents('./../../Johnsto...', '<?xml version="...')
#2 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/controllers/ApiController.php(474): PublisherHelper->updateAlbum('87860', Array, Array)
#3 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/controllers/ApiController.php(421): ApiController->updateAlbum('87860')
#4 [internal function]: ApiController->createAlbum()
#5 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/index.php(23): Framework->route()
#8 {main}|URL: /ttg-be/publisher/index.php
Help! What does this mean? Thank you.
GnBri Photography
Hertfordshire Wedding and Creative Photographers
| Creative | Art Focused | Storytelling |
Offline
Hi, it probably means it can't find the directory to save to. What should be the URL of the gallery you are trying to create?
(likely ending in Johnstone-Wedding/bride-and-groom)
Offline
Hi Ben,
The auto index URL should be:
www.gnbri.co.uk/Johnstone-Wedding/
Then yes I was trying to create a gallery "bride-and-groom" using publisher CE4.
*Would the fact that it is a password protected auto index page cause any problems?
Thank you
GnBri Photography
Hertfordshire Wedding and Creative Photographers
| Creative | Art Focused | Storytelling |
Offline
Being password-protected shouldn't cause a problem. Have you set 'Johnstone-Wedding' as your publisher's top-level gallery directory? If not, what have you set that to?
Offline
Yes 'Johnstone-Wedding' is set as top-level gallery directory.
GnBri Photography
Hertfordshire Wedding and Creative Photographers
| Creative | Art Focused | Storytelling |
Offline
It could be that Johnstone-Wedding is not writable. Have you changed the permissions on that to 755?
Can you email me the log files from the server, using the Email link below my picture? You should be able to find them in ttg-be/data/publisher/logs. If there are many files, then the most recent two should do. (likely 2014_08_25.log and 2014_08_26.log)
Offline
Hi Ben,
So I've been back and after deleting all gallery templates, auto index directory, publisher instances and albums.
Then re uploading everything. The default album created when you create a new publisher instance works as expected even after re-naming to bride.
However when I create other albums I get the same error message:
Can’t rename the published collection.
An internal error has occurred: JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: file_put_contents(./../../Johnstone-Wedding/ceremony/gallery.xml): failed to open stream: No such file or directory|#0 [internal function]: ErrorHandler::handleError(2, 'file_put_conten...', '/hermes/bosoraw...', 143, Array)
#1 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/helpers/PublisherHelper.php(143): file_put_contents('./../../Johnsto...', '<?xml version="...')
#2 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/controllers/ApiController.php(474): PublisherHelper->updateAlbum('65310', Array, Array)
#3 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/application/controllers/ApiController.php(421): ApiController->updateAlbum('65310')
#4 [internal function]: ApiController->createAlbum()
#5 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /hermes/bosoraweb105/b874/ipg.gnbricouk/ttg-be/publisher/index.php(23): Framework->route()
#8 {main}|URL: /ttg-be/publisher/index.php
GnBri Photography
Hertfordshire Wedding and Creative Photographers
| Creative | Art Focused | Storytelling |
Offline
Sorry forgot to say the working url is:
GnBri Photography
Hertfordshire Wedding and Creative Photographers
| Creative | Art Focused | Storytelling |
Offline