Upload problem with Version 1.4.13 and Automatic Video Thumbnail Creation Mod Upload problem with Version 1.4.13 and Automatic Video Thumbnail Creation Mod
 

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

Main Menu

Upload problem with Version 1.4.13 and Automatic Video Thumbnail Creation Mod

Started by gldickens3, October 23, 2007, 10:08:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gldickens3

Hello Coppermine Engineers and Experts,

I just attempted to upgrade from version 1.4.12 to version 1.4.13.  I had previously successfully implemented the "Automatic Video Thumbnail Creation" modifications described here:

http://forum.coppermine-gallery.net/index.php?topic=38774.0

These mods worked fine in versions 1.4.10 and 1.4.12, however, they do not appear to work with version 1.4.13.  That is, I have been unable to get "Batch add files" to work when uploading wmv video files with the "Automatic Video Thumbnail Creation" modification.  Everytime that I attempt to "Batch add files", the video files are not added to the data base and I get the "PB" Result error code.

Here is a summary of my efforts thus far.  I first upgraded, as per the documentation, to version 1.4.13.  Then, I reapplied all of my modifications and tested everything and found that "Batch add files" didn't work.  There are basically two files involved in this mod, upload.php and include/picmgmt.inc.php.  So, I then copied over my 1.4.12 versions of these two files and I got the same "PB" error code when I tried to "Batch add files".  Then, I copied over these two files from the original 1.4.13 release and tested them without applying the "Video Thumbnail Creation" modification at which time the "Batch add files" worked perfectly.

In the process of this episode, I enabled the debug mode as recommended in the Upload Troubleshooting section 4.11.4 of the user documentation and the Debug Info box reported the following with the "PB" error code when the "Batch add files" failed:

USER:
------------------
Array
(
    [ID] => c6452f30d200aa2aa2d6dc53ce864626
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 1320
            [1] => 270
            [2] => 278
            [3] => 136
            [4] => 135
        )

)

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

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cp_filetypes; (0s)
    [1] => select * from cp_plugins order by priority asc; (0s)
    [2] => delete from `gajets_cpm1`.cp_sessions where time<1193161927 and remember=0; (0s)
    [3] => delete from `gajets_cpm1`.cp_sessions where time<1191955927; (0s)
    [4] => select user_id from `gajets_cpm1`.cp_sessions where session_id=md5("2d57af00c85d95d0dc0f9f08e659966f2ccfc5a108de3128c056b9be11ba3be8"); (0s)
    [5] => select user_id as id, user_password as password from `gajets_cpm1`.cp_users where user_id=2 (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 `gajets_cpm1`.cp_users AS u INNER JOIN `gajets_cpm1`.cp_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
    [7] => SELECT user_group_list FROM `gajets_cpm1`.cp_users AS u WHERE user_id='2' 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 cp_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cp_usergroups WHERE group_id= 1 (0s)
    [10] => update `gajets_cpm1`.cp_sessions set time='1193165527' where session_id=md5('2d57af00c85d95d0dc0f9f08e659966f2ccfc5a108de3128c056b9be11ba3be8'); (0s)
    [11] => SELECT user_favpics FROM cp_favpics WHERE user_id = 2 (0s)
    [12] => SELECT name, value FROM cp_config where name REGEXP '^plugin_displayfields_' (0.001s)
    [13] => DELETE FROM cp_banned WHERE expiry < '2007-10-23 18:52:07' (0s)
    [14] => SELECT * FROM cp_banned WHERE (ip_addr='74.237.29.179' OR ip_addr='74.237.29.179' OR user_id=2) AND brute_force=0 (0s)
    [15] => SELECT aid, title FROM cp_albums WHERE 1 (0s)
    [16] => SELECT COUNT(*) FROM cp_pictures WHERE approved = 'NO' (0.001s)
)

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

==========================
POST :
------------------
Array
(
    [d0000] => 80
    [album_lb_id_i0000] => d0000
    [picfile_i0000] => dGVzdC9JTUdfMjA3Mi5qcGc=
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => dGVzdC9JTUdfMjA4OC5qcGc=
    [pics] => Array
        (
            [0] => i0002
        )

    [album_lb_id_i0002] => d0000
    [picfile_i0002] => dGVzdC9NaXJvci53bXY=
    [album_lb_id_i0003] => d0000
    [picfile_i0003] => dGVzdC9ydW53YXltb3ZpZTJnbGQud212
    [insert] => Insert selected files
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.7 - OK
------------------
mySQL version: 5.0.27-standard
------------------
Coppermine version: 1.4.13(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support:
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 5.0.27
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 - 17 queries in 0.002 seconds - Album set : ; Meta set: ;


It is quite possible that I am doing something wrong, however, I am fairly certain that I have reimplemented these modifications correctly especially since the 1.4.12 versions of upload.php and include/picmgmt.inc.php do not work either (with the 1.4.13 code base) although they worked fine in the preceding overall implementation of 1.4.10 and 1.4.12.  All the while, the new 1.4.13 version works fine when unmodified.

Please reply and let me know how that you recommend that I proceed.  I would like to get these mods working again with version 1.4.13, however, I will otherwise need to revert back to the overall 1.4.12 implementation.

Thanks in advance for your help!

Gordon Dickens

gldickens3

I failed to also mention that the "Automatic Video Thumbnail Creation" modifications to the upload.php file generated preview thumbnails for video files during the "Batch add files" process in prior versions 1.4.10 and 1.4.12.  However, this feature is not working either with version 1.4.13.  The preview thumbnails created with the modified upload.php are now the generic (wmv/mov/mpeg) thumbnails instead of having been generated from the video frames themselves.

Thanks,

Gordon

gldickens3

Should I have posted this support request in a different area of the Coppermine forums such as Modifications/Add-Ons/Hacks, Support/cpg1.4.x Support/cpg1.4/Install or possibly somewhere else? 

Sorry if I posted in the wrong forum area.

Hopefully, someone will respond soon.

Thanks,

Gordon

Abbas Ali

Quote from: gldickens3 on October 24, 2007, 07:38:25 PM
Should I have posted this support request in a different area of the Coppermine forums such as Modifications/Add-Ons/Hacks, Support/cpg1.4.x Support/cpg1.4/Install or possibly somewhere else? 

Yes - you should have posted this issue in the same thread where the mod is described.

Anyways my wild guess is that you didn't applied the mod properly to the upgraded cpg1.4.13. Make sure that you modified all the mentioned files. There isn't any difference (functionality and codebase wise) between cpg1.4.12 and cpg1.4.13, so the mod should work on both versions.
Chief Geek at Ranium Systems

gldickens3

Thanks for your reply.  I will go back and re-implement the mod again.  Hopefully, I will get it right this time. 

Again, sorry that I didn't post this thread in the proper forum area where the mod was described. If you would like then feel free to move this thread to where ever it would be more appropriate.

Thanks again,

Gordon

gldickens3

Ok, I went back and re-implemented the mod and it still does not work.  Just as before, I get the "PB" error code when I add any video clip with "Batch add files". I have now applied the mod three times without success so I feel certain that I am doing the mod correctly especially since I successfully applied the mod previously in versions 1.4.10 and 1.4.12.

Gordon

gldickens3

Tail between legs, head low and groaning. I solved my own problem.

The albums/edit directory's permissions had somehow gotten changed.  Once that I changed the permissions of the edit directory back to 777 then everything started working.

Thanks for your help.  I apologize for taking up space on this forum with such a stupid  mistake.

Gordon