Hello,
in my phpMyFAQ 2.8.7
it's not possible to delete the faq clicking on the red "trash" icon
in chrome console I see this error
Uncaught ReferenceError: deleteRecord is not defined ?action=view:734
thank you,
nic
impossible to delete existing faq
Moderator: Thorsten
Re: impossible to delete existing faq
Hi,
checked on my local installation, did you upgrade from an older version? Maybe a JS file is missing?
bye
Thorsten
checked on my local installation, did you upgrade from an older version? Maybe a JS file is missing?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: impossible to delete existing faq
Hi,
yep I upgraded from a 2.7.x version
the upgrade went smoothly.
any suggestion on how to find the missing file,
maybe overwrite everything again manually?
thank you
yep I upgraded from a 2.7.x version
the upgrade went smoothly.
any suggestion on how to find the missing file,
maybe overwrite everything again manually?
thank you
Re: impossible to delete existing faq
Hi,
it's in admin/record.show.php, line 550
bye
Thorsten
it's in admin/record.show.php, line 550
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: impossible to delete existing faq
yes, i can see that file , permission 644
and the code
is there too
and the code
Code: Select all
/**
* Ajax call for deleting records
*
* @param record_id Record id
* @param record_lang Record language
*
* @return void
*/
function deleteRecord(record_id, record_lang)
{
if (confirm('<?php print addslashes($PMF_LANG["ad_entry_del_1"] . " " . $PMF_LANG["ad_entry_del_3"]); ?>')) {
$('#saving_data_indicator').html('<img src="images/indicator.gif" /> deleting ...');
$.ajax({
type: "POST",
url: "index.php?action=ajax&ajax=records&ajaxaction=delete_record",
data: "record_id=" + record_id + "&record_lang=" + record_lang,
success: function(msg) {
$("#record_" + record_id + "_" + record_lang).fadeOut("slow");
$('#saving_data_indicator').html('<?php print $PMF_LANG['ad_entry_delsuc']; ?>');
}
});
}
}
/* ]]> */
Re: impossible to delete existing faq
I can give you admin access if you have time to investigate this