Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 1.X » Development » can't upload anything
can't upload anything [message #214] Thu, 14 September 2006 10:00 Go to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
strange things happening..

in the version that you installed on our server under /phpmybt (i assume it's the latest CVS), i can't seem to upload any torrents or edk links.

for torrents i get a "requested data missing" file (double-checked for missing data in the form), when uploading links, i get a "bad data" message.

with my /phpmybittorrentCVS installation (CVS pulled some days ago), i can upload edk links, the entries show up in the list. but the details page can't be displayed -- it shows a blank white page (though display_errors is turned on).

[Updated on: Thu, 14 September 2006 11:17]

Report message to a moderator

Re: can't upload anything [message #217 is a reply to message #214] Thu, 14 September 2006 16:34 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

Try to disable RSA cookies by editing configdata.php. I haven't tested the program with RSA enabled.

Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
Re: can't upload anything [message #219 is a reply to message #214] Thu, 14 September 2006 20:05 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

OK it was because of RSA. I edited takelink.php and fixed the bug.

Thank you Laughing
  • Attachment: takelink.php
    (Size: 7.01KB, Downloaded 315 times)


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
Re: can't upload anything [message #220 is a reply to message #214] Fri, 15 September 2006 11:41 Go to previous messageGo to next message
lodp is currently offline lodp  Austria
Messages: 336
Registered: June 2006
Releaser
i tried that file (i updated CVS this morning -- seems to be the same version of takelink.php in there). it didn't change anything though -- the link is uploaded and listed, but when you go to the details page, i get a blank screen. have a look yourself on my server (the /phpmybittorrentCVS installation).

in the /pmbt installation, i got a "bad data" error when uploading a link -- before i uploaded the new takelink.php. with the new file, it's just like in the above installation: upload works, but there's a blank details page.

given that i've never actually seen a details page (can't upload torrents because of php5) on the setup on my new server, it might not be related to any problem with takelink.php.

anyway, there's still the separate problem with torrent uploads -- i always get a "request data missing" error when sending the upload form (also exists in both installations)
Re: can't upload anything [message #222 is a reply to message #214] Fri, 15 September 2006 22:52 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

Strange... I tried the file on my server and link upload works fine. I deleted the just-uploaded link archive from its details page...

The request data missing could still be related to the PHP 5 you're using, since no one else reported me such problem (joeroberts's uploads work fine and it's continuously updated).

Really dunno...


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
icon9.gif  Re: can't upload anything [message #453 is a reply to message #222] Sun, 03 December 2006 22:22 Go to previous messageGo to next message
G0dLik3 is currently offline G0dLik3  Romania
Messages: 4
Registered: December 2006
Location: Constanta
Leecher
I get the same error too:Request data missing! Why do I get this error?Please help me! Crying or Very Sad
Re: can't upload anything [message #454 is a reply to message #214] Mon, 04 December 2006 20:41 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

The error is caused by the following code
<?php
if (!isset($_FILES["filex"]))
        
$errmsg[] = _btmissingdata;
?>

It means that PHP does not see any file uploaded. So this IS definitely a server-side problem. Either with PHP or Apache or whatever.

Link upload will always work fine since you just fill form fields.
And this has nothing to do with PHP version, if it's misconfigured.

Try to run any other PHP script (such as a Forum) and try to upload a file: you'll get the same error.
Try also to upload an avatar with phpMyBitTorrent and you will 100% surely get an error (or just the image not being uploaded)


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
icon9.gif  Re: can't upload anything [message #459 is a reply to message #454] Tue, 05 December 2006 00:34 Go to previous messageGo to next message
G0dLik3 is currently offline G0dLik3  Romania
Messages: 4
Registered: December 2006
Location: Constanta
Leecher
I`ve uploaded an image as avatar and it worked...But when I try to upload a .torrent it doesn`t work Sad But I`ve found the problem:the host doesn`t allow me to upload .torrent files...damnnnnnn.

[Updated on: Tue, 05 December 2006 00:36]

Report message to a moderator

Re: can't upload anything [message #462 is a reply to message #459] Tue, 05 December 2006 14:42 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

G0dLik3 wrote on Tue, 05 December 2006 01:34

I`ve uploaded an image as avatar and it worked...But when I try to upload a .torrent it doesn`t work Sad But I`ve found the problem:the host doesn`t allow me to upload .torrent files...damnnnnnn.

Well... I just had an idea...

Tell your users to rename al Torrents as GIFs (.gif), then change line 121 and 122 from taketorrent.php
if (!preg_match('/^(.+)\.torrent$/si', $fname, $matches))
        $errmsg[] = _btfnamenotorrent;

to
if (!preg_match('/^(.+)\.[^\.]*$/si', $fname, $matches))
        $errmsg[] = _btfnamenotorrent;


This may help.


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
icon9.gif  Re: can't upload anything [message #467 is a reply to message #462] Wed, 06 December 2006 01:21 Go to previous messageGo to next message
G0dLik3 is currently offline G0dLik3  Romania
Messages: 4
Registered: December 2006
Location: Constanta
Leecher
Seems I can only upload files related to webpage such asa html,php,images etc.I cant even upload files with rubish extension such as .t .tnt bla bla...So I want to upload the .torrent and the .nfo files as .txt files,and when an user wants to download,I want the site to upload to him .torrent files.Is that possble somehow?Please Smile
Re: can't upload anything [message #468 is a reply to message #467] Wed, 06 December 2006 09:17 Go to previous messageGo to next message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

Have you tried my hack in the message above? That *should* work

Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.
Re: can't upload anything [message #469 is a reply to message #468] Wed, 06 December 2006 12:37 Go to previous messageGo to next message
G0dLik3 is currently offline G0dLik3  Romania
Messages: 4
Registered: December 2006
Location: Constanta
Leecher
I still get the error and changed as you said Sad Must be something else...

[Updated on: Wed, 06 December 2006 12:40]

Report message to a moderator

Re: can't upload anything [message #479 is a reply to message #469] Wed, 06 December 2006 19:17 Go to previous message
djechelon is currently offline djechelon  Italy
Messages: 207
Registered: June 2006
Location: Ercolano, NA
Releaser
Administrator

If your hosting uses a filter on mime-type or else you're f****d Mad
Sorry pal. Sad


Unfortunately, no one can be told what the Matrix is. You have to see it for yourself.

[Updated on: Wed, 06 December 2006 19:18]

Report message to a moderator

Previous Topic:Introduction
Next Topic:CVS snapshots
Goto Forum:
  


Current Time: Sun Feb 05 08:13:23 GMT 2012

Total time taken to generate the page: 0.00840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software