500 internal server error ajax codeigniter

but when i push F12 the. POST manufacture/ addmanufacture 500 ( Internal Server Error) send. Always create the array( insert_ data) first and pass it as a parameter / / your are sending ' content' not ' templatestyle' in ajax request $ content = $ this- > input- > post( ' templatestyle' ) ; / / use this $ content. As per your post the requested URL is wrong as if it' s on localhost it should be like : 0. 1/ posts/ ajax_ controller/ del_ post. ajax_ controller/ del_ post. Try setting your base_ url in config. I' m assuming you' re using unsafe input methods to be able to access $ _ POST? What happens if you mock up a noddy form with those fields and post it to the Save action on the controller? Next question is the usual stuff but. i' m using codeigniter 2.

  • Xml network error access is denied
  • Runtime error 6 overflow in macro
  • Citrix ssl error 61 fedora
  • Elementor causing error 500
  • Show js errors in chrome

  • Video:Server error codeigniter

    Codeigniter ajax server

    2 and working with signup form. I' m using ajax to validate username. i have enabled CSRF protection in codeigniter, after enabling CSRF i' m getting 500 Internal Server error, i have attached a image about this problem. Make sure < form> tag not defined with action= " " ( shoud be empty). In AJAX $ ( function( ) { $ ( " # submit_ enquiry" ). click( function( event) { event. preventDefault( ) ; var date= $ ( " # date" ). val( ) ; var candidate_ id=. The post that i read is this com/ ajax- csrf- protection- codeigniter- 20. Possible duplicate of Codeigniter csrf token with ajax request ( 500 internal server error) – AdrienXL Feb 23 ' 16 at 21: 19. Проблема была решена путём прописывания полного пути к файлу и использование / /. Your function needs a parameter, however you' re not sending it properly unless your variable unit_ id contains a slash /. var post_ url = " getruangan" + unit_ id; / / Output: getruangan55.

    Since you are using POST there is no need to send it as url.