Bug #207
Superfecta Cache & Infobel
| Status: | Closed | Start: | 10/18/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | Caller ID Superfecta v 2.2.2 Maintenance Release |
Description
Clear the cache, use an international number to lookup (see bug 203 for an example). Debug states it finds the lookup, says cache updated. Request the number again, it still can(t be found in the cache.
History
Updated by tshif over 2 years ago
- Status changed from New to Reviewed
- Target version changed from Caller ID Superfecta - Future Versions to Caller ID Superfecta Source Files
Updated by tshif over 2 years ago
- Tracker changed from Support to Bug
Updated by zorka over 2 years ago
Little follow up.
Source generated with infobel contains "charset=Windows-1252".
I'm messing around, replacing "$sname = $sname1[0];" in the source with "iconv ( 'Windows-1252' , 'utf-8' , $sname );" without success, but my knowledge of charsets is limited.
Can anyoneelse have a look ?
Updated by zorka over 2 years ago
1 iconv ( 'Windows-1252' , 'utf-8' , $sname );"should be
1 $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );" Updated by zorka over 2 years ago
Found the cache problem !
In Infobel the original $thenumber is altered like this :
1 if (strlen($thenumber) > 10)
2 {
3 if (substr($thenumber,0,2) == '33')
4 {
5 $thenumber = '0'.substr($thenumber,2);
6 $Country = 'FR';
7 }
When source-Superfecta_Cache.php is called with "$usage_mode == 'post processing'" $thenumber contains the modified number and not the original, so the wrong number is placed in the cache.
Updated by tshif over 2 years ago
- Status changed from Reviewed to Assigned
Patrick - please review when you have time.
Zorka - have you made these changes in svn as of yet?
Updated by zorka over 2 years ago
Haven't made the changes yet. Need some reading on how to do it first ;-)
svn is new for me.
Updated by tshif over 2 years ago
Im pretty sure we dont have a charsets expert amoung us - certainly not me - but I do think your work with charsets is important.
1 iconv ( 'Windows-1252' , 'utf-8' , $sname );"
should be1 $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );"
This may be a big part of the problem with special characters that we currently have with this source. Im looking forward to seeing this fix deployed.
Updated by tshif over 2 years ago
Zorka - do you plan on deploying $sname = iconv ( 'Windows-1252' , 'utf-8' , $sname );"
?
I am anxious to see if this has an impact on spurious charcters in the CID data.
Updated by zorka over 2 years ago
Not yet.... The results just aren't what they should be. Still investigating.
But I committed the cache-thing
Updated by tshif over 2 years ago
- Status changed from Assigned to Closed
- Target version changed from Caller ID Superfecta Source Files to Caller ID Superfecta v 2.2.2 Maintenance Release
- % Done changed from 0 to 100
QS: Cache bug corrected