Hi,
I had the same problem and figured out a solution that worked for me. In my case I had an apostrophe (‘) in the description of some of my files. Those files wouldn’t let me edit them. It turns out this was due to a bug in the code. I found a couple small fixes that corrected the problem for me.
These files can be edited through your normal html editor, or through WordPress bu editing the source of the plugin.
The file you need to edit is dm-main.php
Around page 215 you’ll see:
echo " <td class=\"alternate\"><a href=\"#edit\" onClick=\"EditDownload('".$row['id']."', '".$row['name']."', '".$row['catname']."', '".$row['icon']."', '".$row['description']."', '".$row['permissions']."', '".$row['link']."', '".date('d/m/Y', $row['date'])."', '".$row['clicks']."');\" class=\"edit\">".__('Edit', 'downloads-manager')."</a></td>\n";
echo " </tr>\n";
You’ll need to replace it with:
echo " <td class=\"alternate\"><a href=\"#edit\" onClick=\"EditDownload('".$row['id']."', '".addslashes($row['name'])."', '".addslashes($row['catname'])."', '".$row['icon']."', '".addslashes($row['description'])."', '".$row['permissions']."', '".$row['link']."', '".date('d/m/Y', $row['date'])."', '".$row['clicks']."');\" class=\"edit\">".__('Edit', 'downloads-manager')."</a></td>\n";
echo " </tr>\n";
All I did was put addslashes() around $row[‘name’], $row[‘catname’], and $row[‘description’]. So now if one of those fields contains an apostrophe it will not cause this error.
I am not able to edit those files without a problem!