If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Cannot send comments  XML
Forum Index » Support Forum
Author Message
Anonymous



Problem:
I try to send comment, but database wont accept it.

Sollution:
browser field in database is omited on 70 chars. Some browsers (Mozilla firefox 0.9.2) generate string with more than 70 chars so Insert script get error.
open include/class_pollcomment.php
search for string $agent
replace line
$agent=@getenv("HTTP_USER_AGENT");
with
$agentAll=@getenv("HTTP_USER_AGENT");
$agent=substr($agent,0.6;
This will trim string to 69 characters
Anonymous



...
$agent=substr($agentAll, 0 , 69 );
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum