Icy Phoenix

     
 

Critical Error With " Force Users To Read This Topic "

Category: ACP
Version Icy Phoenix 2.0 Beta (Unknown - Unknown)
Description
Yros
Tue 18 Oct, 2011 23:12
Hi,

I got this error, using FTR :
Code: [Hide]
  1. Information Critique 
  2. SQL ERROR [ mysql4 ] 
  3.  
  4. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 [1064] 
  5.  
  6. SQL 
  7.  
  8. SELECT topic_title FROM ip_topics WHERE topic_id = 
  9.  
  10. BACKTRACE 
  11.  
  12. FILE: includes/db/mysql.php 
  13. LINE: 295 
  14. CALL: sql_db->sql_error() 
  15.  
  16. FILE: adm/admin_force_read.php 
  17. LINE: 329 
  18. CALL: sql_db->sql_query() 


The first time I tried it was working fine but the text wasn't satisfying so I added some html (<b> and <br>) to make it looks better. It STILL works in the forum but now I can't access the page on the ACP because of this error. So I went on the phpmyadmin to fix it (editing manually 'ftr_topic_number' in 'ip_config') but it should have a warn when you submit it WITHOUT selecting the topic users will have to read ^^

It's a little thing but better to notice =D
Reply
Mighty Gorgon
Tue 03 Jan, 2012 20:29
Very strange... I should have altered the code to prevent this though.
Details Assigned To: Mighty Gorgon
Priority: Low
Status: Fixed
Fixed: Yes