Update to mysqli, one problem

Started by denede, December 01, 2014, 06:25:18 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DragonCoder

#16
Quote from: denede on September 22, 2016, 09:40:51 AM
make sure to remove empty spaces from the files.
top->bottom of files and left side

i do not have any  empty spaces all  mate  i like to keep files smart and clean this what i thou too and its not that ..... im thinking i did have the v3 on at one time im thinking i must have not cleaned the cach out .... i think mindless can help me here i used the tool from gub to convirt it over i just did a ceck with all the code from coder headcoder here and all my files are the same too as the headcoder used this tool to convirt the main code too here... so im thinking it must be something i need to run it

denede

make sure to remove empty spaces from the files.
top->bottom of files and left side

DragonCoder

Quote from: denede on December 01, 2014, 02:57:35 PM
i'm getting dizzy checking the files over and over again.
but i dont get why if i transform the benc system from V4 it does the same thing.
dont get any uploading errors.. hash gets out ok. only damn invalid torrent file or bencoded.
guess i need to rest a bit.. and take it from point zero.
edit: found errors in scrape.php. now torrent works in client and .torrent files from server(newly created) don't give any errors on torrenteditor just 0 seeders/0leechers(dont have passkey)
but if checking the .torrent taken with download.php it gives the unkn0wn char error.
almost done. now in .torrent file is like you said, i have a empty space at the start.


*FIXED*

would u post fix i updated to  mysqli  and get all white pages too so i think im missing something with it on 09

denede

#13
i'm getting dizzy checking the files over and over again.
but i dont get why if i transform the benc system from V4 it does the same thing.
dont get any uploading errors.. hash gets out ok. only damn invalid torrent file or bencoded.
guess i need to rest a bit.. and take it from point zero.
edit: found errors in scrape.php. now torrent works in client and .torrent files from server(newly created) don't give any errors on torrenteditor just 0 seeders/0leechers(dont have passkey)
but if checking the .torrent taken with download.php it gives the unkn0wn char error.
almost done. now in .torrent file is like you said, i have a empty space at the start.


*FIXED*

Tundracanine

wierd lol
unless you missed an mysql some place in announce it should work..
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

denede


Tundracanine

ah i see the problem i think
$dict['value']['announce']['value'] = "{$TBDEV['announce_urls'][$ssluse]}?passkey={$CURUSER['passkey']}";
should be
$dict['value']['announce']['value'] = "{$TBDEV['announce_urls'][0]}?passkey={$CURUSER['passkey']}";
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

denede

http://pastebin.com/6NQyTEAw

but dont think download has anything to do.. the created .torrent file with the client gives the same issue. it isn't pulled from the site with download.php..

Tundracanine

if you using original tbdev benc thing then orignal download.php should work that is after you changed the mysql stuff
you could post your download.php here, all I got is the TBDev.Tracker.2009.(Final) version myself lol its not even installed..
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

denede

i managed to put the V4 and still same annoying problem and i reverted.
take a look at that pastebin.

Tundracanine

i think its something to do with using new bencode..
in download.php if using the new one from v4
change
  $dict = bdec_file($fn, filesize($fn));

  $dict['value']['announce']['value'] = "{$TBDEV['announce_urls'][0]}?passkey={$CURUSER['passkey']}";

  $dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value'];

  $dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);

to
$TBDEV['max_torrent_size'] = 3 * 1024 * 1024;
$dict = bencdec::decode_file($fn, $TBDEV['max_torrent_size']);
$dict['announce'] = $TBDEV['announce_urls'][0] . '?passkey=' . $CURUSER['passkey'];
$dict['strlen'] = strlen($dict['announce']);
$dict['uid'] = (int)$CURUSER['id'];
$tor = bencdec::encode($dict);

not sure what
$dict['value']['announce']['string'] does lol...
and make sure you have
require_once "include/class/class.bencdec.php"; some place with the other includes at the top of download.php
include/class/class.bencdec.php might be different is where ever you uploaded class.bencdec.php to on your server.
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

denede

#5
all look the same.. or maybe i'm blind
i still believe its from announce :|
it doest pull the damn passkey.. arghhhh

http://pastebin.com/tz7Syhrd

Tundracanine

i would try viewing one that works in notepad++ and one that dont. My guess the bad one has an blank space at the top or something.
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.

denede

#3
the .torrent file keeps getting screwed..
in torrent editor i'm getting
Decoder encountered unknown char '<' at offset 0. (this is when file is from the site)
ERROR: Decoder encountered unknown char ' ' at offset 0.(this is when file is created)

i'm not sure anymore what it is.. it worked well until mysqli upgrade.
at least if i would know where to look for that, but i haven't got a clue

Tundracanine

sounds like something not going right if only on download..
I would try loading the on you re-download from your site in this http://torrenteditor.com/
notepad++ is another thing can open .torrent files with lol just dont edit it with it.
other then that i would try changing all the $INSTALLER09 in the v4 stuff in download.php you used to $TBDEV   i think thats what is uses :P
If wanting support help please put bare min info like
Os:
U-232 Version:
Php Version:
Tracker type: like xbt or php
Saves on asking more questions just so people can help someone.