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 »

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: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by Thorsten »

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 »

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: 15559
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: deleteRecord not defined phpmyadmin 2.7.9

Post by Thorsten »

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 »

yes
Post Reply