Jump to content

Search the Community

Showing results for tags 'error 500'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. BACKGROUND: I have an AJAX request that cannot find the PHP processing file for which it is looking. It is returning a 500 error in my web console. I have checked the PHP error log for that file and can find no error. I have also checked the error logs for the PHP files related to the requested PHP file, as well as the error log of the requesting page. Nothing. Nothing. Nothing. And, Nothing. I have even asked the help of my server provider. Nothing. Needless to say, I am at a loss. The functionality related to this AJAX call was created many months ago, and was working fine at the time of creation. In fact, the same functionality used to work at three different locations. I discovered the failure while performing a somewhat casual check in search for damage from suspected hackers. Once hacked, you do not easily forget it. it is kind of like being raped. QUESTION: What would be a proper strategy for troubleshooting this failure? AJAX CALL: $.ajax({ type: "POST", url: '.../captcha_reset.php', data: {dataRequest: 'requestInstance'}, statusCode: { 404: function() { alert( "Page not found" ); }}, success: function(jsonData) { jsonObj = JSON.parse(jsonData); captcha_sa = jsonObj.captcha_ra; $('.CaptchaLabel').css('background-color', jsonObj.captcha_rc); $('.CaptchaAnswer').val(''); $('.CaptchaLabel').html(jsonObj.captcha_rq); $('.CaptchaError').css('display', 'none'); } }); CODE from REQUESTED PHP FILE: if ($_SERVER['REQUEST_METHOD'] == 'POST') { $captcha_reset = array(); if ($_POST['dataRequest']) { $dataRequest = filter_var($_POST['dataRequest'], FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH); if ($dataRequest == 'requestInstance') { require_once '.../vendor/autoload.php'; require_once '.../select_color_pair.incl.php'; $color_pair = select_color_pair(true); $ictext_color = $color_pair['text_color']; // $icbackground_color = $color_pair['bg_color']; require_once('.../class.imageless_captcha.php'); $captcha_r = new ImagelessCaptcha(3, false, false, $ictext_color); $captcha_reset['captcha_rq'] = $captcha_r->formPhrase(); $captcha_reset['captcha_ra'] = $captcha_r->getInt(); $captcha_reset['captcha_rc'] = $color_pair['bg_color']; } } echo json_encode($captcha_reset); } Please advise. Roddy
×
×
  • Create New...