Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:19:35+00:00 2026-05-23T09:19:35+00:00

I am using datatables with Codeigniter library ( https://github[dot]com/IgnitedDatatables ) and I have several

  • 0

I am using datatables with Codeigniter library (https://github[dot]com/IgnitedDatatables) and I have several problems.

Problem @firebug:

“NetworkError: 500 Internal Server Error – http://www[dot]rodocomp[dot]si/shopmanager/server/datatables?callback=jQuery152008148431712533122_1302880482637“

I assume that error is because of ?callback=jQuery152008148431712533122_1302880482637, right?

Another error @firebug:

POST http://www[dot]rodocomp[dot]si/shopmanager/server/datata…llback=jQuery152008148431712533122_1302880482637
POST http://www.rodocomp.si/shopmanager/server/datatables?callback=jQuery152008148431712533122_1302880482637
500 Internal Server Error
252ms

Answer:

An Error Was Encountered Unable to load the requested file: ajax.php

What is ajax.php file ??

This is my JavaScript code:

$('#example').dataTable({
      'bProcessing'    : true,
      'bServerSide'    : true,
      'sAjaxSource'    : '<?php echo base_url(); ?>server/datatables',
      'sPaginationType': 'full_numbers',
      'bAutoWidth'     : false,
      'aoColumns'      : [ 
        { 'sName': 'edit', 'bSortable': false },
        { 'sName': 'delete', 'bSortable': false },
        { 'sName': 'products.products_id', 'bVisible': false },
        { 'sName': 'products.products_price' }
      ],
      'fnServerData'   : function(sSource, aoData, fnCallback)
      {
        $.ajax({
          'dataType': 'json',
          'type'    : 'POST',
          'url'     : sSource,
          'data'    : aoData,
          'success' : fnCallback
        }); 
      }, 
});

What am I doing wrong?

Regards, Mario

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:19:35+00:00Added an answer on May 23, 2026 at 9:19 am

    You’re getting that error, because you’re not setting the sAjaxSource correctly.
    First, for the url you’ve set there, it seems that you’ve .htaccess removing the need for index.php (if not, this is a error). Maybe you’ve created a SERVER dir on the root, and that’s ok!

    Anyway, you can try to place a controller that returns a JSON this way (just to test):
    “sAjaxSource”: “index.php/yourController/yourMethod”

    If you’re using codeigniter, keep the CI way, on doing things! That’s the best way to get this to work.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Datatables and have this jquery plugin showing in a few columns http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
I have started using the DataTables plugin (v1.6.2) for jQuery (v1.4.2), and I would
I am using jquery datatables and MS XSS library. I did this AntiXss.HtmlEncode(MyDate.ToString(MM/dd/yyyy h:mm
Problem: jQuery DataTables server-side processing using ASP.NET WebForms. Solution: Darin Dimitrov answered the question
I'm having some problem using multiple selectBooleanCheckBox in multiple DataTables in ui:repeat. Something like
I am using jQuery datatables in a dynamic PHP site. I have a page
I am using datatables. ( http://datatables.net/ ) I have created a table. There is
I have the following lines of code in C# that gets data using DataTables
I have been using the DataTables plugin for jQuery (http://www.datatables.net) to search, sort and
im trying to generate a report using CodeIgniter and Datatables.net . Now i'm trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.