geocoder examples not displaying

By rez - March 28, 2011

When trying to view the included geocoder examples in cmsb, i get the following errors:

Warning: require_once(../../../lib/viewer_functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/forumc/public_html/cmsAdmin/plugins/examples/sample_map_single.php on line 2

Fatal error: require_once() [function.require]: Failed opening required '../../../lib/viewer_functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/forumc/public_html/cmsAdmin/plugins/examples/sample_map_single.php on line 2


Saw this with a previous install and I cant figure out how i fixed it. I have uploaded the files and folders like they came:

plugins/_geocoding_sample.defaultSqlData.php
plugins/_geocoding_sample.ini.php
plugins/geocoder.php
plugins/examples/sample_form.php
plugins/examples/sample_map_multi.php
plugins/examples/sample_map_single.php
plugins/examples/sample_search.php

Re: [rez] geocoder examples not displaying

By Jason - March 28, 2011

Hi,

It looks like a path issue. Usually, all of these geocoder files are inside a geocoder folder.

You can either deactive geocoder, move all these files into a geocoder folder, then reactivate the plugin, or you can remove a "../" from the path like this:

require_once(../../lib/viewer_functions.php

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [rez] geocoder examples not displaying

By Jason - March 28, 2011

Hi,

Glad that issue has been resolved for you. Usually the best practice is to take the plugin folder you download from us, and upload that folder directly to the plugins folder on your server. That way the file structure stays the same.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/