Error when deleting a catepory

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Mannekino
Posts: 2
Joined: Tue Feb 22, 2005 4:09 pm

Error when deleting a catepory

Post by Mannekino »

Hi, we are using phpMyFAQ for a school project (creating a knowlegde base for our project group). The following error message presents itself when deleting a category.
Parse error: syntax error, unexpected T_PRINT in D:\path\to\the\phpMyFAQ\dir\category.remove.php on line 24
Here is an output of the system information presented on the start page of the administration section.
  • phpMyFAQ Version: phpMyFAQ 1.4.6
  • Server Software: Microsoft-IIS/6.0
  • PHP Version: PHP 5.0.3
  • PHP Memory Limit:Register Globals: on
  • Safe Mode: off
  • MySQL Client Version: MySQL 4.1.7
  • MySQL Server Version: MySQL 4.1.9-max
  • Webserver Interface: ISAPI
Any thoughts on what could be the cause of this error?
Thorsten
Posts: 15749
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

yes, this is a known bug. :-(

I'll release a fixed version as soon as possible.

Here's the patch:

Line 23 in admin/category.remove.php:

Code: Select all

$db->query("DELETE FROM ".SQLPREFIX."faqfragen WHERE ask_rubrik = '".$_POST["cat"]."'");
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Mannekino
Posts: 2
Joined: Tue Feb 22, 2005 4:09 pm

Post by Mannekino »

Ah lol :) completely overlooked that ";". I was looking at the code for serveral minutes couldn't find anything wrong with it, not syntax wise anyway. /me needs new glasses...

Thanks for the fix.
Post Reply