Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post 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 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(h**p://***.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(h**p://***.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(h**p://***.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(h**p://***.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


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


do you have any idea???

thanks a lot
Peter

forum on h**p://mbw.rucksacktraeger.de

settings.jpg
Description: this is is my setting.
if file width > 1024 it results in a white page and nothing happens!!!!!!!! 

Download
Filename: settings.jpg
Filesize: 110.34 KB
Downloaded: 812 Time(s)

 



 
Rucksacktraeger1981Send private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post 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: [Download] [Hide]
  1. php_value upload_max_filesize 8M 


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.
 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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?
 



 
Rucksacktraeger1981Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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
 




____________
lefty74
www.zoocrew.eu - help us save our wildlife
 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Spend The Whole Night With The Resize Problem 
 
index.php of phpbb2 is here:
h**p://***.rucksacktraeger.de/foren/mbw/index.php

cgi-bin is here:
h**p://***.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.


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


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



 
Rucksacktraeger1981Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post 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.
 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: I Spend The Whole Night With The Resize Problem 
 
Rucksacktraeger1981 wrote: [View Post]

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?)


Enabling this option, each image will be resized on the fly if needed ... 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 Nuffload Configuration 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)
 



 
ArtieSend private message  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron