[SOLVED] Upgrading from G3b2 to G3b3

peterm

Joined: 2004-12-13
Posts: 39
Posted: Wed, 2009-10-07 19:00

Hello,
I tried upgrading my Gallery3 installation to the newest beta 3 (non experimental version). I downloaded the zip file, unzipped it and ftp'ed it to my webhost (Dreamhost) overwriting the existing files. I then went to the index.php/upgrader url and clicked to upgrade. The page took a long time to load (I may have hit refresh after two or three minutes I dont remember) then I got the following message:

Quote:

Dang... Something went wrong!
We tried really hard, but it's broken.
Hey wait, you're an admin! We can tell you stuff.
Ok.. tell me stuff!
Help!

If this stuff doesn't make any sense to you, ask for help in the Gallery forums!
So here's the error:
There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL;

File: system/libraries/drivers/Database/Mysqli.php, line: 142
And here's how we got there:

* system/libraries/drivers/Database/Mysqli.php [90]:

Kohana_Mysqli_Result->__construct( mysqli Object
(
)
, 1, ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* system/libraries/Database.php [259]:

Database_Mysqli_Driver->query( ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/libraries/MY_Database.php [56]:

Database_Core->query( ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/helpers/gallery_installer.php [332]:

Database->query( ALTER TABLE {items} CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/helpers/module.php [149]:

gallery_installer::upgrade( 8 )

* modules/gallery/controllers/upgrader.php [60]:

module_Core::upgrade( Array
(
[0] => gallery_installer
[1] => upgrade
)
, Array
(
[0] => 8
)
)

*

Upgrader_Controller->upgrade( gallery )

* system/core/Kohana.php [291]:

ReflectionMethod->invokeArgs( )

* system/core/Event.php [209]:

Kohana::instance( Upgrader_Controller Object
(
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] =>
[ip_address] =>
)

)
)

* system/core/Bootstrap.php [55]:

Event::run( )

* index.php [86]:

require( system/core/Bootstrap.php )

If I try to browse my site it says fatal error in the browser title area ( www.petermucha.com/gallery3 ). I tried uploading the folder again, and browsed to the upgrader, this time the current version changed from 7 to 8 but available version still says 12. I hit upgrade again and they same error message comes up right away.

Also here is what the log says:

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>

2009-10-07 10:49:44 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/12?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:49:48 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/11?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:49:48 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/9?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:49:51 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/12?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:49:54 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/9?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:50:01 -07:00 --- error: Uncaught Kohana_404_Exception: The page you requested, quick/pane/12?page_type=album, could not be found. in file system/core/Kohana.php on line 841
2009-10-07 10:50:17 -07:00 --- error: Uncaught Kohana_Exception: The right_ptr property does not exist in the Item_Model class. in file system/libraries/ORM.php on line 364
2009-10-07 10:50:21 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; in file system/libraries/drivers/Database/Mysqli.php on line 142
2009-10-07 10:51:12 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; in file system/libraries/drivers/Database/Mysqli.php on line 142
2009-10-07 11:16:21 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; in file system/libraries/drivers/Database/Mysqli.php on line 142
2009-10-07 11:21:35 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; in file system/libraries/drivers/Database/Mysqli.php on line 142
2009-10-07 11:25:34 -07:00 --- error: Uncaught Kohana_Exception: The right_ptr property does not exist in the Item_Model class. in file system/libraries/ORM.php on line 364
2009-10-07 11:25:39 -07:00 --- error: Uncaught Kohana_Exception: The right_ptr property does not exist in the Item_Model class. in file system/libraries/ORM.php on line 364
2009-10-07 11:25:59 -07:00 --- error: Uncaught Kohana_Database_Exception: There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; in file system/libraries/drivers/Database/Mysqli.php on line 142
2009-10-07 11:46:28 -07:00 --- error: Uncaught Kohana_Exception: The right_ptr property does not exist in the Item_Model class. in file system/libraries/ORM.php on line 364
2009-10-07 11:46:44 -07:00 --- error: Uncaught Kohana_Exception: The right_ptr property does not exist in the Item_Model class. in file system/libraries/ORM.php on line 364

Info about Apache version from host: Apache/2.2.11 (Unix) PHP/5.2.9 mod_ssl/2.2.11 OpenSSL/0.9.8c mod_fastcgi/2.4.6 DAV/2 SVN/1.4.2
MySQL client version: 5.0.32

Any help would be greatly appreciated. Thanks!
And keep up the great work on this great software.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Fri, 2009-10-09 05:07

See if using an experimental version helps.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
peterm

Joined: 2004-12-13
Posts: 39
Posted: Fri, 2009-10-09 15:16

Hello,

I downloaded the newest experimental version: gallery-gallery3-83203a1 and ran the upgrader. It said that version 15 was available so I hit upgrade all and I got the following error, which may be the same message.

Quote:
Dang... Something went wrong!
We tried really hard, but it's broken.
Hey wait, you're an admin! We can tell you stuff.
Ok.. tell me stuff!
Help!

If this stuff doesn't make any sense to you, ask for help in the Gallery forums!
So here's the error:
There was an SQL error: Unknown column 'left' in 'g3beta_items' - ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL;

File: system/libraries/drivers/Database/Mysqli.php, line: 142
And here's how we got there:

* system/libraries/drivers/Database/Mysqli.php [90]:

Kohana_Mysqli_Result->__construct( mysqli Object
(
)
, 1, ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* system/libraries/Database.php [259]:

Database_Mysqli_Driver->query( ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/libraries/MY_Database.php [56]:

Database_Core->query( ALTER TABLE g3beta_items CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/helpers/gallery_installer.php [338]:

Database->query( ALTER TABLE {items} CHANGE COLUMN `left` `left_ptr` INT(9) NOT NULL; )

* modules/gallery/helpers/module.php [149]:

gallery_installer::upgrade( 8 )

* modules/gallery/controllers/upgrader.php [60]:

module_Core::upgrade( Array
(
[0] => gallery_installer
[1] => upgrade
)
, Array
(
[0] => 8
)
)

*

Upgrader_Controller->upgrade( gallery )

* system/core/Kohana.php [291]:

ReflectionMethod->invokeArgs( )

* system/core/Event.php [209]:

Kohana::instance( Upgrader_Controller Object
(
[uri] => URI Object
(
)

[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] =>
[ip_address] =>
)

)
)

* system/core/Bootstrap.php [55]:

Event::run( )

* index.php [86]:

require( system/core/Bootstrap.php )

Anything else I could try? Any help would be appreciated.

Peter

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22888
Posted: Sat, 2009-10-10 06:17

Can you show us the output from these two SQL queries?

"SHOW CREATE TABLE items"
"SELECT * FROM modules WHERE name='gallery'"

Looks to me like the upgrader did not work properly with the columns `left` `left_ptr`

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
peterm

Joined: 2004-12-13
Posts: 39
Posted: Sat, 2009-10-10 14:44

Hello,

When I run SHOW CREATE TABLE items i get the message: #1146 - Table 'petermucha_gallery3.items' doesn't exist
But when I run SHOW CREATE TABLE g3beta_items

Quote:
SQL result

Host: mysql.petermucha.com
Database: petermucha_gallery3
Generation Time: Oct 10, 2009 at 07:40 AM
Generated by: phpMyAdmin 2.11.9.4 / MySQL 5.0.45-log
SQL query: SHOW CREATE TABLE g3beta_items;
Rows: 1
Table Create Table
g3beta_items CREATE TABLE `g3beta_items` (\n `id` int(9) NOT NULL auto_increment,\n `album_cover_item_id` int(9) default NULL,\n `captured` int(9) default NULL,\n `created` int(9) default NULL,\n `description` varchar(2048) default NULL,\n `height` int(9) default NULL,\n `left_ptr` int(9) NOT NULL,\n `level` int(9) NOT NULL,\n `mime_type` varchar(64) default NULL,\n `name` varchar(255) default NULL,\n `owner_id` int(9) default NULL,\n `parent_id` int(9) NOT NULL,\n `rand_key` float default NULL,\n `relative_path_cache` varchar(255) default NULL,\n `resize_dirty` tinyint(1) default '1',\n `resize_height` int(9) default NULL,\n `resize_width` int(9) default NULL,\n `right` int(9) NOT NULL,\n `sort_column` varchar(64) default NULL,\n `sort_order` char(4) default 'ASC',\n `thumb_dirty` tinyint(1) default '1',\n `thumb_height` int(9) default NULL,\n `thumb_width` int(9) default NULL,\n `title` varchar(255) default NULL,\n `type` varchar(32) NOT NULL,\n `updated` int(9) default NULL,\n `view_count` int(9) default '0',\n `weight` int(9) NOT NULL default '0',\n `width` int(9) default NULL,\n `view_1` binary(1) default '0',\n `view_2` binary(1) default '0',\n PRIMARY KEY (`id`),\n KEY `parent_id` (`parent_id`),\n KEY `type` (`type`),\n KEY `random` (`rand_key`)\n) ENGINE=InnoDB AUTO_INCREMENT=6336 DEFAULT CHARSET=utf8

Similarly the second query produces this result: #1146 - Table 'petermucha_gallery3.modules' doesn't exist

While SELECT * FROM g3beta_modules WHERE name='gallery' produces:

Quote:
SQL result

Host: mysql.petermucha.com
Database: petermucha_gallery3
Generation Time: Oct 10, 2009 at 07:42 AM
Generated by: phpMyAdmin 2.11.9.4 / MySQL 5.0.45-log
SQL query: SELECT * FROM g3beta_modules WHERE name='gallery' LIMIT 0, 30 ;
Rows: 1
id active name version
1 1 gallery 8

So it seems like the upgrader didn't take into account the fact that I have prefixes in my tables, but the gallery itself installed and ran well with the prefixes. How do I get the upgrader to recognize the proper names?

Thanks, Peter

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Sat, 2009-10-10 19:08

That's odd. Your g3beta_items table is at version 10, but your modules table is at version 8. I can't conceive of a scenario where that would happen, barring somebody tinkering with the database. I am willing to believe that hitting refresh in the middle of the upgrader could cause this kind of issue. I've created http://sourceforge.net/apps/trac/gallery/ticket/837 to address this.

I don't know how extensive the damage is, though. Let's try the simple approach of just getting it to continue. Try running this SQL:

UPDATE g3beta_modules SET version=10 WHERE name='gallery';

Then run the upgrader again. Out of curiousity, how many items and groups do you have in your gallery (ballpark estimates are fine)?

---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
peterm

Joined: 2004-12-13
Posts: 39
Posted: Mon, 2009-10-12 04:21

Thanks for the help, I'm sure that pressing refresh didn't help. As all the photos were imported from my galler 2 install which is still live I have around 6500 items, and Rows in GalleryAlbumItem table = 111 (if that's what you meant by groups)
I ran the SQL as request and got back this result:

Quote:
Affected rows: 1 (Query took 3.5007 sec)
SQL query:
UPDATE g3beta_modules SET version =10 WHERE name = 'gallery';

I ran the upgrader, and this time it showed installed version 10, available 15. I hit upgrade all and this time it took about 5 seconds then showed:

Quote:
Dang... Something went wrong!
We tried really hard, but it's broken.
Hey wait, you're an admin! We can tell you stuff.
Ok.. tell me stuff!
Help!

If this stuff doesn't make any sense to you, ask for help in the Gallery forums!
So here's the error:
There was an SQL error: Unknown column 'left_ptr' in 'where clause' - UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, `data` = 'c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98YT
owOnt9dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY6M
S45LjEuMykgR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzOjE0
OiI5OS4yNDcuMjM4LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2OntzOjE
0OiIAKgBvYmplY3RfbmFtZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoibmFtZS
I7czo1OiJhZG1pbiI7czo5OiJmdWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29yZCI7c
zozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q2MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzOjEwOiJs
YXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo1OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29tIjtzOjU
6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M6NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7Tjt9czoxMD
oiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQiO2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACoAc29ydGluZ
yI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI6IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZGIxNDdiIjtn
cm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9rZW58czozMjoiMTk1Y2UzNWRhMjg2YmE4ZWJlOThjMDU
0MzNkNWJjZjIiOw==' WHERE `left_ptr` <= 1 AND `session_id` = 'sjqj39uiclb0f86ctnukjsi8i3'

File: system/libraries/drivers/Database/Mysqli.php, line: 142
And here's how we got there:

* system/libraries/drivers/Database/Mysqli.php [90]:

Kohana_Mysqli_Result->__construct( mysqli Object
(
)
, 1, UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, `data` = 'c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98Y
TowOnt9dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY
6MS45LjEuMykgR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzO
jE0OiI5OS4yNDcuMjM4LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2Ont
zOjE0OiIAKgBvYmplY3RfbmFtZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoib
mFtZSI7czo1OiJhZG1pbiI7czo5OiJmdWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29
yZCI7czozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q2MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzO
jEwOiJsYXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo1OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29
tIjtzOjU6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M6NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7T
jt9czoxMDoiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQiO2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACo
Ac29ydGluZyI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI6IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZ
GIxNDdiIjtncm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9rZW58czozMjoiMTk1Y2UzNWRhMjg2YmE
4ZWJlOThjMDU0MzNkNWJjZjIiOw==' WHERE `left_ptr` <= 1 AND `session_id` = 'sjqj39uiclb0f86ctnukjsi8i
3' )

* system/libraries/Database.php [259]:

Database_Mysqli_Driver->query( UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, `data` = 'c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98YTowOnt
9dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY6MS45LjEuMyk
gR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzOjE0OiI5OS4yNDcuMjM
4LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2OntzOjE0OiIAKgBvYmplY3RfbmF
tZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoibmFtZSI7czo1OiJhZG1pbiI7czo5OiJ
mdWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29yZCI7czozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q
2MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzOjEwOiJsYXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo
1OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29tIjtzOjU6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M
6NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7Tjt9czoxMDoiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQ
iO2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACoAc29ydGluZyI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI
6IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZGIxNDdiIjtncm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9
rZW58czozMjoiMTk1Y2UzNWRhMjg2YmE4ZWJlOThjMDU0MzNkNWJjZjIiOw==' WHERE `left_ptr` <= 1 AND `session_id` = 'sjqj39uiclb0f86ctnukjsi8i3' )

* modules/gallery/libraries/MY_Database.php [56]:

Database_Core->query( UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, `data` = 'c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98YTowOnt
9dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY6MS45LjEuMyk
gR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzOjE0OiI5OS4yNDcuMjM
4LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2OntzOjE0OiIAKgBvYmplY3RfbmF
tZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoibmFtZSI7czo1OiJhZG1pbiI7czo5OiJ
mdWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29yZCI7czozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q
2MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzOjEwOiJsYXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo
1OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29tIjtzOjU6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M
6NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7Tjt9czoxMDoiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQ
iO2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACoAc29ydGluZyI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI
6IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZGIxNDdiIjtncm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9
rZW58czozMjoiMTk1Y2UzNWRhMjg2YmE4ZWJlOThjMDU0MzNkNWJjZjIiOw==' WHERE `left_ptr` <= 1 AND `session_id` = 'sjqj39uiclb0f86ctnukjsi8i3' )

* system/libraries/Database.php [1075]:

Database->query( UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, `data` = 'c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98YTowOnt
9dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY6MS45LjEuMyk
gR2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzOjE0OiI5OS4yNDcuMjM
4LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2OntzOjE0OiIAKgBvYmplY3RfbmF
tZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoibmFtZSI7czo1OiJhZG1pbiI7czo5OiJ
mdWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29yZCI7czozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q
2MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzOjEwOiJsYXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo
1OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29tIjtzOjU6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M
6NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7Tjt9czoxMDoiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQ
iO2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACoAc29ydGluZyI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI
6IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZGIxNDdiIjtncm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9
rZW58czozMjoiMTk1Y2UzNWRhMjg2YmE4ZWJlOThjMDU0MzNkNWJjZjIiOw==' WHERE `left_ptr` <= 1 AND `session_id` = 'sjqj39uiclb0f86ctnukjsi8i3' )

* system/libraries/drivers/Session/Database.php [122]:

Database_Core->update( sessions, Array
(
[last_activity] => 1255282242
[data] => c2Vzc2lvbl9pZHxzOjI2OiJzanFqMzl1aWNsYjBmODZjdG51a2pzaThpMyI7dG90YWxfaGl0c3xpOjg2O19rZl9mbGFzaF98YTowOnt9
dXNlcl9hZ2VudHxzOjEwOToiTW96aWxsYS81LjAgKFdpbmRvd3M7IFU7IFdpbmRvd3MgTlQgNS4xOyBlbi1VUzsgcnY6MS45LjEuMykg
R2Vja28vMjAwOTA4MjQgRmlyZWZveC8zLjUuMyAoLk5FVCBDTFIgMy41LjMwNzI5KSI7aXBfYWRkcmVzc3xzOjE0OiI5OS4yNDcuMjM4
LjI0MyI7bGFzdF9hY3Rpdml0eXxpOjEyNTUyODIyNDI7dXNlcnxPOjEwOiJVc2VyX01vZGVsIjo2OntzOjE0OiIAKgBvYmplY3RfbmFt
ZSI7czo0OiJ1c2VyIjtzOjk6IgAqAG9iamVjdCI7YToxMjp7czoyOiJpZCI7aToyO3M6NDoibmFtZSI7czo1OiJhZG1pbiI7czo5OiJm
dWxsX25hbWUiO3M6MjE6IkdhbGxlcnkgQWRtaW5pc3RyYXRvciI7czo4OiJwYXNzd29yZCI7czozNjoiaHQ4cTc1MDFlYWZkZTBiM2Q2
MzllNWI4ZWM5YzNjMWM4MDBjIjtzOjExOiJsb2dpbl9jb3VudCI7aToxMztzOjEwOiJsYXN0X2xvZ2luIjtpOjEyNTQzMzkxNzQ7czo1
OiJlbWFpbCI7czoyNzoiZ2FsbGVyeWFkbWluQHBldGVybXVjaGEuY29tIjtzOjU6ImFkbWluIjtpOjE7czo1OiJndWVzdCI7aTowO3M6
NDoiaGFzaCI7TjtzOjM6InVybCI7TjtzOjY6ImxvY2FsZSI7Tjt9czoxMDoiACoAY2hhbmdlZCI7YTowOnt9czo5OiIAKgBsb2FkZWQi
O2I6MTtzOjg6IgAqAHNhdmVkIjtiOjE7czoxMDoiACoAc29ydGluZyI7YToxOntzOjI6ImlkIjtzOjM6ImFzYyI7fX1jc3JmfHM6MzI6
IjIyNmRlMWQzYzZmZmM4MDgwODYyNjU1ZDBjZGIxNDdiIjtncm91cF9pZHN8YToyOntpOjA7aToxO2k6MTtpOjI7fXVwZ3JhZGVfdG9r
ZW58czozMjoiMTk1Y2UzNWRhMjg2YmE4ZWJlOThjMDU0MzNkNWJjZjIiOw==
)
, Array
(
[session_id] => sjqj39uiclb0f86ctnukjsi8i3
)
)

* system/libraries/Session.php [303]:

Session_Database_Driver->write( sjqj39uiclb0f86ctnukjsi8i3, session_id|s:26:"sjqj39uiclb0f86ctnukjsi8i3";total_hits|i:86;_kf_flash_|a:0:{}user_agent|s:109:"Mozilla/
5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)";ip_address|s:14:"99.247.238.243";last_activity|i:1255282242;user|O:10:"User_Model":6:{s:14:"*�object_name";s:4:"user";s:9:"*�object";a:12:{s:2:"id";i:2;s:4:"name";s:5:"admin";s:9:"full_name";s:21:"Gallery Administrator";s:8:"password";s:36:"ht8q7501eafde0b3d639e5b8ec9c3c1c800c";s:11:"login_count";i:13;s:10:"
last_login";i:1254339174;s:5:"email";s:27:"galleryadmin@petermucha.com";s:5:"admin";i:1;s:5:"guest";i:0;
s:4:"hash";N;s:3:"url";N;s:6:"locale";N;}s:10:"*�changed";a:0:{}s:9:"*�loaded";b:1;s:8:"*�saved";b:1;s:10:"*�sorting";a:1:{s:2:"id";s:3:"asc";}}csrf|s:32:"226de1d3c6ffc8080862655d0cdb147b";group_ids|a:2:{i:0;i:1;i:1;i:2;}upgrade_token|s:32:"195ce35da286ba8ebe98c05433d5bcf2"; )

* system/core/Event.php [209]:

Session_Core->write_close( )

* system/core/Kohana.php [692]:

Event::run( )

* system/core/Kohana.php [722]:

Kohana::output_buffer( Array
(
[0] => Session Object
(
[input:protected] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] =>
[ip_address] =>
)

)

[1] => write_close
)
)

* system/core/Kohana.php [734]:

Kohana::close_buffers( system.send_headers )

* system/core/Event.php [209]:

Kohana::shutdown( )

* system/core/Bootstrap.php [58]:

Event::run( )

* index.php [86]:

require( system/core/Bootstrap.php )

What should I do next?
Thanks, Peter
(*Edited to shorten long strings to stop scrolling)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Sun, 2009-10-11 17:43

There was an SQL error: Unknown column 'left_ptr' in 'where clause'

Ok that's confusing because in your prior post, the table structure clearly showed that you have a left_ptr column in the items table. Can you check to see if that column exists?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
peterm

Joined: 2004-12-13
Posts: 39
Posted: Mon, 2009-10-12 04:07

It shows that the column was not found when it tried to execute this statement: UPDATE `g3beta_sessions` SET `last_activity` = 1255282242, ... I checked the g3beta_sessions and there is no left_ptr column, the statment that I posted above was from g3beta_items and not sessions. Not sure what this means or why the upgrader is looking in the sessions table not the items table.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7934
Posted: Mon, 2009-10-12 04:55

I suspect that we have multiple errors here. One error is leaving the Database class in a weird state such that when we come along and try to save the session it's getting messed up. Ah, I see what happened. The left column got renamed to left_ptr, but the right column did not get renamed to right_ptr. Let's try doing that by hand with this SQL:

ALTER TABLE g3beta_items CHANGE COLUMN `right` `right_ptr` INT(9) NOT NULL;

See if that fixes it.

---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git

 
peterm

Joined: 2004-12-13
Posts: 39
Posted: Mon, 2009-10-12 13:56

Thanks, that seems to have fixed it. After running the SQL I browsed to the upgrader and it said that my gallery was up to date right away (version 15). And I am able to rotate photos and add items as well. Thanks again for the help!

Peter