MDN

Go Back   Mambo - Forums Closed for posting > Mambo 3rd Party Addons > Components > MamboBoard

Reply
 
Thread Tools Search this Thread Display Modes
Old December 9th, 2005, 15:01   #1
mnhim
 
Join Date: Dec 2005
Posts: 18
mnhim is on a distinguished road
Default Simpleboard keeps asking for file to upload

I have just installed Simpleboard and configured it to allow file and image attached. I assumed this is an option when you post a message you can choose to upload or not. But when I submit the post (without a file to upload), I get an error message that says:

"Please select a file before uploading. Your file has not been uploaded. Try posting again or editing the post".

Then I get:

Warning: unlink(/usr/home/mnhim2/public_html/components/com_simpleboard/uploaded/files/a8c25bc7428853cc0732231a9be34c26.): No such file or directory in /usr/home/mnhim2/public_html/components/com_simpleboard/file_upload.php on line 41

Warning: unlink(/usr/home/mnhim2/public_html/components/com_simpleboard/uploaded/images/013d1e8242c6d7171636e6915ce69a93.): No such file or directory in /usr/home/mnhim2/public_html/components/com_simpleboard/image_upload.php on line 40



So I turned off the uploading feature, and I still get the same error message. How do I fix this problem?

Posting it with a file will work fine, but most of the time you post with out a file. How do I post it without a file and not get the error.

Last edited by mnhim : December 10th, 2005 at 01:56.
mnhim is offline   Reply With Quote
Old December 13th, 2005, 12:15   #2
Rabble
 
Join Date: Mar 2005
Posts: 27
Rabble is on a distinguished road
Default Image / File upload error

I having the same problem and haven't been able to find a solution.

Any help would be appreciated.

Thanks
Rabble
Rabble is offline   Reply With Quote
Old December 19th, 2005, 12:43   #3
Rabble
 
Join Date: Mar 2005
Posts: 27
Rabble is on a distinguished road
Default Simpleboard keeps asking for file to upload

I'm still having this problem. Is there a solution?

Thanks

Rabble
Rabble is offline   Reply With Quote
Old December 31st, 2005, 10:21   #4
vogelspin
 
Join Date: Dec 2005
Posts: 1
vogelspin is on a distinguished road
Default

I changed some in components\com_simpleboard\post.php

Change
PHP Code:
if ($attachfile != '' ) {
                  
$noFileUpload=0;
                  include 
$sbp.'/file_upload.php';
                  if (
$rc==0){
                     
$noFileUpload=1;
                  }
               }
               if (
$attachimage != '' ) {
                  
$noImgUpload=0;
                  include 
$sbp.'/image_upload.php';
                  if (
$rc==0){
                     
$noImgUpload=1;
                  }
               } 
on rule 186 to rule 199

to

PHP Code:
if (is_uploaded_file($_FILES['attachfile']['tmp_name'])) {
                  
$noFileUpload=0;
                  include 
$sbp.'/file_upload.php';
                  if (
$rc==0){
                     
$noFileUpload=1;
                  }
               }
               if (
is_uploaded_file($_FILES['attachimage']['tmp_name'])) {
                  
$noImgUpload=0;
                  include 
$sbp.'/image_upload.php';
                  if (
$rc==0){
                     
$noImgUpload=1;
                  }
               } 
vogelspin is offline   Reply With Quote
Old January 3rd, 2006, 17:12   #5
jemcconnell
 
Join Date: Dec 2005
Location: San Diego, CA
Posts: 43
jemcconnell is on a distinguished road
Default

This worked wonders!!! Thank you.

New problem! User can't update signature.

Notice: Undefined variable: sbConfig in C:\Inetpub\vhosts\sdgaybowling.org\httpdocs\admini strator\components\com_mamboboard\admin.mamboboard .html.php on line 1219

check this box to delete this signature
Notice: Undefined variable: sbConfig in C:\Inetpub\vhosts\sdgaybowling.org\httpdocs\admini strator\components\com_mamboboard\admin.mamboboard .html.php on line 1235
__________________
"Never, Never, Never give up!" - Winston Churchill
jemcconnell is offline   Reply With Quote
Old February 28th, 2006, 06:18   #6
rza
 
Join Date: Apr 2005
Posts: 8
rza is on a distinguished road
Default

dun forget to do it for the edit portion too...
rza is offline   Reply With Quote
Old March 14th, 2006, 09:12   #7
iancaz
 
Join Date: Feb 2006
Posts: 4
iancaz is on a distinguished road
Default One line fix...

Invalid Fix, see below...

Last edited by iancaz : May 5th, 2006 at 10:38.
iancaz is offline   Reply With Quote
Old March 14th, 2006, 09:53   #8
TourneySpec
 
TourneySpec's Avatar
 
Join Date: Nov 2005
Location: Rochester, NY
Posts: 310
TourneySpec is on a distinguished road
Default

Are you running simpleboard or mamboboard. I see errors from both in this post!
__________________
Team Mambo Member -- Custom Mambo Websites Builder

TourneySpec Designs
TourneySpec is offline   Reply With Quote
Old May 5th, 2006, 09:53   #9
pdisney
 
Join Date: Oct 2005
Posts: 11
pdisney is on a distinguished road
Default Thank you, thank you, thank you

The editing trick worked for my installation!
pdisney is offline   Reply With Quote
Old May 5th, 2006, 10:39   #10
iancaz
 
Join Date: Feb 2006
Posts: 4
iancaz is on a distinguished road
Lightbulb A "real" fix

My previously posted fix does not work. It actually caused no attachments to be uploaded at all.

I also have a site running Joomla! & the new version of simpleboard, called JoomlaBoard. JoomlaBoard doesn't have the issues that the most recent version of SimpleBoard has.

So, here's what I did, I downloaded the JoomlaBoard v1.1.2 & started comparing the file_upload.php & image_upload.php files. These files we extremely similar, but the new version had fixes in place for this problem, plus handling for spaces & special characters in the file name! So, I tried replacing the existing SimpleBoard file_upload.php & image_upload.php files, with those from JoomlaBoard v1.1.2 and it worked!!! YMMV
iancaz is offline   Reply With Quote
Old May 5th, 2006, 18:30   #11
MrGibbage
 
Join Date: May 2006
Posts: 1
MrGibbage is on a distinguished road
Default

Hmmm. I tried the Joomlaboard patch and I still get four popup error message with each post.
1. Please select a file before uploading. Your file has not been uploaded. Try posting again or editing the file.
2. You are only allowed to upload files of type:\n zip, txt, pdf. Your file has not been uploaded. Try posting again or editing the file.
3. Please select a file before uploading. Your file has not been uploaded. Try posting again or editing the file.
4. Please use only jpeg, gif, or png files. Your file has not been uploaded. Try posting again or editing the file.
MrGibbage is offline   Reply With Quote
Old May 11th, 2006, 04:54   #12
pdisney
 
Join Date: Oct 2005
Posts: 11
pdisney is on a distinguished road
Default Thanks Again!

I followed your advice and now it does in fact let me upload files with no errors. Thanks again!
pdisney is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Failure: Upload and Install Components stjeanm Administration Questions 9 October 21st, 2006 05:55
Upload zip component failed Upload zip component - Upload Failed domitune Installation Questions 3 January 23rd, 2006 00:18
PROBLEMS - PHP-Shop / Simple Machines Forum / Simpleboard / Image URLs (PollsXT/Noah) fidelgonzales Components 0 November 12th, 2005 14:33
About Upload Image! DANG_BLUE Administration Questions 1 August 31st, 2005 03:35
Simpleboard 0.9 released JdG Open Source Products for Mambo 3 November 12th, 2003 12:54


All times are GMT -7. The time now is 07:26.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.