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 06:13:57

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Error code

I am getting the following error every time I publish a gallery....

An internal error has occurred: JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: Update query failed with error: SQLSTATE[HY000]: General error: 1 no such column: top_level_gallery_path
sql:
'UPDATE `album` SET
`id`=\'31154\',
`publisher_root_id`=\'1\',
`parent_id`=\'90485\',
`type`=\'album\',
`slug`=\'z_finals\',
`breadcrumb`=\'\',
`title`=\'File Download\',
`description`=\'Final High-Res Files for Download\',
`template`=\'dhp_finals\',
`page_copy`=\'\',
`page_copy_placement`=\'below\',
`sidebar_copy`=\'\',
`sidebar_copy_placement`=\'replace\',
`enable_video`=\'no\',
`video_id`=\'\',
`cover_image`=\'\',
`items_per_page`=\'100\',
`enable_maps`=\'no\',
`enable_password`=\'no\',
`username`=\'\',
`password`=\'enc_a0636379347e32d1ff25e9cfa632d385\',
`enable_cart`=\'no\',
`pricing_scheme`=\'\',
`enable_crg`=\'no\',
`crg_feedback_profile_id`=\'\',
`crg_client_mode`=\'\',
`ordering`=\'lightroom\',
`has_user_order`=\'yes\',
`hide_from_autoindex`=\'no\',
`hide_from_search`=\'no\',
`show_breadcrumbs`=\'no\',
`needs_first_visit`=\'yes\',
`created`=\'2015-03-03 01:28:27\',
`modified`=\'2015-06-18 14:11:29\',
`top_level_gallery_path`=\'\',
`top_level_gallery_title`=\'\'
WHERE `id`=\'31154\''
params:
array (
)|#0 /home3/hurseyco/public_html/clients/ttg-be/framework/dao/PdoExtended.php(449): PdoExtended->_throwSqlQueryException('UPDATE `album` ...', Array, 'Update query fa...')
#1 /home3/hurseyco/public_html/clients/ttg-be/framework/dao/GenericDAO.php(31): PdoExtended->update('album', Array, Array)
#2 /home3/hurseyco/public_html/clients/ttg-be/publisher/application/dao/AlbumDAO.php(131): GenericDAO->editItem(31154, Array)
#3 /home3/hurseyco/public_html/clients/ttg-be/publisher/application/controllers/ApiController.php(763): AlbumDAO->editAlbum(31154, Array)
#4 [internal function]: ApiController->setPhotoOrder()
#5 /home3/hurseyco/public_html/clients/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /home3/hurseyco/public_html/clients/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /home3/hurseyco/public_html/clients/ttg-be/publisher/index.php(23): Framework->route()
#8 {main}|URL: /clients/ttg-be/publisher/index.php


Sitting Pretty in Sunny L.A.

Offline

#2 2015-06-19 06:44:04

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

Re: Error code

make sure you're using the latest version of Publisher. Ben released a hot fix to this a few days ago.


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

Offline

#3 2015-06-19 06:59:09

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Error code

Using 230... that is when the problem started...


Sitting Pretty in Sunny L.A.

Offline

#4 2015-06-19 07:04:55

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

Re: Error code

there has since been an update to fix it (230a). Try downloading it again


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

Offline

#5 2016-02-12 01:46:09

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

I am getting the same problem, using CE4-Publisher-233

Offline

#6 2016-02-12 01:58:14

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

Re: Error code


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

Offline

#7 2016-02-12 02:05:20

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

Plug-in error log for plug-in at: C:\Users\ian\Downloads\The Turning Gate\CE4-Publisher-233\CE4-Publisher.lrplugin

**** Error 1

An error occurred while attempting to sort photos on this service.
JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: Update query failed with error: SQLSTATE[HY000]: General error: 1 no such column: top_level_gallery_path
sql:
'UPDATE `album` SET
`id`=\'53279\',
`publisher_root_id`=\'1\',
`parent_id`=\'\',
`type`=\'album\',
`slug`=\'ivy-selected-feb-2016\',
`breadcrumb`=\'\',
`title`=\'Ivy Selected Feb 2016\',
`description`=\'Ivy Selected Feb 2016\',
`template`=\'CRG-ianlea-01\',
`page_copy`=\'\',
`page_copy_placement`=\'replace\',
`sidebar_copy`=\'\',
`sidebar_copy_placement`=\'replace\',
`enable_video`=\'no\',
`video_id`=\'\',
`cover_image`=\'\',
`items_per_page`=\'100\',
`enable_maps`=\'no\',
`enable_password`=\'no\',
`username`=\'\',
`password`=\'enc_a0636379347e32d1ff25e9cfa632d385\',
`enable_cart`=\'no\',
`pricing_scheme`=\'\',
`enable_crg`=\'yes\',
`crg_feedback_profile_id`=\'1\',
`crg_client_mode`=\'standalone\',
`ordering`=\'lightroom\',
`has_user_order`=\'yes\',
`hide_from_autoindex`=\'no\',
`hide_from_search`=\'no\',
`show_breadcrumbs`=\'yes\',
`needs_first_visit`=\'no\',
`created`=\'2016-02-11 12:23:55\',
`modified`=\'2016-02-11 17:02:43\',
`top_level_gallery_path`=\'\',
`top_level_gallery_title`=\'Galleries\'
WHERE `id`=\'53279\''
params:
array (
)|#0 /home/users/uks58215/html/ianlea.net/ttg-be/framework/dao/PdoExtended.php(449): PdoExtended->_throwSqlQueryException('UPDATE `album` ...', Array, 'Update query fa...')
#1 /home/users/uks58215/html/ianlea.net/ttg-be/framework/dao/GenericDAO.php(31): PdoExtended->update('album', Array, Array)
#2 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/application/dao/AlbumDAO.php(131): GenericDAO->editItem(53279, Array)
#3 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/application/controllers/ApiController.php(763): AlbumDAO->editAlbum(53279, Array)
#4 [internal function]: ApiController->setPhotoOrder()
#5 /home/users/uks58215/html/ianlea.net/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /home/users/uks58215/html/ianlea.net/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/index.php(26): Framework->route()
#8 {main}|URL: /ttg-be/publisher/index.php

Offline

#8 2016-02-12 02:11:38

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

Re: Error code

Be sure to update the online component of Publisher too. You're currently at version 2.3.0 in TTG-BE


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

Offline

#9 2016-02-12 02:24:42

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

Okay updated but still got a problem, how do you know which version i am on??

Offline

#10 2016-02-12 02:26:35

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

Latest error

Plug-in error log for plug-in at: C:\Users\ian\AppData\Roaming\Adobe\Lightroom\Web Galleries\CE4-Publisher.lrplugin

**** Error 1

An error occurred while attempting to sort photos on this service.
JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: Update query failed with error: SQLSTATE[HY000]: General error: 1 no such column: top_level_gallery_path
sql:
'UPDATE `album` SET
`id`=\'78809\',
`publisher_root_id`=\'1\',
`parent_id`=\'\',
`type`=\'album\',
`slug`=\'ivy-selected\',
`breadcrumb`=\'\',
`title`=\'IVY SELECTED\',
`description`=\'IVY SELECTED\',
`template`=\'CRG-ianlea-01\',
`page_copy`=\'\',
`page_copy_placement`=\'replace\',
`sidebar_copy`=\'\',
`sidebar_copy_placement`=\'replace\',
`enable_video`=\'no\',
`video_id`=\'\',
`cover_image`=\'\',
`items_per_page`=\'100\',
`enable_maps`=\'no\',
`enable_password`=\'no\',
`username`=\'\',
`password`=\'enc_a0636379347e32d1ff25e9cfa632d385\',
`enable_cart`=\'no\',
`pricing_scheme`=\'\',
`enable_crg`=\'yes\',
`crg_feedback_profile_id`=\'1\',
`crg_client_mode`=\'standalone\',
`ordering`=\'lightroom\',
`has_user_order`=\'yes\',
`hide_from_autoindex`=\'no\',
`hide_from_search`=\'no\',
`show_breadcrumbs`=\'yes\',
`needs_first_visit`=\'no\',
`created`=\'2016-02-11 14:18:30\',
`modified`=\'2016-02-11 17:25:20\',
`top_level_gallery_path`=\'\',
`top_level_gallery_title`=\'Galleries\'
WHERE `id`=\'78809\''
params:
array (
)|#0 /home/users/uks58215/html/ianlea.net/ttg-be/framework/dao/PdoExtended.php(449): PdoExtended->_throwSqlQueryException('UPDATE `album` ...', Array, 'Update query fa...')
#1 /home/users/uks58215/html/ianlea.net/ttg-be/framework/dao/GenericDAO.php(31): PdoExtended->update('album', Array, Array)
#2 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/application/dao/AlbumDAO.php(131): GenericDAO->editItem(78809, Array)
#3 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/application/controllers/ApiController.php(763): AlbumDAO->editAlbum(78809, Array)
#4 [internal function]: ApiController->setPhotoOrder()
#5 /home/users/uks58215/html/ianlea.net/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /home/users/uks58215/html/ianlea.net/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /home/users/uks58215/html/ianlea.net/ttg-be/publisher/index.php(26): Framework->route()
#8 {main}|URL: /ttg-be/publisher/index.php

Offline

#11 2016-02-12 02:36:25

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

Re: Error code

idlea wrote:

Okay updated but still got a problem, how do you know which version i am on??

Just by going to your TTG-BE. Which still shows that the online component version is 2.3.0

Update as per the instructions in the readme.txt file included in the download.
They're also in the changelog: http://ce4.theturninggate.net/docs/doku … _changelog


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

Offline

#12 2016-02-12 02:42:36

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

Re: Error code

Also make sure you're using CE4 Gallery 6.1.8 or newer. Update all your Publisher templates.


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

Offline

#13 2016-02-12 02:47:07

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

IT WAS PUBLISHER THAT WAS THE PROBLEM, THOUGHT I HAD UPDATED IT, PUBLISHER IN TTG-BE THAT IS.
HOW COME IT WAS WORKING FINE LAST WEEK NOTHING CHANGED THEN BAM DOES A LIGHTROOM/TTG NASTY ON ME.
LOVE TTG WHEN IT WORKS BUT EVERYTIME I COME TO IT IT DOESNT

Offline

#14 2016-02-12 02:58:39

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

Re: Error code

No need to shout wink

I don't know why it wasn't working. Perhaps because the Lightroom plug-in was updated and the online component was not.

Maybe this was the first time you tried to change or add an album since updating the plug-in.

In my experience, things like these usually come down to forgetting to complete an update process (logging on to ttg-be to complete an update), using outdated components, and server incompatibilities.


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

Offline

#15 2016-02-12 03:13:53

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

mmmmm changed the server after the error and before I asked for help. The error occurred after I changed the order of the pictures in publisher.
nothing else changed, no updates, nothing.

oh sorry caps are not shouting I was doing something else and got half way through then noticed I had caps on ,, sorry

Thanks again Rod

BTW you live in a nice place, not been up there, only been to LA and New York and didnt stay for long

Offline

#16 2016-02-12 03:23:02

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

Re: Error code

it is a nice place.

Something must be going on. You say you updated the Publisher online component to 2.3.3? It's still showing 2.3.0.

If you did update, did you also log in as Admin to ttg-be?


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

Offline

#17 2016-02-12 05:00:37

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

Admin is TTG BE Admin version: 2.0.5
Now got a white page
Oh back again http://ianlea.net/ttg-be/admin/?a=list_settings

Last edited by idlea (2016-02-12 05:02:50)

Offline

#18 2016-02-12 05:44:46

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

Re: Error code

now showing Publisher 2.3.3 smile


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

Offline

#19 2016-02-12 05:52:25

idlea
Member
Registered: 2013-04-25
Posts: 49

Re: Error code

Great, this plugin is not for the casual user, I only use it 2-3 times a year so every time I use it I have to go through the process of updating.
thanks for looking

Offline

#20 2016-02-12 07:04:54

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

Re: Error code

Great, this plugin is not for the casual user, I only use it 2-3 times a year so every time I use it I have to go through the process of updating.

only if you decide to update to the latest version (which is usually a pretty good idea anyway)


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

Offline

Board footer

Powered by FluxBB