Seker Posted April 22, 2012 Share Posted April 22, 2012 Try now You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Same error. Can this really be that hard? Hah Super sorry for the headache this is causing everyone. Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 never mind lol , got it , just abit tired You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 never mind lol , got it , just abit tired You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And now: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Line 135: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 (edited) Proposer: <a href='viewuser.php?u=".$ir['userid']."''>".abs(intval(htmlentities($r['username'])))."</a> Edited April 22, 2012 by mixmaster Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Proposer: <a href='viewuser.php?u=".$ir['userid']."''>".abs(intval(htmlentities($r['username'])))."</a> Good lord, you did it! Thank you! Been ripping my scalp out over this. Major lifesaver sent me right there. :) Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 22, 2012 Share Posted April 22, 2012 Your welcome , would have been done quicker if it wasn't 2.13am :p Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 And if you want something without all the useless functions, indented code and something easier to read, you can just use this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Enjoy. While you're definitely correct in all your statements, with that I get this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted April 22, 2012 Share Posted April 22, 2012 (edited) This has been solved I helped him with this. As before stated in other threads- When the forum updated and changed, the whole coding on most older mods changed adding target_blank, when it was never part of the script, also adding http: all within links, so it outputted an error, also some of the quotes were changed the single changed to double, so you need to really look close at the script. This script though is all over the place,I would not use it without redoing the whole thing period!! And there is mres on digit fields and abs(intval()) on alpha fields, neither is securing either field it's all backwards in this script for some reason. also really dont need to secure a print statement, when it's already secured going into the database how can anything slip through mysql_real_escape_string(htmlentities()) in the database,then to print ' '.$r['username'].' ';??? Some people make security harder then it really is lol. Edited April 22, 2012 by lucky3809 Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 (edited) Aww damn. Fixed and commented the fix. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Also removed functions from the $action line that were not needed -- substr to 25 characters works. Hence why I posted the other file? Feel free to try and find a hole Works now with the addition of a missing ";" after line 115. Except for one problem. There's always on more, isn't there? :P When you go to the marriage page, it doesn't exactly throw an error, but on top of the page, it says this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. EDIT: Also shows this when actually sending a proposal: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Edited April 22, 2012 by Seker Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Assuming the file in this thread is marriage.php -- do you happen to have a blank line before <?php ? Negative, but there was an extra "<" in front of it. Probably from when I pasted. Removing that removed the warning at the top of the page, but actually sending a proposal still produces this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Though, if you try again, it does say you already proposed to someone. Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 (edited) Line 78: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. To You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. EDIT: lucky reminded me I probably deleted 'married' from the users table. Added it back in, and all works smoothly. Thanks a ton, everyone. You guys are rockstars. Edited April 22, 2012 by Seker Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Okay, spoke too soon, again. Everything works fine until someone goes to accept the proposal. Then this shows up: "You've clicked an invalid link, please report to an administrator." Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Use this, accept a proposal and copy and paste what the page says (Will contain SQL output) Run that directly into phpmyadmin and you'll see what the error is -- should be easy to fix from there. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Okay, I'm not sure if I did this right. I was assuming you meant run the line as a query. When I do that, what I get back is this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. What jumps out at me is that the proID is blank. Is that where my problem is? It's not picking up the proposer's ID? Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 (edited) EDIT: Nix the error. Was refreshing the previously loaded page that had the error. Re-trying completely worked. Thank you so much SRB, lucky, and anyone else who helped out on this. Been a long, frustrating journey. All of the effort is majorly appreciated. Edited April 22, 2012 by Seker Quote Link to comment Share on other sites More sharing options...
Seker Posted April 22, 2012 Share Posted April 22, 2012 Not a problem. Be grateful -- this is one of my last bouts of helping around here :D I definitely am. I know this turned into one giant headache, and I always appreciate the time anyone's willing to put toward fixing my own problems. :) Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted April 17, 2022 Share Posted April 17, 2022 Sql? Quote Link to comment Share on other sites More sharing options...
Canjucks Posted April 17, 2022 Share Posted April 17, 2022 On 4/17/2022 at 2:19 AM, Dustin Rohel said: Sql? try: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. something along these lines You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted April 18, 2022 Share Posted April 18, 2022 Don't work Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 18, 2022 Share Posted April 18, 2022 1 hour ago, Dustin Rohel said: Don't work More information required. What is the error message it spits at you? (If you haven't already and your script supports it, enable debug mode) Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted April 18, 2022 Share Posted April 18, 2022 How do I enable debug mode? Quote Link to comment Share on other sites More sharing options...
peterisgb Posted April 18, 2022 Share Posted April 18, 2022 2 hours ago, Dustin Rohel said: How do I enable debug mode? I enabled debug last time i was in there this morning. If you refresh the error page it should display the error now. Quote Link to comment Share on other sites More sharing options...
Dustin Rohel Posted April 19, 2022 Share Posted April 19, 2022 1 hour ago, peterisgb said: I enabled debug last time i was in there this morning. If you refresh the error page it should display the error now. Thanks Peterisgb! Your extremely helpful. 🙂 much appreciated Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.