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 2014-08-26 03:36:49

GnBri Photography
Member
From: Hertfordshire and Essex Border
Registered: 2014-07-02
Posts: 17
Website

Publisher Error - Can't Update This Collection

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

#2 2014-08-26 07:30:59

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

Re: Publisher Error - Can't Update This Collection

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

#3 2014-08-26 07:59:56

GnBri Photography
Member
From: Hertfordshire and Essex Border
Registered: 2014-07-02
Posts: 17
Website

Re: Publisher Error - Can't Update This Collection

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

#4 2014-08-26 08:15:43

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

Re: Publisher Error - Can't Update This Collection

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

#5 2014-08-26 08:21:56

GnBri Photography
Member
From: Hertfordshire and Essex Border
Registered: 2014-07-02
Posts: 17
Website

Re: Publisher Error - Can't Update This Collection

Yes 'Johnstone-Wedding' is set as top-level gallery directory.


GnBri Photography
Hertfordshire Wedding and Creative Photographers

| Creative | Art Focused | Storytelling |

Offline

#6 2014-08-26 08:50:52

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

Re: Publisher Error - Can't Update This Collection

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

#7 2014-08-26 09:01:51

GnBri Photography
Member
From: Hertfordshire and Essex Border
Registered: 2014-07-02
Posts: 17
Website

Re: Publisher Error - Can't Update This Collection

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

#8 2014-08-26 09:03:16

GnBri Photography
Member
From: Hertfordshire and Essex Border
Registered: 2014-07-02
Posts: 17
Website

Re: Publisher Error - Can't Update This Collection

Sorry forgot to say the working url is:

http://www.gnbri.co.uk/Johnstone-Wedding/bride/


GnBri Photography
Hertfordshire Wedding and Creative Photographers

| Creative | Art Focused | Storytelling |

Offline

Board footer

Powered by FluxBB