https://www.icyphoenix.com/viewtopic.php?f=26&t=1033
-----------------------------------
Rucksacktraeger1981
Sun 28 Jan, 2007 19:31

FAP SUPPORT - I Spend The Whole Night With The Resize Problem
-----------------------------------
Hi peoples,

I spend the whole night with that resize problem. here is what I want:

People can upload images upt to 2mb size (my server allows up to 2mb, see [url=www.rucksacktraeger.de/test/phpinfo.php]my phpinfo.php) and they will be resized automaticly to maximum size of 800x600px. thumbnails are deactivated.

Therefore I use the settings in acp as displayed in attached file.

picture uload works fine if nuffload is not anabled. but if picture width < 1024 then it results in a white page and nothing happens.

I guess I need to enable nuffload in order to resize pictures, right?? But as soon as I enable it, I get the following error:

[quote]Warning: copy(http://www.rucksacktraeger.de/cgi-data/tmp/1d96545c36902b1cb6c3883fe6de58fc_actualdata0) [function.copy]: failed to open stream: HTTP wrapper does not support writeable connections. in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 107

Warning: fopen(http://www.rucksacktraeger.de/cgi-data/tmp/1d96545c36902b1cb6c3883fe6de58fc_qstring) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 110

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 111

Warning: fclose(): supplied argument is not a valid stream resource in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 112

Warning: unlink(http://www.rucksacktraeger.de/cgi-data/tmp/1d96545c36902b1cb6c3883fe6de58fc_qstring) [function.unlink]: No such file or directory in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 207

Warning: fopen(http://www.rucksacktraeger.de/cgi-data/tmp/1d96545c36902b1cb6c3883fe6de58fc_qstring) [function.fopen]: failed to open stream: HTTP wrapper does not support writeable connections. in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 208

Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 209

Warning: fclose(): supplied argument is not a valid stream resource in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php on line 210

Warning: Cannot modify header information - headers already sent by (output started at /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php:107) in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/includes/page_header.php on line 612

Warning: Cannot modify header information - headers already sent by (output started at /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php:107) in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/includes/page_header.php on line 614

Warning: Cannot modify header information - headers already sent by (output started at /mnt/cr1/07/890/00000011/htdocs/foren/mbw/album_nuffload.php:107) in /mnt/cr1/07/890/00000011/htdocs/foren/mbw/includes/page_header.php on line 615
[/quote]

I have no idea what's wrong... here is the code of album_nuffload.php on line 107
[code linenumbers=false]$move_file($_FILES[$key_names[$a]][tmp_name], $path_to_bin . "tmp/" . $psid . "_actualdata" . $a);[/code]

do you have any idea???

thanks a lot
Peter

forum on [url=http://mbw.rucksacktraeger.de]http://mbw.rucksacktraeger.de


-----------------------------------
lefty74
Sun 28 Jan, 2007 21:04

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
For your Nuffload problem, see here
http://www.icyphoenix.com/viewtopic.php?t=997

For the upload_max_filesize, this helped me (well my host did that for me)

create an .htaccess file with the following text:

[code]php_value upload_max_filesize 8M[/code]

save it and upload it into your root folder

This seems to have worked for re. the upload limit and I am now at 8MB, not sure whether this will actually work on other servers though but it is worth a try, otherwise get in touch with your host and ask them to up the limit!

Can't help you with the other problem, I have width and length at 500 and it resizes just fine for images that are about 4MB and 3500px wide. I tried 1024 and 1024 and it worked as well.


-----------------------------------
Rucksacktraeger1981
Sun 28 Jan, 2007 21:57

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
Hi,

thanks for your Idea. I spend yesterday also many houres with the limit image width, but it didn't work. I guess, there is also a version conflict with php2.x

Could you please, please, please send me by email (AfroPete at gmx dto de) the following of your files because than I can compare them with the newest versions:

includes/bbcode.php
admin/admin_board.php
templates/subSilver/admin/board_config_body.tpl

But this MOD changes only the fotos that are uploaded by attachment mod, not by full album, right?

I have studied all nuffload posts, but none, even your mentioned seems to give me an answer :-(

the sad Pete



Add: what is this???
Settings in ACP:
"Enabling this option, each image will be resized on the fly if needed " = yes
"Enable Nuffload" = yes
"Enable image resizing" = yes
(by the way, is it nececary to aktivate all 3 settings in order to resize pictures automaticly?)

If I want to upload any picture now, it says: 

Method Not Allowed
The requested method POST is not allowed for the URL /cgi-data/nuffload.cgi.

What's going on here?


-----------------------------------
lefty74
Sun 28 Jan, 2007 22:36

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
Hi,
sending you the files would not help you. They are modded quite a bit so comparing won't help you much.

Did you CHMOD the files as per the install file?


Also, I only just noticed 

In your ACP, 

Path from phpBB root to cgi-bin (i.e. ./cgi-bin/ if you have phpBB in a sub folder)

The input field should be something like this:

../cgi-bin/  or
./cgi-bin/


not cgi-data :roll:


-----------------------------------
Rucksacktraeger1981
Sun 28 Jan, 2007 23:03

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
index.php of phpbb2 is here:
http://www.rucksacktraeger.de/foren/mbw/index.php

cgi-bin is here:
http://www.rucksacktraeger.de/cgi-data

therefore cgi-bin in acp is here:
../../cgi-data/

because the cgi-bin of my provider is hidden, they offer me a cgi-data folder where i can put my cgi's.

cgi-data/tmp is chmode 777
and 
cgi-data/nuffload.cgi is chmode 755

so it should work!

but why there is the error:

[quote]Method Not Allowed
The requested method POST is not allowed for the URL /cgi-data/nuffload.cgi. [/quote]

Could it be, that my provider allows me not the following code:
[quote]$post_data_file = "tmp/" . $psid . "_postdata";[/quote]

PLEASE send me your files! even if you changed them much with other mods!


-----------------------------------
lefty74
Sun 28 Jan, 2007 23:39

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
Sorry, you will need to wait for Artie or MG.

I do not know what else it could be.


-----------------------------------
Artie
Mon 29 Jan, 2007 21:32

Re: I Spend The Whole Night With The Resize Problem
-----------------------------------
[quote user="Rucksacktraeger1981" post="8176"]
Add: what is this???
Settings in ACP:
"Enabling this option, each image will be resized on the fly if needed" = yes
"Enable Nuffload" = yes
"Enable image resizing" = yes
(by the way, is it nececary to aktivate all 3 settings in order to resize pictures automaticly?)
[/quote]

[highlight=#FFFFAA]Enabling this option, each image will be resized on the fly if needed[/highlight] ... This is for the standard upload.. just like it reads, if the image needs to be resized to meet your ACP settings it will be.

In the ACP ... everything below [highlight=#FFFFAA]Nuffload Configuration[/highlight] pertains to Nuffload. If Enable Nuffload is set to Nein (No) everything else under Nuffload Configuration is ignored.

You are not required to use Nuffload. I use it myself only because it allows for multiple images in a zip file to be uploaded. Some use it for the Progress Bar feature and some for the Perl uploader instead of PHP (I'm not exactly sure of the advantage it)


