[Solved]: Problems uploading videos [Solved]: Problems uploading videos
 

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

[Solved]: Problems uploading videos

Started by Mahias, August 04, 2004, 12:14:20 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Mahias

First of all: YES, I have searched the forums over and over again without any result.

I'm running my gallery on this adress: http://captures.no-ip.org/index.php . It's in swedish, but I'm gonna try to translate the messages I got.

I have a problem, I want to upload some movies. They are in divx/avi-format, but when I go to "Batch add objects" nothing happends. Only the PB-sign shows. I have also tried to upload it via the online uploader, but it returns "0 objects uploaded". I have all folders and files in /albums chmoded to 777. And file-permissions i set to ALL in config. The movies is 4, 5, and 16 MB, so I'm aware of the online upload limitations. Is it at all possible to add movies from "batch add objects"?

What could the problem be?

omniscientdeveloper


Mahias

Quote from: omniscientdeveloper on August 04, 2004, 01:03:03 AM
searching for "upload", I found:

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


-omni
How is that thread suppose to help me? I already have avi in filtype table.

omniscientdeveloper

The only other thing that can cause this message then is weird file names and not selecting the album before you batch add the files. I'll need more information, if this isn't the case.


-omni

Mahias

I tried to rename the file to abc.avi, but that didn't work. What kind om info to you need? Here's the debug info:


USER:
------------------
Array
(
    [ID] => b82eef3978c977d691ae01df153ab1bb
    [am] => 1
    [liv] => Array
        (
            [0] => 2697
            [1] => 268
            [2] => 2640
            [3] => 1128
            [4] => 3704
        )

    [lap] => 2
    [uid] => 18
    [search] => ###lisa
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => Mathias
    [user_password] => ********
    [user_lastvisit] => 2004-07-31 12:29:49
    [user_regdate] => 2004-02-04 17:52:40
    [user_group_list] =>
    [user_email] =>
    [user_website] => http://stormaz.servebeer.com/~captures
    [user_location] => Sthlm
    [user_interests] => Datorer, film m.m.
    [user_occupation] => Student
    [user_actkey] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [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] => 0
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg11d_filetypes;
    [1] => SELECT * FROM cpg11d_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'c7a81b41061b9b204f9edefab0d7d99e'
    [2] => 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)
    [3] => SELECT group_name FROM  cpg11d_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg11d_banned WHERE expiry < 1091614181
    [5] => SELECT * FROM cpg11d_banned WHERE ip_addr='81.216.198.90' OR ip_addr='81.216.198.90' OR user_id=1
)

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

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

    [album_lb_id_i0000] => d0000
    [picfile_i0000] => ZmlsbWVyL0xlbmFfUGhpbGlwc3Nvbi9hYmMuYXZp
    [album_lb_id_i0001] => d0000
    [picfile_i0001] => ZmlsbWVyL0xlbmFfUGhpbGlwc3Nvbi9MZW5hX1BoaWxpcHNzb25fU2thbnNlbl8yMDA0X1Nsb3cuYXZp
    [insert] => Sätt in valda objekt
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.0.17-log
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 4.0.17
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.2.1.1
==========================
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/local/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.436 seconds - 6 queries in 0.01 seconds - Album set :

Joachim Müller

I guess this is related to your server setup. You seem to be running your own server, so I recommend you check the config (look at the sticky threads on this sub-board). Are you able to upload other large files that are about the same size?

GauGau

Mahias

I do not run my own server. I have space on my friends server.

My videos are large, so I don't want to upload it va the browser. Is it possible to add videos with batch add?

omniscientdeveloper

QuoteIs it possible to add videos with batch add?

;) unless I missed something, that's what the docs should say. :) Try uploading coppermine to your webspace again.



-omni

Mahias

Quote from: omniscientdeveloper on August 04, 2004, 03:35:56 PM
QuoteIs it possible to add videos with batch add?

Try uploading coppermine to your webspace again.



-omni
I already tried that. Nothing works. I also tried to add mpg-movies but then it complains about GD cannot handle that file type. But GD is only for pictures and shuold not handle movies. I'm really confused right now  ???

Joachim Müller

Post a test user account (non-admin) with upload privileges, so we can check.

GauGau

Mahias

Ok, test/321 is now created, and a cathegory with a album called test. But I don't think it will work because I got some error. I still want to add movies with batch add, NOT the online uploader.

omniscientdeveloper

#11
Grr  >:(

I wonder why you never said anything about this error?
"Warning: opendir(./albums/edit): failed to open dir: No such file or directory in /home/captures/public_html/upload.php on line 406"

You'll have to create a folder named "edit" in your albums directory.


-omni

[edit]
Also, download 1.3.1 and (http://cvs.sourceforge.net/viewcvs.py/*checkout*/coppermine/stable/include/picmgmt.inc.php?rev=1.8) and run update.
[/edit]

Joachim Müller

your edit folder within the albums folder appears to be missing. Create it and make sure you have CHMODed it as suggested in the docs.

GauGau

Mahias

Sorry about that,  but the problem isn't solved. How can I upload 20+ MB movies? It's impossible to to it with the uploader without editing php.ini. I still get an error when batch adding movies.

Joachim Müller

do as I suggested, this error has to be corrected first - you have to make sure single http uploads work properly before we can start looking into upload of large multimedia files.

GauGau

Mahias

Quote from: GauGau on August 04, 2004, 05:36:51 PM
do as I suggested, this error has to be corrected first - you have to make sure single http uploads work properly before we can start looking into upload of large multimedia files.

GauGau
Do you mean this thread? http://forum.coppermine-gallery.net/index.php?topic=5841.0

Correct me if I'm wrong, but these variables are for uploading. I'm not uploading anything when using batch add. There's not only problems with large files, but also with small files. I tried to upload a small zip-file to test, but the PB-sign cumes up. Do I need to change something from the default configuration in cpg?

omniscientdeveloper

until this "<!--Coppermine Photo Gallery 1.3.0-->" says "<!--Coppermine Photo Gallery 1.3.1-->" or "<!--Coppermine Photo Gallery 1.3.2-->", I can't help.  :-\\

When you do that, enable debug.


-omni

Mahias

Quote from: omniscientdeveloper on August 05, 2004, 12:53:39 AM
until this "<!--Coppermine Photo Gallery 1.3.0-->" says "<!--Coppermine Photo Gallery 1.3.1-->" or "<!--Coppermine Photo Gallery 1.3.2-->", I can't help.  :-\\

When you do that, enable debug.


-omni
That would take forever because of all my mods. I'll fix it thiss weekend and answer here when it's done.

omniscientdeveloper

that's most likely part of your problem: you've made modifications

Mahias

After upgrading to 1.3.1 everything workes, a little bit embarrasing to be honest  :-\\