probs with install

16 views
Skip to first unread message

visual think map

unread,
Sep 19, 2011, 1:53:40 PM9/19/11
to Meipi OpenSource
hello,

firstly, how great is meipi (the idea anyway) if i can get it working.
I was just thinking that my google map project needed a group cms that
collaboratively mapped.
,
I hope meipi can be the solution.

Ok, I apologise i can't be more specific as to what the problems are
so i can only post a link ask if you can tell me what isn't working.

http://creativemaps.vism.ag/meipi/meipi.php

i have been through the install procedure, i fixed the write
permissions to allow new users to register, i tried testing adding a
placemark but i dont see the map unless i click map tab. i try to
click the entry and view in map and it doesnt show anything.

no icons for the markers appear.

i changed where it said convert in the functions/meipi.php to /usr/
local/bin/convert but this didnt solve anything.

i know i'm vague with problems but just not sure where to try fix. i'd
love to use this software to engage visitors and start collaboratively
mapping creativity in the world.

i hope we can get this working as its a great project

many thanks

chris

Jorge Alvaro

unread,
Sep 19, 2011, 2:14:10 PM9/19/11
to me...@googlegroups.com
hi,

we'll try to help you fix those problems.

first thing I've detected is this problem in meipi.php page. that's why the map is not loading there:

<br />
<b>Warning</b>: imagettfbbox() [<a href='function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in <b>/home/cxeeuwta/public_html/creativemaps/meipi/functions/meipi.php</b> on line <b>842</b><br />
<br />
<b>Warning</b>: imagettfbbox() [<a href='function.imagettfbbox'>function.imagettfbbox</a>]: Could not find/open font in <b>/home/cxeeuwta/public_html/creativemaps/meipi/functions/meipi.php</b> on line <b>842</b><br />

I think you need libgd configured in your server. can you check if you have it installed?

the same problem is causing no icons displayed on the map tab. try getting this url and open the contents, it displays the same error http://creativemaps.vism.ag/meipi/label.php?text=meipi&cat=1&width=38&height=24&stand=0

tell us if that fixes those problems
Jorge - - meipi.org

visual think map

unread,
Sep 20, 2011, 4:32:11 PM9/20/11
to Meipi OpenSource
hey jorge,

thanks for getting back.

contacted my server providers and they say that libgd (i shared this
http://www.boutell.com/gd/ assume this is the same as GD?) is
installed on the server. yay.

just i have to email them with how i need the GD configuring as i cant
access it, how does it need configuring to allow the map and the
icons?

i have to just send them the link and say please fix the errors?

cheers

chris

On 19 sep, 19:14, Jorge Alvaro <jorgealv...@gmail.com> wrote:
> hi,
>
> we'll try to help you fix those problems.
>
> first thing I've detected is this problem in meipi.php page. that's why the
> map is not loading there:
>
>  <br />
> <b>Warning</b>: imagettfbbox() [<a href='function.imagettfbbox'>function.
> imagettfbbox</a>]: Could not find/open font in <b>/home/cxeeuwta/public_html
> /creativemaps/meipi/functions/meipi.php</b> on line <b>842</b><br />
> <br />
> <b>Warning</b>: imagettfbbox() [<a href='function.imagettfbbox'>function.
> imagettfbbox</a>]: Could not find/open font in <b>/home/cxeeuwta/public_html
> /creativemaps/meipi/functions/meipi.php</b> on line <b>842</b><br />
>
> I think you need libgd configured in your server. can you check if you have
> it installed?
>
> the same problem is causing no icons displayed on the map tab. try getting
> this url and open the contents, it displays the same errorhttp://creativemaps.vism.ag/meipi/label.php?text=meipi&cat=1&width=38...

Jorge Alvaro

unread,
Sep 20, 2011, 5:26:15 PM9/20/11
to me...@googlegroups.com
hi,

looking again at the error you copied I read that the problem is "Could not find/open font".

there are some things to check to try and find the problem. let's see if we fix it ;)

1) check the configuration parameter in your meipiConfig.php file. from the error found, I think the correct $baseFolder in your case should be this:
$baseFolder = "/home/cxeeuwta/public_html/creativemaps/meipi/";

if you have a different value, try changing it to the correct one and reload the main page. you should see some tags in the map.


2) just if previous point was already ok:

maybe it's not libgd but a different library. according to the php manual, it also needs freetype library. you can check if you have them installed in your server by uploading a new php file to your server (no need to be under /meipi/) with just this as content:
<? phpinfo() ?>

note: this page will provide a lot of information, it's better not to make it public, not to upload it with a common name like phpinfo.php, and remove it after you have checked the info you need.

you should see all your server php configuration in a page. there should be a block similar to this, as seen from our server.

check the block for gd / freetype, this is what we have in our server:

gd

GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled


I hope point 1) solves the issue. we'll review the installation process to clarify it better for next users. tell us your progress
Jorge - - meipi.org

visual think map

unread,
Sep 22, 2011, 4:30:01 PM9/22/11
to Meipi OpenSource
hey jorge,

many thanks for the help. greatly appreciated. turns out i had got the
base folder wrong. was unsure, think i was getting mixed up as to what
the common files folder location was and the base. was sure if they
were the same?

i can see the tags now and the map. yay.

i tested an image in the test entry, and its not displaying. have they
got be jpegs or tiff's? (think the random small image i chose was png)

wow... can't wait to get this community up and running and customised.
been wanting to allow people to collaboratively map creativity and
innovation for a while. so many ideas and questions. i hope i dont
annoy you all too much as i try to test things out. you must forgive
me as for instance with the google maps api that i use here
http://creativemaps.vism.ag i thoroughly look at the documentation
before i go asking for help. i can appreciate there isn't the
resources available here as with the maps to create a documentation so
i might be post a few times if you guys are alright with me?

ok,

the gd i found it on the php info page (thanks for reminding me to be
a little more discrete with the access and naming of that file) says
enabled and

FreeType Version 2.2.1

i mention this because i cant see icons on the map page in the key. is
this a gd config, or do i need to update the file path to the image
file?

also, i am going to try style and customise it to look more like its
utilised by creative maps. for instance of the top of my head:

can i use the image overlays like i do in the maps api to layer over
particular areas? if so is it only the map.php file i'd have to do
this?

for the categories, which php files would i need to add 3 more
categories (like i have on the map) and style their colours to match?

also i see the one tag i've done has the name in its marker/tag on the
map, can i use a custom marker icon?

one small snag, when i try to close the info window on the map page,
it jumps/moves it to the over side (left of screen) and i have to
close it with cross once more before it closes. - this is tiny

one thing i'd like to mention in hope it helps, some files i had to
change the 6 4 4 permissions to access the files in the server (maybe
because i had the base folder wrong) i didnt know which ones to give 7
5 5 too. i still kept the config files 6 4 4 and changed the ones you
said too 7 7 7.

do i not need most of my files 7 5 5 ? i suspected none of those
contained any private info yet so wasn't a prob but they might if i
have new users.

anyhow thanks for your help and look forward to styling it

cheers

chris

On Sep 20, 10:26 pm, Jorge Alvaro <jorgealv...@gmail.com> wrote:
> hi,
>
> looking again at the error you copied I read that the problem is "Could not
> find/open font".
>
> there are some things to check to try and find the problem. let's see if we
> fix it ;)
>
> 1) check the configuration parameter in your meipiConfig.php file. from the
> error found, I think the correct $baseFolder in your case should be this:
> $baseFolder = "/home/cxeeuwta/public_html/creativemaps/meipi/";
>
> if you have a different value, try changing it to the correct one and reload
> the main page. you should see some tags in the map.
>
> 2) just if previous point was already ok:
>
> maybe it's not libgd but a different library. according to the php
> manual<http://php.net/manual/en/function.imagettfbbox.php>,
> it also needs freetype library. you can check if you have them installed in
> your server by uploading a new php file to your server (no need to be under
> /meipi/) with just this as content:
> <? phpinfo() ?>
>
> note: this page will provide a lot of information, it's better not to make
> it public, not to upload it with a common name like phpinfo.php, and remove
> it after you have checked the info you need.
>
> you should see all your server php configuration in a page. there should be
> a block similar to this, as seen from our server.
>
> check the block for gd / freetype, this is what we have in our server:
> gd GD Support enabled GD Version 2.0 or higher FreeType Support
> enabledFreeType Linkagewith freetypeT1Lib SupportenabledGIF Read
> SupportenabledGIF Create SupportenabledJPG SupportenabledPNG
> SupportenabledWBMP Supportenabled
>
> I hope point 1) solves the issue. we'll review the installation process to
> clarify it better for next users. tell us your progress
> Jorge - - meipi.org
>
> On Tue, Sep 20, 2011 at 10:32 PM, visual think map <
>
>
>
>
>
>
>
> chris.watso...@googlemail.com> wrote:
> > hey jorge,
>
> > thanks for getting back.
>
> > contacted my server providers and they say that libgd (i shared this
> >http://www.boutell.com/gd/assume this is the same as GD?) is

Jorge Alvaro

unread,
Sep 22, 2011, 5:54:05 PM9/22/11
to me...@googlegroups.com
hi,

I'll reply inline to the points on your email. it's good to hear people uses meipi, we know the installation process might not be as clear as needed so we can help with it.

On Thu, Sep 22, 2011 at 10:30 PM, visual think map <chris.w...@googlemail.com> wrote:
hey jorge,

many thanks for the help. greatly appreciated. turns out i had got the
base folder wrong. was unsure, think i was getting mixed up as to what
the common files folder location was and the base. was sure if they
were the same?
 
they are two different parameters needed, one for the local files and the other for the url. looks like they are ok now.


i can see the tags now and the map. yay.

:)
 
i tested an image in the test entry, and its not displaying. have they
got be jpegs or tiff's? (think the random small image i chose was png)

I haven't tested with tiff though, I'm not sure if the image library supports it.

jpeg, gif, png, ... many image formats work, so I guess there's some problem. can you check these folders and get their permissions and if they have any file on it? those are the folders that need read+write permission for the user running the web server.

/home/cxeeuwta/public_html/creativemaps/meipi/images/entry/
/home/cxeeuwta/public_html/creativemaps/meipi/images/thumbnail/
/home/cxeeuwta/public_html/creativemaps/meipi/images/square/
/home/cxeeuwta/public_html/creativemaps/meipi/images/original/

note: the path you'll see if you access via ftp might be different, something like /meipi/images/entry/.

wow... can't wait to get this community up and running and customised.
been wanting to allow people to collaboratively map creativity and
innovation for a while. so many ideas and questions. i hope i dont
annoy you all too much as i try to test things out. you must forgive
me as for instance with the google maps api that i use here
http://creativemaps.vism.ag i thoroughly look at the documentation
before i go asking for help. i can appreciate there isn't the
resources available here as with the maps to create a documentation so
i might be post a few times if you guys are alright with me?

ok,

the gd i found it on the php info page (thanks for reminding me to be
a little more discrete with the access and naming of that file) says
enabled and

FreeType Version        2.2.1

i mention this because i cant see icons on the map page in the key. is
this a gd config, or do i need to update the file path to the image
file?

try clearing the browser cache. the same happened to me but that fixed it.
 
also, i am going to try style and customise it to look more like its
utilised by creative maps. for instance of the top of my head:

can i use the image overlays like i do in the maps api to layer over
particular areas? if so is it only the map.php file i'd have to do
this?

this is similar to the OpenStreetMap plugin available with meipi. it's better to do it there so it will work in all the maps in the site. you can copy the openstreetmap plugin and configure it in meipiConfig.php. also, it's better to add things as plugins when possible to avoid modifying the meipi code. it will be easier for you to include updates from meipi into your site.
 
for the categories, which php files would i need to add 3 more
categories (like i have on the map) and style their colours to match?

the categories are in a table in the database. just add a new row in that table and the pages should show them. for the styling, you can create a new .css file and load it using the $extraStyles property in meipiConfig.php. There's an example called style_2_categories.css that you could load it setting:

$extraStyles = "2_categories";

also i see the one tag i've done has the name in its marker/tag on the
map, can i use a custom marker icon?

you can set it to use icons instead of labels also in meipiConfig. default icons are similar to gmaps icon.
$useIcons = "true";

for extra changes you could even develop a plugin, have a look to the "starred" plugin if you want to go that way.

one small snag, when i try to close the info window on the map page,
it jumps/moves it to the over side (left of screen) and i have to
close it with cross once more before it closes. - this is tiny

it was already reported, but still not solved. if you happen to find a solution, we are open to include it in the opensource project ;) also, if you find any other bug you can report it in the project issues page.

one thing i'd like to mention in hope it helps, some files i had to
change the 6 4 4 permissions to access the files in the server (maybe
because i had the base folder wrong) i didnt know which ones to give 7
5 5 too. i still kept the config files 6 4 4 and changed the ones you
said too 7 7 7.

do i not need most of my files 7 5 5 ? i suspected none of those
contained any private info yet so wasn't a prob but they might if i
have new users.

the folders that need special permissions are the images folders. they need to be accessible by the web server to copy the uploaded files there.
 
anyhow thanks for your help and look forward to styling it

update us with your progresses or if you still have problems with the image upload.

cheers

chris

visual think map

unread,
Sep 26, 2011, 6:31:42 PM9/26/11
to Meipi OpenSource
hey, finally found some time to have a stab at this.

right i installed the plugin. plugins/openstreetmap/openstreetmap.php

and in meipiConfig it says openstreetmap in the brackets and
removed // to make it active.

now this is where i'm struggling, there is lots of links i discover
but not sure how to implement.

so i need to essential take this javascipt from google maps and find a
way to do it in osm inside this openstreetmap.php that i just created

function overlayAdd()

{

var sw = new google.maps.LatLng(51.477986,-0.212517) ;

var ne = new google.maps.LatLng(51.571119,0.003777) ;

var bounds = new google.maps.LatLngBounds(sw,ne) ;

var overlay = new ProjectedOverlay(map,'http://creativemaps.vism.ag/
londonmapterrain.jpg', bounds, {percentOpacity:100}) ;

overlays.push(overlay);

In this openstreetmap.php can i just play with any openstreetmap
documentation in there? do i need to call the library like id in
google maps api v3?

i came across this,

http://openlayers.org/dev/examples/image-layer.html

seems like a basic way to overlay an image as it uses this,
http://dev.openlayers.org/docs/files/OpenLayers/Layer/Image-js.html#OpenLayers.Layer.Image.OpenLayers.Layer.Image
how do i know where these co-ordinates are placing my image? -180,
-88.759, 180, 88.759

i just did north east, south west coordinates and i used this tool
(below) to know where the image is aligned and positioned on the map.

http://gmaps-samples.googlecode.com/svn/trunk/groundoverlay/groundoverlaysizer.html

is there an open street map alternative? how can i see where and
extract the coordinates?



so, yeah not quite sure how start tackling this openstreetmap and
integrating it into my php file.

will get on to the other points such as markers and categories soon.

again will really appreciate the help. hope i make sense.

cheers

chris

On Sep 22, 10:54 pm, Jorge Alvaro <jorgealv...@gmail.com> wrote:
> hi,
>
> I'll reply inline to the points on your email. it's good to hear people uses
> meipi, we know the installation process might not be as clear as needed so
> we can help with it.
>
> On Thu, Sep 22, 2011 at 10:30 PM, visual think map <
>
> >http://creativemaps.vism.agi thoroughly look at the documentation
> page<http://code.google.com/p/meipi/issues/list>
> .
> > > >http://www.boutell.com/gd/assumethis is the same as GD?) is
> > > > > > placemark but i dont see the map unless i click map tab. i try to...
>
> read more »

Jorge Alvaro

unread,
Oct 27, 2011, 3:06:10 PM10/27/11
to me...@googlegroups.com
hi,

sorry for the late answer, I couldn't get time to check it and reply before.


first, I'd like to know if you managed to get the file uploads working or not yet. I think it is more important for a meipi to have that functionality than adding extra image layers to the map. let us know if you still need help with that.


next, some comments about the new map plugin you need:

the ideal way to do it would be to create a new plugin, instead of modifying the one for openstreetmap. you could later enable both if you haven't modified it, and if you'd like to contribute to the community a configurable plugin to add a new layer on top of the map, I'm sure people would find it useful.

to create a new plugin, copy the same structure that already exists for openstreetmap and replace its name with your new plugin. and set it in meipiConfig.php file with your new name too.


then, about openlayers and other maps apis: we started meipi just with google maps and we used their api. we later discovered about openlayers and probably we would have used that if we had known before. for the moment, meipi uses gmaps api.

from a plugin you have access to the google maps options to create the map. you can add or modify the options for the map. open street map plugin uses it to add the new layers for osm, but you can do other things with it.

you can have a look at the api documentation. here's a link to the GMapOptions class, that is what you get in the map plugins. anything you can do with that object will be displayed in the maps in the meipis when the plugin is enabled, so check how to do what you need with it:
http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMapOptions


have a try to create the plugin with our help in this group. we'll continue replying any doubt you have (and will try to do it sooner than this time ;). if you don't find how to do it you could contact us at meipi.org or meipi.com and ask for a price.

cheers,
Jorge - - meipi.org 
Reply all
Reply to author
Forward
0 new messages