[BlueOnyx:19344] Can't create vsite if geoip is installed but disabled

Darren Wolfe darren at intersys-group.com
Thu Mar 17 10:27:25 -05 2016


This is on 5209r, latest versions of everything.

If av-spam is installed but geoip is disabled, when creating a new vsite, the following error appears:

A PHP Error was encountered
Severity: Notice
Message: Undefined index: vsite_volume_limit
Filename: create.Vsite/51_geoIP.php
Line Number 202

A PHP Error was encountered
Severity: Notice
Message: Undefined index: vuser_volume_limit
Filename: create.Vsite/51_geoIP.php
Line Number 203

A PHP Error was encountered
Severity: Notice
Message: Undefined index: geo_enforce_limits
Filename: create.Vsite/51_geoIP.php
Line Number 204

The vsite is not created, as a red error bar appears saying:
An error occured while attempting to update the MySQL database with the desired settings. Please try again.

If geoip is enabled, there are no problems.

The cause appears to be when geoip is enabled, some hidden fields are embedded in the vsiteadd form which are not present when it is disabled and the extension script fails if they are not present.
If geoip is disabled the extension script should either not be called or it should determine if geoip is disabled and not go any further.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20160317/cc43ab63/attachment.html>


More information about the Blueonyx mailing list