Amount: of entries: still zero

mrgoltra - May 4, 2009 - 02:49
Project:IP to Country
Version:6.x-1.1-beta3
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

and site status is still saying that ip2cc database not installed, even after I installed on update settings page.. Any ideas?

background. I downloaded the CSV file and converted that to a mysql file named ipdb.mysql then uploaded that to the ip2cc module folder. I could not download the csv file using the fetchdb.sh

thank you

AttachmentSize
ip2status.png2.67 KB
ip2status2.png6.44 KB

#1

mrfelton - May 4, 2009 - 07:31

Did you import the database at admin/settings/ip2cc/update ?

ps. the current installation method is an absolute mess and way too manual... I'll be working on that this week hopefully.

#2

mrgoltra - May 4, 2009 - 07:37

yes I did I was going crazy because it was still reporting zero but when looked at the db table, it was getting inserted. thanks

#3

mrfelton - May 4, 2009 - 10:35
Version:6.x-1.1-beta2» 6.x-1.1-beta3
Status:active» fixed

please try with beta3.

#4

mrgoltra - May 5, 2009 - 16:50

Hi mrfelton

noticed new format. Followed instructions and clicked on update button and waited for 30 minutes. Checked database did not see any new table or entry related to ip2cc. I am assuming that update will insert to ip_to_country table?

Thank you very much

Mark

#5

mrfelton - May 5, 2009 - 17:00
Status:fixed» active

no, there is no ip_to_country table... the table it inserts into is named ip2cc. Does that table exist in your database? What is in it?

#6

mrgoltra - May 5, 2009 - 18:21

ok. table does exist. just checked the logs and getting this

Table 'drupal.ip2cc' doesn't exist query: INSERT INTO ip2cc VALUES('3758096384', '4294967295', 'US', 'Unknown', 0) in /hsphere/local/home/drupal/mysite.com/sites/all/modules/ip2cc/ip2cc.inc on line 21.

#7

mrfelton - May 5, 2009 - 18:24

strange. I'd sugest uninstalling and reinstalling the module - make sure you actually uninstall it, disabling it wont do. First, disable it at /admin/build/modules/ then uninstall it at /admin/build/modules/uninstall. Then reenable it at /admin/build/modules... it should create the table for you and populate it.

It's curious that you didn't have the table though - how did you install the module before? did you upgrade from a previous version?

#8

mrgoltra - May 5, 2009 - 18:29

ok will try it. Yes I just upgraded.

#9

mrfelton - May 5, 2009 - 18:36

upgraded from which version?

#10

mrgoltra - May 5, 2009 - 18:57

the one prior to new release.

#11

Sunil Mohan - June 16, 2009 - 13:36

I think the problem is that insert statement does not take into account Drupal database prefixes by wrapping the table name in {}. The attached patch with the simple change fixed the problem for me.

Also included in the patch is a small fix to correct the parsing of CSV format. It was missing a double quote at the end earlier.

AttachmentSize
fix_database_insert_and_parsing_regex.patch 718 bytes

#12

mrfelton - August 9, 2009 - 14:23
Status:active» fixed

Committed to CVS. Thank you, I believe this fixes the problem.

#13

System Message - August 23, 2009 - 14:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.