Go Back   Pligg CMS Forum > Pligg Development > Modification Tutorials

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2007, 11:52 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Image Upload Module v0.4 Error Message

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, 12:56 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
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?
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #3 (permalink)  
Old 05-21-2007, 02:58 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Image Upload Module v0.4 Error Message

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, 03:42 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
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-23-2007, 11:18 PM
cent's Avatar
Constant Pligger
 
Join Date: Jan 2007
Location: New York, NY
Posts: 183
Thanks: 24
Thanked 65 Times in 26 Posts
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! :-)
__________________
All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating.

Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9)
Reply With Quote
  #6 (permalink)  
Old 02-11-2008, 01:27 PM
New Pligger
Pligg Version: 9
Pligg Template: default
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
encountered same error

- how did you resolve?

thanks - J
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Upload Module -- Call for feature requests cent Modification Tutorials 12 11-15-2008 12:13 PM
About the image upload module rockxie Module Support 3 08-05-2008 05:41 PM
Image Upload 0.4 Module ziadchatila Module Support 3 08-05-2008 04:40 PM
[MOD] Image Upload Module (v0.93) -- Please test cent Modification Tutorials 48 05-16-2008 08:08 PM
Latest SVN - Image Upload v0.4 broken? aaronpais General Help 3 05-22-2007 03:19 PM


Search Engine Friendly URLs by vBSEO 3.2.0