Cakephp Ajax 500 Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to networkerror 500 internal server error in cakephp any questions you might have Meta Discuss the workings and
Ajax 500 Internal Server Error Php
policies of this site About Us Learn more about Stack Overflow the company Business Learn more jquery ajax 500 internal server error about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community laravel ajax 500 internal server error Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CakePHP Ajax Request not going Internal Server Error up vote 0 down vote favorite I am just trying to test ajax form submit in CakePhp. I have below written code. But ajax is not working. Error in chrome : POST http://localhost/john/Frontends/AjaxFormSubmit 500 (Internal Server Error) View File echo $this->Form->input('appendedInputButton', array('id'=>'url','name' => 'AjaxFormSubmit', 'type' => 'text')); echo $this->Form->button('Convert', array('id' => 'Convert', 'type' => 'button')); jQuery $(document).ready(function () { $('#Convert').on({ 'click': function () { var urlVal = $("#url").val(); if (urlVal == '' || urlVal == 0) { $("#url").focus(); return false; } $.ajax({ url: 'http://localhost/john/Frontends/AjaxFormSubmit', cache: false, type: 'POST', success: function (data) { alert(data); } }); } }); }); Controller App::uses('AppController', 'Controller'); class FrontendsController extends AppController { public $name = 'Frontends'; public $uses = array(); public $components = array('RequestHandler'); public $helpers = array('Html', 'Form'); public function index() { $this - > layout = 'frontend_index_layout'; } public function AjaxFormSubmit() { echo "Receiving Via Ajax"; } } Error Log File 2013-08-13 13:41:43 Error: [MissingControllerException] Controller class JsController could not be found. Exception Attributes: array ( 'class' => 'JsController', 'plugin' => NULL, ) Request URL: /john/js/jquery-1
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up 500 Internal Server Error on ajax call with cakephp up http://stackoverflow.com/questions/18210679/cakephp-ajax-request-not-going-internal-server-error vote 0 down vote favorite I developed a small website with cakephp working locally, and I moved in production environment on tophost. After have fighting with the .htaccess config file, I got the homepage to work. When I click on some buttons I should open the detail page, but I get 500 error on $.ajax call. Any ideas? This is my .htaccess in the htdocs folder:
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more http://stackoverflow.com/questions/20092289/cakephp-shows-500-internal-server-error about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users https://github.com/cakephp/cakephp/issues/8174 Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CakePHP shows 500 Internal Server Error up vote 0 down vote favorite I'm having a problem with my CakePHP installation. I was developing it in a subfolder and 500 internal it was working fine. But, when I move it into the root folder, it's showing 500 Internal Server Error. For example, it was working fine on: mysite.com/demo/ But, when I move it into the same server root, i.e. mysite.com/ it's showing the error. CakePHP Version: 2.2 As it was working fine on /demo/ folder, I think the mod_rewrite etc. are working fine, so that confused what's happening with the root folder. Any Idea? Thanks in advance. php 500 internal server .htaccess cakephp mod-rewrite internal-server-error share|improve this question asked Nov 20 '13 at 9:41 user2742122 1581312 5 You don't have to guess. Just find your web server's error log. –Álvaro González Nov 20 '13 at 9:44 2 You can find the CakePHP logs in app/tmp/logs –noslone Nov 20 '13 at 12:13 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Please check .htaccess file and change if RewriteBase /folder/subfolder to RewriteBase / like below
Support Search GitHub This repository Watch 658 Star 6,736 Fork 3,047 cakephp/cakephp Code Issues 159 Pull requests 23 Projects 0 Wiki Pulse Graphs New issue 500 internal server error when sending email with cakephp 3 ajax #8174 Closed Bahhous opened this Issue Feb 3, 2016 · 1 comment Projects None yet Labels Invalid Milestone 3.2.2 Assignees No one assigned 2 participants Bahhous commented Feb 3, 2016 No description provided. Bahhous changed the title from 500 internal server error when sending email with cakephp ajax to 500 internal server error when sending email with cakephp 3 ajax Feb 3, 2016 CakePHP member ADmad commented Feb 3, 2016 Please no info on how to reproduce issue nothing can be done. ADmad closed this Feb 3, 2016 ADmad added this to the 3.2.2 milestone Feb 3, 2016 ADmad added the Invalid label Feb 3, 2016 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.