Closed (fixed)
Project:
Mapping kit
Version:
6.x-1.4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
1 Jun 2009 at 08:07 UTC
Updated:
22 Apr 2010 at 20:36 UTC
can anyone help i don't know what this is?
in the general page of mapping kit i get this error:
warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/usr/share/fonts/truetype/msttcorefonts) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/usr/share/php:/home/vol3/byethost33.com/***/htdocs) in /home/vol3/***.com/b33_3526578/htdocs/modules/mappingkit/mappingkit.admin.inc on line 143.
some one knows about this?
Comments
Comment #1
jpulles commentedThe function is searching in a unix system folder (in this case /user/share/fonts/truetype/msttcorefonts) for fonts but has no access to it. http://www.mydigitallife.info/2007/03/15/php-scripts-open_basedir-restri... gives a better explanation.
Comment #2
ruckerstephen commentedI've encountered this same problem; the link provided in #1 above does not help because this seems to simply be an issue of pointing the module to the right directory within Drupal, nowhere else. Please correct me if I'm wrong on this.
In the 'font folders' section of mappingkit configuration I added a subdirectory /fonts and the error message disappeared, however I cannot seem to pull up any of the tt fonts I've uploaded.
I'm probably missing the basic point--where in Drupal should (or are) tt fonts normally stored? Or should I have a module to manage them?
I've tried to load them at root/fonts/, then in hardcoded url http://www..../modules/mappingkit/fonts/ but not luck when I click on 'get fonts'.
some searching elsewhere here pulled up a perhaps related issue with captcha (http://drupal.org/node/24556), but I'm not sure.
Any help is appreciated...
Comment #3
jpulles commentedThe mapping kit tries to find fonts for the mapserver/mapscript functionality of the mapserver module. The fonts shouldn't be part of the general settings page and will be moved to the mapserver settings.
If the system fonts cannot be accessed by the php code of this page, users can write their own fontset.txt file for use by mapserver. Sorry for the confusion.
Your captcha link isn't related to this issue.
Comment #4
jpulles commented