« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: require_once() [function.require-once]: URL file-access is disabled in the server configuration
Error type/ Nr.: Warning - 2
File: /home/public_html/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 1
<?php
require_once("http://www.domain.com/geoip.inc");
$gi = geoip_open("http://www.domain.com/GeoIP.dat",GEOIP_STANDARD);
$country_code = geoip_country_code_by_addr($gi, $_SERVER[’REMOTE_ADDR’]);
$country_name = geoip_country_name_by_addr($gi, $_SERVER[’REMOTE_ADDR’]);
geoip_close($gi);
switch ($country_code){
case "":
?>UNKONWN !!!
<?php;
break;
default:
echo $country_name;
break;
}
?>
MODx version 1.0.3
Version codename rev 6653
phpInfo() View
Access permissions Enabled
Server Time 12:46:32
Local Time 12:46:32
Server offset 0 h
Database name domain_com_modx
Database server 127.0.0.1
Database Version 5.0.92-community-log
Database Charset latin1
Database Collation Charset latin1_swedish_ci
Table prefix modx_
MODX_BASE_PATH /home/public_html/
MODX_BASE_URL /
MODX_MANAGER_URL http://www.domain.com/manager/
MODX_MANAGER_PATH /home/public_html/manager/
MODX_SITE_URL http://www.domain.com/
require_once("geoip.inc");