Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Поддержка] CityManager (Определение города по IP, Geo IP)


Recommended Posts

Давно скачивали? Последняя версия должна нормально ставиться. Скиньте в личку адрес сайта, посмотрим.

Link to comment
Share on other sites

Да, возможно настроить вывод в зависимости от региона для вашей версии

Link to comment
Share on other sites

  • 2 weeks later...

Протестировал на 1.5.6, работает.

Вчера начал установку на 1.5.6, но в процессе выдало ошибку:

Internal Server Error

Internal Server Error

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 [email protected] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

Установка не завершена :( В чем может быть проблема?

 

Warning: Illegal string offset 'layout_id' in /home/holstof/data/www/holstof.ru/catalog/controller/common/column_left.php on line 50

Link to comment
Share on other sites


В prinstall выдало ошибку? До установки модуля все работало?

 

 

Warning: Illegal string offset 'layout_id' in /home/holstof/data/www/holstof.ru/catalog/controller/common/column_left.php on line 50

 

Это с модулем никак не связано.

Link to comment
Share on other sites

В prinstall выдало ошибку?

 

Да, во время выполнения установки выдало: 500 Internal Server Error

 

Warning: Illegal string offset 'layout_id' in /home/holstof/data/www/holstof.ru/catalog/controller/common/column_left.php on line 50

 

В интернете пишут, что у меня более новая версия php установлена на сервере.

Link to comment
Share on other sites


php 5.4.9_1

 

Также при установке выбираю "Только города", но деревни импортируются также. Может заново нужно установить БД? Какие таблицы удалить в БД (fias, country_to_fias, zone_to_fias) ???

Edited by alex5237
Link to comment
Share on other sites


Внес правки в модуль, теперь должен работать и на php 5.4

Link to comment
Share on other sites

Возможно ли, прикрутить к вашему модулю всплывающие окно типа - "Ваш регион определен как "Москва" верно?

 

В принципе, такое возможно.

Link to comment
Share on other sites

Внес правки в модуль, теперь должен работать и на php 5.4

 

Спасибо все работает!

Вот только в выпадающем списке все равно есть деревни и села, хотя при установке выбирал только города, как их отключить?

Link to comment
Share on other sites


Вот только в выпадающем списке все равно есть деревни и села, хотя при установке выбирал только города, как их отключить?

 

DELETE FROM `fias` WHERE level > 4

 

Link to comment
Share on other sites

Версия 3

  • Автоматический установщик БД
  • Вывод информации в зависимости от местоположения (геосообщения)
Link to comment
Share on other sites

Не знаю, почему, такое количество не тестировал. Настройки хранятся в таблице setting:

SELECT * FROM `setting` WHERE `group` = 'geoip' AND `key` = 'geoip_rule'

 

значение хранится в поле типа text, оно может вмещать 64 KB, может просто не поместилось. Можно попробовать сделать его mediumtext.

 

TINYTEXT        256 bytes

TEXT                65,535 bytes              ~64kb

MEDIUMTEXT  16,777,215 bytes        ~16MB

LONGTEXT      4,294,967,295 bytes  ~4GB

 

Подгрузить из файла нельзя.

Link to comment
Share on other sites

По поводу бекапов. Сохраните штук 20, зайдите в phpmyadmin (или другое, чем вы пользуетесь) сделайте запрос

SELECT * FROM `setting` WHERE `group` = 'geoip' AND `key` = 'geoip_rule' 

и сохраните значение поля value где-нибудь. Потом добавьте еще 10-20 правил и тоже самое. И такими шагами продвигайтесь, чтобы в случае чего не переписывать заново.

Хотя, я думаю, mediumtext должен помочь.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.