Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2]   Go Down

Author Topic: [Solved]: cant upgrade from 1.2.1 to 1.3  (Read 14064 times)

0 Members and 1 Guest are viewing this topic.

Jon

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: cant upgrade from 1.2.1 to 1.3
« Reply #20 on: June 14, 2004, 02:08:10 am »

While executing query "SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos" on 0

mySQL error: Unknown column 'thumb' in 'field list'

Code: [Select]
Debug info
USER:

Array
(
    [ID] => 4b6dda2ff46e086d4462bcbc4312f923
    [am] => 1
    [liv] => Array
        (
            [0] => 5011
            [1] => 5012
            [2] => 5013
            [3] => 5031
            [4] => 1947
        )

    [lap] => 1
)

GET :

Array
(
)

POST :

Array
(
)

J.
Logged

erikas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 7
    • eriko.nuotraukos.com
Re: cant upgrade from 1.2.1 to 1.3
« Reply #21 on: June 14, 2004, 01:07:51 pm »

ALTER was not checked! thank you  :D

@erikas: Can you ensure that the MySQL user in user for Coppermine has CREATE, ALTER, INSERT and DROP drivileges on the database
Logged

Jon

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: cant upgrade from 1.2.1 to 1.3
« Reply #22 on: June 16, 2004, 09:05:51 am »

I downgraded back to 1.2.1 but can I get a response please?

J.
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Re: cant upgrade from 1.2.1 to 1.3
« Reply #23 on: June 16, 2004, 09:13:43 am »

Can you verify like erikas that you have all the necessary MySQL permissions?
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Jon

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: cant upgrade from 1.2.1 to 1.3
« Reply #24 on: June 16, 2004, 12:26:27 pm »

The user has all permissions.

J.
Logged

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: cant upgrade from 1.2.1 to 1.3
« Reply #25 on: June 20, 2004, 10:40:20 pm »

I am having the same problem, it is quite frustrating!! I enabled debug mode. this is what the results were. If anyone could help me out that would be awesome!

Quote
Critical error

There was an error while processing a database query.


While executing query "SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos" on 0

mySQL error: Unknown column 'thumb' in 'field list'
 

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cant upgrade from 1.2.1 to 1.3
« Reply #26 on: June 21, 2004, 12:08:20 am »

Use a tool like phpMyAdmin and check your database. Does the categories table have the same structure as the screenshot I attached?

GauGau

[attachment deleted by admin]
Logged

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: cant upgrade from 1.2.1 to 1.3
« Reply #27 on: June 21, 2004, 01:27:40 am »

yes it looks exactley the same.
Logged

200366

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: cant upgrade from 1.2.1 to 1.3
« Reply #28 on: June 26, 2004, 12:35:37 am »

Same Problem to me.


Warning: Undefined index: user_group_list in /var/www/www.xxxxx.xx/myalbum/include/init.inc.php on line 273
Fatal error :

There was an error while processing a database query.

While executing query "SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (1)" on 0

mySQL error: Unknown column 'upload_form_config' in 'field list'



I can't finde an column called 'upload_form_config' in cpg11d_usergroups. Why?


TC
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cant upgrade from 1.2.1 to 1.3
« Reply #29 on: June 26, 2004, 05:43:26 am »

  • make sure you're using cpg1.3.0 (stable), not cpg1.3.0beta
  • make sure you have run update.php
  • check your database with phpMyAdmin (or a similar tool) and have a look at the db: is the missing field from the query actually there? If possible, provide a similar screenshot I attached 3 postings ago
GauGau
Logged

200366

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: cant upgrade from 1.2.1 to 1.3
« Reply #30 on: June 26, 2004, 11:13:43 am »

  • I've installed the newest version cpg1.3.0(stable)


[li] I've run updated.php[/li]

[li] I can't finde the missing field in the db[/li][/list]


What about the update.php?

update.php   644

Is this right?

[attachment deleted by admin]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cant upgrade from 1.2.1 to 1.3
« Reply #31 on: June 26, 2004, 11:21:20 am »

please attach the screenshot that is more readible, I'm an old man who forgot to bring his glasses along ;).
File permissions (CHMOD) of the update file shouldn't matter, 644 is fine on most webhosts. Check your permissions on the database: are you allowed to use ALTER TABLE, CREATE TABLE, INSERT, DELETE ?
If the fields that are supposed to be created during udpate are not in the database, try running the queries manually (to be found in /your_coppermine_folder/sql/update.sql - remember to change your coppermine table prefix in the queries accordingly).

GauGau
Logged

200366

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: cant upgrade from 1.2.1 to 1.3
« Reply #32 on: June 27, 2004, 12:22:09 pm »

hi .. old man  ;)

please click on the attachment to see the full size   ;D

I've fixed the problem.

The field names in my database are different than the update.sql.

Fieldname in my DB:       CPG_
Fiedlname in update.sql:  cpg11d_

But I had to do the changes manually. The script doesn`t work.  >:(

Now it works.

Does anyone know if there is an update for the theme GIALLO?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cant upgrade from 1.2.1 to 1.3
« Reply #33 on: June 27, 2004, 11:20:25 pm »

please click on the attachment to see the full size   ;D
OK, so you modified your attachment...

The field names in my database are different than the update.sql.

Fieldname in my DB:       CPG_
Fiedlname in update.sql:  cpg11d_

But I had to do the changes manually. The script doesn`t work.  >:(
expected behaviour, since the update srcipt and the installer take different coppermine table prefixes into account. That's why I wrote
remember to change your coppermine table prefix in the queries accordingly).

Now it works.
glad you managed it

Does anyone know if there is an update for the theme GIALLO?
we have a strcit policy of "one question per thread" on this board. Don't hijack threads, not even the ones you started. Since your original issue is solved, this thread is tagged as [Solved]. Giallo hasn't been ported to cpg1.3 so far, be the first to do so - read the Guide Converting cpg1.2.x themes to cpg1.3.0 that came with your package of cpg1.3.0 as well. Do not post stuff related to theming on this thread!

GauGau
Logged

jakobl

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: cant upgrade from 1.2.1 to 1.3
« Reply #34 on: July 02, 2004, 09:02:21 am »

Sorry to open this thread again! I seem to have the same problem when updating to 1.3.0 (stable).
I get exactly the same error:

There was an error while processing a database query.


While executing query "SELECT cid, name, description, thumb FROM cpg11d_categories WHERE parent = ''  ORDER BY pos" on 0

mySQL error: Unknown column 'thumb' in 'field list'

My database structure is looking like this (please see attachment):
thus I am missing the thumb-field.

The Mysql user has all permissions.

You can look at jati.dk/coppermine1.3.0/ for further info.

Any suggestions?

[attachment deleted by admin]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cant upgrade from 1.2.1 to 1.3
« Reply #35 on: July 02, 2004, 09:19:03 am »

did you try the same fixes suggested earlier in this thread?

GauGau
Logged

jakobl

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: cant upgrade from 1.2.1 to 1.3
« Reply #36 on: July 02, 2004, 11:18:56 am »

Now it works! Thanks a lot.
I had somehow messed with the update.php file so that it was the 1.2.1 file and not the 1.3.0!
Sorry for the inconvience
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.029 seconds with 15 queries.