Sorting and pagination disappeared when I changed the site URL

Sorting and pagination disappeared when I changed the site URL

peterxpeterx Posts: 6Questions: 0Answers: 0
edited October 2010 in General
I've changed my site URL (from test.marketing-forge.com to www.marketing-forge.com), while WP is still in the old directory (test). Additionaly, I've renamed my theme directory.
After a few tweaks my site works OK, but the sorting and pagination options on my tables seem lost (check http://www.marketing-forge.com/?page_id=30). At the old URL everything was OK. The options are checked at the admin section of wp-tables-reloaded, but they do not work on the site.
I don't know if DataTables Libraries are somehow connected to the sire URL or the problem is elsewhere.

Replies

  • cdaiglecdaigle Posts: 57Questions: 0Answers: 0
    edited October 2010
    Hi peterx,

    I took a quick look at your site, and in the console it is giving me the following errors:

    XMLHttpRequest cannot load http://test.marketing-forge.com/wp-content/plugins/wp-table-reloaded/languages/datatables/lang-bg_BG.txt. Origin http://www.marketing-forge.com is not allowed by Access-Control-Allow-Origin.
    jquery.datatables.min.js:110Uncaught TypeError: Cannot read property 'sProcessing' of null
    lang-bg_BG.txtFailed to load resource

    Looking at your javascript for the DataTables init, it looks like you are still referencing the test web server for your language file, but the xhr request is not allowed to retrieve it. You should make sure you have the files on this web server and change the address.

    Hope this helps.
  • peterxpeterx Posts: 6Questions: 0Answers: 0
    Thank you very much.
    I changed the [code]$language_file_url[/code] to the absolute path to the lang file and it worked :).
This discussion has been closed.