I am having problems uploading videos through Drupal (An HTTP error 0 occurred. with Filefield). So any help with that would be great.

I can only pay through a bank wire transaction, so if that is ok with you, contact me please as soon as possible

Thank you

Comments

cog.rusty’s picture

If you have set a $cookie_domain value in settings.php see the release announcement of D6.17 about a required change. If you haven't, ignore this.

Pikos’s picture

Well, I have tried (and thanks for the suggestion) but failed. I got it to $cookie_domain = '.hiphopmusical.eu'; but nothing changed.
The problem is that I am receiving a Drupal Page not found error when I am trying to get in through the log in box or an Access Denied when I am trying through http://www.hiphopmusical.eu/user

The strange thing is that there are a few people who can log in without any trouble

Pikos’s picture

Ok, update

I've reloaded a new settings.php and turns out ini_set('session.use_only_cookies', 1); was missing from the old one.

So now the hiphopmusical.eu/user way works. The log in from the log in block inside a node works too. But on the page it just leads to Page not found, here http://www.hiphopmusical.eu/node/?destination=node

cog.rusty’s picture

That is essentially the http://www.hiphopmusical.eu/node page.

cog.rusty’s picture

If it is not browser-specific, and the usual methods of clearing the browser cookies and clearing the "sessions" table don't work, check for mod_security (http://drupal.org/node/110219).

Pikos’s picture

Thanks you have been a great help. Apparently the reason was really stupid.. There was an actual folder named "node" in the public_html so Drupal went crazy. I deleted it and everything came back to normal. I don't know where the folder came from though. Anyway!

I still need some help with the second issue (the video one)

Μόλις είδα ότι είσαι Έλληνας :) Ευχαριστώ πάρα πολύ!

cog.rusty’s picture

Χε, νο πρόμπλεμ.

From what I have heard, HTTP error 0 is a javascript general error which
- sometimes is caused by a widget requiring the jquery_update module.
- sometimes conceals an underlying problem with the permissions of Drupal's "temp" and "files" directories.
- sometimes is caused by some Firefox add-ons which stupidly pop up an alert window that interrupts the upload.

devenderdagar’s picture

Hi

This could be a memory limit problem. Please try to increase memory using your .htaccess or php.ini and then check. I am sure it is memory problem, nothing else. Let me know if this is solved.

Cheers

Pikos’s picture

Well I thought so too because the smaller videos are uploaded with no problems. But I've changed those to

max_execution_time = 2000 ; Maximum execution time of each script, in seconds
max_input_time = 2000 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume (64M)

and then even to

max_execution_time = 4000 ; Maximum execution time of each script, in seconds
max_input_time = 4000 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M ; Maximum amount of memory a script may consume (64M)

I am sure that Bluehost supports at least 128MB but nothing changed.
The max upload size is set to 500 MB and I am trying to upload a 172 MB one.

I have even added "ini_set('memory_limit', '256M');" to settings.php, "php_value memory_limit 256M" to .htaccess, checked phpinfo.php to see if the settings were alright, installed jquery_update module, played with chmod settings of tmp and file folders but to no success.

The exact problem is: the video is uploaded (according to Chrome) up to 99%, then it says "Waiting for hiphopmusical.eu" and finally the HTTP error 0 pops up.
If this were a memory limit problem I think it would say "Allowed memory size of xx bytes exhausted" on the server error log but instead, for the time period of the upload, it says :

[notice] mod_fcgid: process /usr/local/cpanel/cgi-sys/default.fcgi(17693) exit(idle timeout), get stop signal 15 
[error] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - /usr/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0 

[error] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
[error] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so' - /usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
[error] Premature end of script headers: swfimgproxy.php, referer: http://www.radiopoljubac.biz/Flashchat/chatui.swf
[error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[error] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. 

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

[error] File does not exist: /usr/local/apache/htdocs/wp-app.php

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mcrypt.so' - /usr/lib64/php/modules/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo.so' - /usr/lib64/php/modules/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0 

smartsearch.cgi: Wide character in print at (eval 6) line 85. 

I have contacted the server support and they said that they had no problems uploading anything. But they were not really a help with the log in issue either.
So thanks for the suggestions but if you have any other ideas please contact me.

sagar ramgade’s picture

Hi,

Please check your server tmp folder where it first uploads and then it moves to the destination directory..
Check the permission of the destination directory it has to be 777 and also if your are using cache router or memcache or some other caching try with turning them off.

Acquia certified Developer, Back end and Front specialist
Need help? Please use my contact form

Pikos’s picture

Ι have changed both to 777 but I haven't noticed any changes.

Thanks though!

cog.rusty’s picture

Is everything OK with
- post_max_size
- upload_max_filesize
- Drupal's size limit or user quota in the settings of the upload module or of whichever module you are using for the uploads.

Pikos’s picture

Yes

- It's set on 500MB
- It's on 500MB as well
- I am using Filefield module (which seems to be relevant, see here http://drupal.org/node/297035) and the Video module. The size limits seem to be ok.

I have upgraded the jquery_update to a much more recent but unstable version (6.x-2.0-alpha1) and the issue changed to "Page not found" when the upload is complete. So I might roll back to the previous one.

cog.rusty’s picture

One more thing which might be relevant or not. Some time ago I discovered this in PHP's documentation:

http://php.net/manual/en/ini.core.php#ini.post-max-size
quote:
"Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size."

At the time, I concluded that it was practically impossible to upload large files in PHP because you would need a huge memory_limit, and that you should try flash or java-based tools, with file slicing etc. Others concluded the same thing and set off to develop modules like http://drupal.org/project/swfupload.

But later I encountered many people who were saying that they were doing huge file upload regularly, with the upload module and with a memory_limit as low as 16M, which means that PHP's documentation was wrong on that. I wonder if it is not alway wrong. You could try to test the filesize limits for your memory_limit.

Pikos’s picture

Hmm..the memory_limit is set on 256 MB and I know that 128 MB is supported by. I am not really sure about 256 MB though.
A 97 MB file was uploaded with no problems but I had trouble with the 172 MB one.

Your suggestion might be accurate but the only thing is that I was able to upload much larger files 2 months ago or so.
Anyway I will try to upload a 120 MB or so file and then a 135 MB one. Just to figure this one out

Thanks

cog.rusty’s picture

If you are curious how far your PHP memory can go on that host, try this script and see at which point it crashes with an "out of memory" error.

// memcheck.php

ini_set('display_errors', 'On');
$new_mem_limit = '256M';
$old_mem_limit = ini_set('memory_limit', $new_mem_limit);
print 'Memory limit changed from '. $old_mem_limit .' to '. $new_mem_limit .'<br />';

$step = 1;
while(TRUE) {
  $chunk = str_repeat('0123456789', 1024*1024*$step++);
  print 'Memory usage: '. round(memory_get_usage()/(1024*1024)) . 'M<br />';
  unset($chunk);
}
devenderdagar’s picture

This is sure a server problem. I faced similar kind of problem while uploading videos at my site. Ask your hosting to disable some cache related apache modules. Speak their system administrator about this. Hope it will help you.

Cheers