The new sitelinks administration is the first of many xhttp requests administration listing we'll do moving forward because it is very fast.
I need these input to answer your questions.1. If you add a new link, will it go into your DB? (Whether your file is properely uploaded and the admin is functional)I'm going to pass you a code script, please paste into the same level as config.php
<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
$result = dbquery("SELECT * FROM ".DB_SITE_LINKS." WHERE link_cat=0");
while ($data = dbarray($result)) :
$cache[$data["link_id"]] = $data;
endwhile;
print_p($cache);
require_once THEMES."templates/footer.php";
?>
Please paste the dump in reply. This will give me an idea of your data row and columns are correct.
2. I need to check your xhttp response. Do this step by step:1. In your Site LInks Admin, right click screen select "Show Inspector" For most major browser, Press F12.
2. In inspector, click "Network" tab
3. Now, click the Sitelinks tab where you think should have records. After that, with Network tab open, press F5.
4. Once screen reloaded, your Network tab - find a URL asset that says " ?api=sitelinks&ref=....&cat=...", click that and click "Response" in Inspector. Copy the values here, if the script is broken, you'll have a PHP Error log on the XHTTP response.
5. Paste the Response here. It should look like this:
{"data":[{"DT_RowId":"76","link_checkbox":"<div class='display-flex-row'>\n<div><div id='link_id-76-field' class=' form-group '>\n\n<div class='text-center m-r-10'>\n<input id='link_id-76' style='margin: 0; vertical-align: middle' name='link_id[]' value='76' type='checkbox' \/>\n<\/div>\n<\/div>\n<\/div><div><i class='pointer handle fa fa-arrows spacer-xs'><\/i><\/div>\n .....
This will show whether you have access to the API correctly authenticated, hooks are functional, and API do not have not triggered error. Also whether the files are correctly uploaded and found.
NB: Remember this method - as we're going to dive deep into xhttp in future with
REST development etc and you'll need to frequent this method
to do remote debugging.