deleteRecord not defined phpmyadmin 2.7.9

Please report bugs here!

Moderator: Thorsten

Post Reply
florent6001
Posts: 4
Joined: Fri Sep 29, 2017 10:19 am

deleteRecord not defined phpmyadmin 2.7.9

Post by florent6001 » Wed Jan 03, 2018 11:09 am

Hi all,
i use phpmyfaq 2.7.9 on my website and i have an error in the back-office when i want to delete an article.

Here is my code: (record_show.php): https://hastebin.com/piyiwixiwu.bash

Here is my error (in console) :

Uncaught SyntaxError: Unexpected token ]
Error when i click on the delete icon:

Uncaught ReferenceError: deleteRecord is not defined
at HTMLAnchorElement.onclick (?action=view:1413)


I can't update the version, ty

Thorsten
Posts: 14574
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by Thorsten » Wed Jan 03, 2018 11:41 am

Hi,

why can't you update your version?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

florent6001
Posts: 4
Joined: Fri Sep 29, 2017 10:19 am

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by florent6001 » Wed Jan 03, 2018 11:47 am

i can't update the phpversion of my server.
After 3hours of search i found a solution:

Comment this:

function saveStatusForCategory(id, type)
{
var id_map = [];
<?php
foreach ($all_ids as $cat_id => $record_ids) {
//echo " id_map[" . $cat_id . "] = [" . implode(',', $record_ids) . "];\n";
}
?>

Thorsten
Posts: 14574
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by Thorsten » Wed Jan 03, 2018 1:14 pm

Hi,

so you're still running PHP 5.2?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

florent6001
Posts: 4
Joined: Fri Sep 29, 2017 10:19 am

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by florent6001 » Wed Jan 03, 2018 1:29 pm

yes

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests