Image Upload Module v0.4 Error Message

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2007, 12:52 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I´ve tried to install Image Upload Module v0.4 und everything works up to the point where I submit a story.

The error message is:
Warning: move_uploaded_file(/srv/empty/blog/bewertung/images/img_17.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /srv/www/www-netbi-blog/http/blog/bewertung/modules/image_upload/image_upload_main.php on line 95

I´ve replaced the module ThickBox with v0.3 (even though v0.1 is displayed at Module Management) and set both modules with their files and subdirectories to 777 rights. I also set ThickBox false with image_upload_settings.php but the effect is the same.

What went wrong?
Reply With Quote
  #2 (permalink)  
Old 05-21-2007, 01:56 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
It looks like the file is not being uploaded. Double-check to make sure you have the link_field stuff enabled in the readme. There's about 2-3 files that need to be edited and they are usually quite easy to overlook.

Best,
Cent

Quote:
Originally Posted by tbones View Post
I´ve tried to install Image Upload Module v0.4 und everything works up to the point where I submit a story.

The error message is:
Warning: move_uploaded_file(/srv/empty/blog/bewertung/images/img_17.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /srv/www/www-netbi-blog/http/blog/bewertung/modules/image_upload/image_upload_main.php on line 95

I´ve replaced the module ThickBox with v0.3 (even though v0.1 is displayed at Module Management) and set both modules with their files and subdirectories to 777 rights. I also set ThickBox false with image_upload_settings.php but the effect is the same.

What went wrong?
Reply With Quote
  #3 (permalink)  
Old 05-21-2007, 03:58 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Quote:
Originally Posted by cent View Post
It looks like the file is not being uploaded. Double-check to make sure you have the link_field stuff enabled in the readme. There's about 2-3 files that need to be edited and they are usually quite easy to overlook.

Best,
Cent
I´ve went through the code line by line and I´ve found the following:

-I´ve changed Enable_Extra_Field_1, Field_1_Title and Field_1_Instructions according to the manual and left searchable and other items of Field 1 untouched.

-I had a closer look at submit_step_2.tpl (v9.5) and found only these lines of code dealing with "form action":
<fieldset><legend>{#PLIGG_Visual_Submit2_Details#} </legend>
<form action="{$URL_submit}" method="post" name="thisform" id="thisform">

This is possibly the problem, I´ve changed them to
<form action="{$URL_submit}" method="post" name="thisform" id="thisform" enctype="multipart/form-data"> and started praying - for nothing! :-)
Reply With Quote
  #4 (permalink)  
Old 05-23-2007, 04:42 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Maybe I didn´t point it out clearly: It still doesn´t work!

I´ve created the "images" folder with 777 rights on my own so this shouldn´t be the cause.
Reply With Quote
  #5 (permalink)  
Old 05-24-2007, 12:18 AM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 180
Hi tbones,

The form enctype was part of the problem. Without this, binary data can't be attached -- other than what is entered in on the form as text.

PM me your site URL and I'll set up a test account and do some testing if the site isn't live yet.

Best,
Cent


Quote:
Originally Posted by tbones View Post
I´ve went through the code line by line and I´ve found the following:

-I´ve changed Enable_Extra_Field_1, Field_1_Title and Field_1_Instructions according to the manual and left searchable and other items of Field 1 untouched.

-I had a closer look at submit_step_2.tpl (v9.5) and found only these lines of code dealing with "form action":
<fieldset><legend>{#PLIGG_Visual_Submit2_Details#} </legend>
<form action="{$URL_submit}" method="post" name="thisform" id="thisform">

This is possibly the problem, I´ve changed them to
<form action="{$URL_submit}" method="post" name="thisform" id="thisform" enctype="multipart/form-data"> and started praying - for nothing! :-)
Reply With Quote
  #6 (permalink)  
Old 02-11-2008, 02:27 PM
New Pligger
Pligg Version: 9
Pligg Template: default
 
Join Date: Nov 2007
Posts: 3
- how did you resolve?

thanks - J
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload Module (File and Image Attachment) Yankidank Free Modules 268 02-03-2012 12:19 PM
Simple question: Has anyone got the image upload module to work? Citizenslide Questions and Comments 7 07-30-2009 02:44 AM
[MOD] Image Upload Module (v0.93) -- Please test cent Questions and Comments 54 05-01-2009 11:12 PM
Image Upload Module - Really confused thefandango Questions and Comments 3 01-05-2009 12:01 PM
Latest SVN - Image Upload v0.4 broken? aaronpais Questions and Comments 3 05-22-2007 04:19 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development