|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I must not have the right file because my line 1251 gives me: sub MakeComponentHTML_modqresline {
And I cannot find any variation of the code I need to change.
I am using this version of UBB: UBB.classic™ 6.7.1
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you are in cp2_membermanage.pl, not cp2_membermanage.cgi
big difference
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
DOH!!! I was having a blond moment... Ok I got it installed but when I click on the link to upload file, a popup window comes back with this message:
Unable to detect referer. You must click the upload link directly to upload files.
Where did I screw up?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
Ok I'm not that Blond LOL LOL I did.... and what I posted above is what I get.
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I did notice that one of the files to be edited was the Ultimatebb.cgi file but on the instructions no modifications were provided.
Could that be it?
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I hope you took my post as fun and not a witchy post...I was just being humorous.
I really can't thank you enough for helping me with this.
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
This is the error I am recieving now: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Jul 28 19:45:33 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
upload the ubb_upload.cgi file from the zip I linked you to
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I uploaded the ubb_upload.cgi from the file in your previous post and that is the error I am receiving. No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Wed Jul 28 19:45:33 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
I thought maybe I needed to clear the cashe so I did that but get the same error.
I'm getting serious grey hairs now. LOL
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
go into your CP, primary settings, and set the upload settings
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I'm in there but I put the D: path to my cgi bin...should this be the url to my cgi bin?
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
Oops...it's that darn blond in me again...Scratch that post...
I am so glad you are patient....I woulda yelled at me by now.
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
One other thing...the allowable extensions says to add them with a space So I did this: zip pdf txt for the regular files
and this for the avatars: gif jpeg jpg fla
When I click submit in CP, I receive this error: Form validation errors:
: You did not enter a value for this field : You did not enter a value for this field
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
I just tried to use the exact examples in the explanation field and I receive the same error:
This is what I used: zip txt tar.gz tar
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
Hi Ian,
I made the changes as per the post link you gave and updated my CP info and it took the update after I submitted.....I uploaded the file you posted above.
I am still receiving this error when I attempt to upload a file from the link:
No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220. For help, please send mail to this site's webmaster, giving this error message and the time and date of the error. [Thu Jul 29 00:38:41 2004] D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi: No such file or directory at D:WebSitesCityofLincolnParkMIcgi-binubb_upload.cgi line 220.
I went through and doublechecked to make sure that I completed all the code changes.
I'm at a lost.....my head is getting more gray hair now LOL LOL
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
It's saying that was you entered for the path to upload is invalid
|
|
|
|
Joined: Jul 2004
Posts: 18
Junior Member
|
Junior Member
Joined: Jul 2004
Posts: 18 |
Ok That all works now except when the graphic is uploaded, (the url is correct) I always get a broken graphic indicator.
I read other posts in this topic -- one poster had a garbled graphic issue but I get a broken graphic.
I'm not sure how to fix this issue.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
the url to the folder you entered does correspond to the path you entered, right?
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Have you tried accessing the url where the graphic is via your browser to ensure it is in fact where the UBB is being told where it is?
|
|
|
|
Joined: Jan 2004
Posts: 15
Junior Member
|
Junior Member
Joined: Jan 2004
Posts: 15 |
In the install.txt . They wrote : quote: ######################################################## ###Open ubb_lib.cgi ########################################################
######## # find # ########
$vars_config{'MaxMemFields'} = 43;
But I cound found this line in my ubb_lib.cgi ( I'm using UBB 6.6) And After add some line to vars_wordlets.cgi example: q!upload-_-form-title! => q!%%BBTITLE%% Upload Form!, q!upload-_-form-submit! => q! Upload !, q!upload-_-form-link! => q!Upload File!, q!upload-_-form-manager! => q!Upload Manager!, q!upload-_-manager-title! => q!%%BBTITLE%% Upload Manager!, q!upload-_-manager-delete! => q!Delete!, In Control Panel -->Wordlets List-->Primary, I can't see them. Who know how to fix that error, help me !!!
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
OK. I've reread this topic a few times and managed to solve most of the problems mentioned here except for the corrupted image issue a few others are having. The files are getting uploaded to the right place, I can check them in FTP. But when I try to browse them, they're corrupted. Some display partially, some don't display at all and just return the little red X in IE. Mozilla is a little more helpful, returning an error message: quote: The image “http://www.sharpeiforums.com/ubb/uploads/00000001/amber-II.jpg” cannot be displayed, because it contains errors. This site is on shared hosting in a Windows 2K server. I'm running WinXP Pro. Any ideas, anyone?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
This was the same issue that another got earlier this month. Just too make sure you downloaded from http://pavioni.com/scripts/dl.php/Uploader6.7.zip ? If not, dl that and reupload ubb_upload.cgi.
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
Hi Brett, Thanks for getting back so quickly. I know you're busy. Per Ian Spence's post earlier in this thread, the file I had last DL'ed was from Uploader6.7_2. I downloaded the one you posted above and installed it "as is," without making any of the hacks mentioned elsewhere in this thread. Now I get this error: quote: Can't locate /vars_misc.cgi in @INC (@INC contains: ./Modules . d:htmluserssharpeiforumscomhtmlcgi-bin d:htmluserssharpeiforumscomhtmlcgi-binModules D:/Perl/lib D:/Perl/site/lib) at d:htmluserssharpeiforumscomhtmlcgi-binubb_upload.cgi line 72.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
[Thu Aug 19 09:11:26 2004] ubb_upload.cgi: Can't locate /vars_misc.cgi in @INC (@INC contains: ./Modules . d:htmluserssharpeiforumscomhtmlcgi-bin d:htmluserssharpeiforumscomhtmlcgi-binModules D:/Perl/lib D:/Perl/site/lib) at d:htmluserssharpeiforumscomhtmlcgi-binubb_upload.cgi line 72. Do I need to hack this file per earlier posts?
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
Well, I rolled back to the ubb_upload.cgi version in Ian's link to 6_7_2 and that solved the problem above but now I'm back to dealing with the corruption problem.
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
"Sigh" I think I'm just two code lines away from fixing this problem:
If only I knew PERL...
I don't like Window$ any more than the rest of you but I'm stuck with it for now... :rolleyes:
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
This is untested, but try the following. Find: my $fullpath = "$vars_misc{upload_dir}/".$user_number."/$Filename"; my $handle = $filehandle->open('file', 'writeonly', $fullpath); Add after:
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
Hi Ian, Thanks, I thought I was getting close. I had put that same line in earlier, only here two lines down: my $FileSize = 0; binmode($in{FILE}); Doesn't seem to make any change in either place, tho. I saw a reference in Dave_L\'s Post to binmode being inserted on two lines and I assumed (PERL-dope that I am) a pair was required for file read and write, similar to his example of binmode $File_Handle; binmode OUTFILE; while ($Bytes = read($File_Handle,$Buffer,1024)) { $BytesRead += $Bytes; print OUTFILE $Buffer;} Or does $handle take care of both?
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
I'll try a fresh install working from Brett's latest version and see how far I get.... Brett, thanks for all your hard work on this mod. A lot of thought went into it. The interface looked really sweet within my board and I really liked the tight integration. It's exactly what I was looking for. I just hope I can get it working on this damn Win server. 
|
|
|
|
Joined: Aug 2004
Posts: 14
Junior Member
|
Junior Member
Joined: Aug 2004
Posts: 14 |
OK. I got it to work. I was still getting the fail posted above after going over all the instructs and reinstall. Sure enuf, a prob on line 68 breaks the whole script: require "../variables/vars_config.cgi";}; I don't have "/variables/" - only /cgi-bin/ and /cgi-bin/Modules/. Deleted ../variables/ and fixed it. Sheesh, Brett, I see now you added binmode and that fixed the corruption prob. Re-ignore my other posts... D'oh!  Great script, Brett 
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
My turn?
Ok, as many of you have probably noticed, I get a lot of the following type errors..
Error message: Premature end of script headers: ubb_upload.cgi
This time, I was smart enough to upload that file several times both using WSFTP, and the HTTP Interface of my host (PLESK).
I still get that error.
Also, I am unsure as to the settings for the Path and URL in the CP settings. What should these look like to make it use teh default for the Members folders? When I performed the install, the fields both contained "15" for their values. I changed them to the paths, but have been untested due to my server header error.
Also, when I set the CP settings, I always get atleast 5 form validation errors. Although not every check box is selected, there is atleast some text in every text field.
TIA for any help. It is so greatly appreciated!
--Phillip
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Also, I forgot to mention that not only did I re-upload the file several times, I tried the file from both sources in this thread.
Thanks!
--Phillip
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Fixed your site. Problem was #!c:/Perl/bin/Perl.exe at the beginning of the download file, not #!/usr/bin/perl
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
I wondered about that when I opened the file to make sure it wasn't corrupt.
I thought however, that any line that started with a pound sign (#) was remarked out. Appearently not.
Again I learned something new. Thank you!
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
Ok, so i just tried to test it. It seemed to work well. It "Uploaded" the file to MY directory like it should but when I clicked on the URL it supplied, I get a...
Premature end of script headers
On the picture!
I'm so confused. A picture can't do that, can it?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
you're uploading into the cgi-bin, so the server assumes anything there is a script. Change the upload directory and it should be fine
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|