Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Recent upgrade - now problems with Batch Adding  (Read 4810 times)

0 Members and 1 Guest are viewing this topic.

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Recent upgrade - now problems with Batch Adding
« on: August 21, 2006, 05:22:07 pm »

I manually upgraded from 1.2.1 to 1.4.8 today, and all appears well.  However, my "upload" directory was previously called "userpics" and I found it had to be renamed for Batch Add to see it.  I called it "uploads" and replaced all data in cpg11d_pictures >> filepath, and the albums displayed correctly.  All subfolders below "uploads" also now display correctly, as do the files contained in them (thumbnails are generated under Batch Add too).

Now though, when I run Batch Add, I get a "click for details or to reload" error which then shows "Critical error: There was an error while processing a database query".

Ideas?

Logged

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Recent upgrade - now problems with Batch Adding
« Reply #1 on: August 21, 2006, 06:26:19 pm »

Having set debug on, I get the following after selecting the album I wish to Batch Add from:-

/include/functions.inc.php
    * Warning line 2922: cannot yet handle MBCS in html_entity_decode()!

/searchnew.php
    * Notice line 101: Undefined variable: sel_album

    * Notice line 169: Undefined variable: fullimagesize
    * Notice line 170: Undefined variable: fullimagesize

Each of these errors is multiplied by the number of pics in the album.

I have searched without luck for some clarity.  Help?
Logged

Nibbler

  • Guest
Re: Recent upgrade - now problems with Batch Adding
« Reply #2 on: August 21, 2006, 06:33:33 pm »

You are not supposed to batch upload from userpics, read the manual. If the notices mean nothing to you then don't enable them.
Logged

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Recent upgrade - now problems with Batch Adding
« Reply #3 on: August 31, 2006, 08:43:55 pm »

You are not supposed to batch upload from userpics, read the manual. If the notices mean nothing to you then don't enable them.

Firstly, thank you for taking the trouble to reply.

Secondly, whilst you may assume I'm a novice, don't assume I'm a moron.

Regards,
« Last Edit: August 31, 2006, 10:40:54 pm by asprn »
Logged

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Recent upgrade - now problems with Batch Adding
« Reply #4 on: August 31, 2006, 10:38:33 pm »

I have tried several suggested fixes but to no avail.

The result shown is "click for details or to reload".  The debug shown is:-

Code: [Select]
USER:
------------------
Array
(
    [ID] => 90d09d03fcff944502e3c951a5031c0d
    [am] => 1
    [sort] => ta
    [liv] => Array
        (
            [0] => 746
            [1] => 747
            [2] => 748
            [3] => 749
            [4] => 750
        )

    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => Substituted_username
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg11d_filetypes; (0s)
    [1] => select * from cpg11d_plugins order by priority asc; (0s)
    [2] => delete from `cm_album_copp1`.cpg11d_sessions where time<1157052784 and remember=0; (0s)
    [3] => delete from `cm_album_copp1`.cpg11d_sessions where time<1155846784; (0s)
    [4] => select user_id from `cm_album_copp1`.cpg11d_sessions where session_id=md5("2e4594d8ae218a0bf1ba30a0947951b91588cd91ab32332d30848c609e9a609d"); (0s)
    [5] => select user_id as id, user_password as password from `cm_album_copp1`.cpg11d_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `cm_album_copp1`.cpg11d_users AS u INNER JOIN `cm_album_copp1`.cpg11d_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `cm_album_copp1`.cpg11d_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => 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) (0s)
    [9] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1 (0s)
    [10] => update `cm_album_copp1`.cpg11d_sessions set time='1157056384' where session_id=md5('2e4594d8ae218a0bf1ba30a0947951b91588cd91ab32332d30848c609e9a609d'); (0s)
    [11] => SELECT user_favpics FROM cpg11d_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg11d_banned WHERE expiry < '2006-08-31 20:33:04' (0s)
    [13] => SELECT * FROM cpg11d_banned WHERE (ip_addr='86.137.183.60' OR ip_addr='86.137.183.60' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT aid, title FROM cpg11d_albums WHERE 1 (0.001s)
    [15] => SELECT COUNT(*) FROM cpg11d_pictures WHERE approved = 'NO' (0.002s)
)

==========================
GET :
------------------
Array
(
    [insert] => 1
)

==========================
POST :
------------------
Array
(
    [d0000] => 192
    [pics] => Array
        (
            [0] => i0000
        )

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => dXBsb2Fkcy90ZXN0L2R1Zy5qcGc=
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.3 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.8(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.21
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.065 seconds - 16 queries in 0.003 seconds - Album set : ; Meta set: ;

After clicking on the Result (as above), the critical error shows the following code:-

Code: [Select]
While executing query "INSERT INTO cpg11d_pictures (aid, filepath, filename, filesize, total_filesize, pwidth, pheight, ctime, owner_id, owner_name, title, caption, keywords, approved, user1, user2, user3, user4, pic_raw_ip, pic_hdr_ip, position) VALUES ('192', 'uploads/test/', 'dug.jpg', '28717', '60424', '519', '389', '1157056204', '1', 'Substituted_username','', '', '', 'YES', '', '', '', '', '', '', '0')" on 0

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

Any insight much appreciated - thanks.
Logged

Nibbler

  • Guest
Re: Recent upgrade - now problems with Batch Adding
« Reply #5 on: August 31, 2006, 10:41:33 pm »

The position column is added by update.php when you update your gallery. Make sure

1) You actually ran update.php
2) You updated all Coppermine files properly, in particular sql/update.sql
3) The mysql user you use for Coppermine has the permissions required to ALTER a table.

Also, the latest stable version of Coppermine is currently 1.4.9.
Logged

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Recent upgrade - now problems with Batch Adding
« Reply #6 on: August 31, 2006, 10:46:45 pm »

Thanks for that.  In response:

1.  The user is in Administrators group, therefore has full permissions.
2.  I had my webhosts upgrade - I didn't do it personally.  I believe update.php was run though.
3.  On checking sql/update.sql, I see it has not been updated! :(  Can I manually overwrite with the correct version (and basic.sql & restore_config.sql)?


Logged

asprn

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Recent upgrade - now problems with Batch Adding
« Reply #7 on: August 31, 2006, 10:50:40 pm »

To clarify (I may be wrong in the last info) - the date/time stamp on sql/update.sql is 8th June 2006 00:25 hrs.

Logged

Nibbler

  • Guest
Re: Recent upgrade - now problems with Batch Adding
« Reply #8 on: August 31, 2006, 11:00:48 pm »

Do yourself a favour and update your gallery manually to 1.4.9 following our instructions.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.