|
|
Fatal error - 2007/12/23 23:51
When I try to publish my first map I get the following error with GMapsPRO: Fatal error: Undefined class name 'jfactory' in /home/japanim/public_html/components/com_gmapspro/classes/configdao.class.php on line 32
Not sure how to resolve this. Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 00:03
I even removed all markers from the map, everything barebones, and still get the error if I publish the map on any page. Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 05:59
Which version are we talking about? I need to know to tell you how to resolve. The problem is that other components are setting a variable called _JEXEC for 1.0.x and 1.5 compatibility. In fact, one user and I debugged their problem and it turned out to be Acajoom. GMaps uses J1.5 functions *IF* it sees that variable defined. That variable IS a Joomla 1.5 variable .. not 1.0.13 and as such, it shouldn't be defined when running in Joomla 1.0.x.
If you are running the 1.0 RC1 build, then you can try this. Change the following code:
| Code: |
//Set Joomla 1.5 flag
if (defined('_JEXEC')) {
define("_GMAPS_J15", true);
} else
define('_GMAPS_J15', false);
|
to
| Code: |
//Set Joomla 1.5 flag
//if (defined('_JEXEC')) {
// define("_GMAPS_J15", true);
//} else
define('_GMAPS_J15', false);
|
By making this change, we're forcing the component run as if it is running within Joomla 1.0.x.
The change needs to be made in gmapspro.php and the admin.gmapspro.php files.
Post edited by: cs1559, at: 2007/12/24 06:00
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 19:29
Yes, I am running the latest version, however I opened those two files and don't see those lines of text as you have written them. My files say the following:
gmapspro.php
<?php /** * @version * @package GMapsPRO * @subpackage Administration * @copyright (C) 2006-2007 Chris Strieter * @license Commercial License * * PROPRIETARY SOFTWARE - * This software may not be used, copied, modified without the * written consent of Chris Strieter * */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); /** * CHANGE HISTORY: * 02/28/2007 cjs Added support to manage icons * cjs Addes support for SHOWMAPTYPE in the saveMap method * 03/04/2007 cjs Added support for enabling directions on all markers for * a map (in tabbed format) * 03/12/2007 cjs Added support for ordering tabs, defining the tab header * and a default marker to open upon rendering * 03/13/2007 cjs Added support for category option * 03/14/2007 cjs Added support for the marker data adapter to be persisted * 03/15/2007 cjs Added the imageurl for the marker * 03/19/2007 cjs Added publish flag for the map and marker * 04/11/2007 cjs Added code to support TABs on the edit configuration page * 05/15/2007 cjs Added publish/unpublish marker functions * 06/06/2007 cjs Added conditional definition of the htmlspecialchars_decode function * 09/11/2007 cjs Added support for adapters * 11/18/2007 cjs Added library definitions to use code from the component/com_gmapspro folder * 11/20/2007 cjs Added additional case statements */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); // Joomla 1.5 defined( '_JEXEC' ) or die( 'Restricted access' ); define( '_GMAPS_LIB_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/lib/gmaps/' ); define( '_GMAPS_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/' ); define( '_GMAPS_CLASSES_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/classes/' );
// for Joomla 1.5 if (defined('_JEXEC')) { define( '_GMAPS_PATTEMPLATE_DIR', $mosConfig_absolute_path . '/libraries/patTemplate/'); } else { define( '_GMAPS_PATTEMPLATE_DIR', $mosConfig_absolute_path . '/includes/patTemplate/'); require_once( _GMAPS_PATTEMPLATE_DIR . 'patTemplate.php' ); } //require_once( _GMAPS_PATTEMPLATE_DIR . 'patTemplate.php' );
admin.gmapspro.php
<?php
/** * @version * @package GMapsPRO * @subpackage Administration * @copyright (C) 2006-2007 Chris Strieter, Firestorm Technologies,LLC * @license * */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); /***** STILL UNDER DEVELOPMENT **********************/
// load the html drawing class define( '_GMAPS_LIB_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/lib/gmaps/' ); define( '_GMAPS_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/' ); define( '_GMAPS_CLASSES_DIR', $mosConfig_absolute_path . '/components/com_gmapspro/classes/' ); // for Joomla 1.5 if (defined('_JEXEC')) define( '_GMAPS_PATTEMPLATE_DIR', $mosConfig_absolute_path . '/libraries/patTemplate/'); else define( '_GMAPS_PATTEMPLATE_DIR', $mosConfig_absolute_path . '/includes/patTemplate/'); Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 19:32
Wait, my version says GMapsPRO 0.3.5, but I just bought GMaps like within the past week or two, there's a newer release? Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 19:52
Ok, so I went and downloaded the new version, RC1...and all of my markers disappeared, but my map isn't showing up:
http://www.johnburgreen.com/sitemap/ See Google logo, etc, but no map?
Post edited by: Forsh, at: 2007/12/24 20:06
Post edited by: Forsh, at: 2008/10/10 21:24 Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/24 20:24
Looks like if I remove old maps and start from scratch it will work. Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/25 05:50
You probably didn't need to start from scratch. It may have been an SQL error. I probably would recommend doing a DB upgrade and some additional fields/columns were added.
Now, I plugged in a direct url to view a maps list and recieved this.
| Code: |
Fatal error: main() [function.require]: Failed opening required '/home/japanim/public_html//libraries/pattemplate/patTemplate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/japanim/public_html/components/com_gmapspro/gmapspro.php on line 35
|
This tells me that it still things it is running under Joomla 1.5 as it is trying to include a template engine based on the 1.5 path. Once we resolve this,you should be good.
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/25 07:06
So the suggestions you posted above will aleiviate this? Link: Okinawa News
The administrator has disabled public write access.
|
|
|
Re:Fatal error - 2007/12/25 10:18
It should. That new variable is what I use to detemine when to invoke J1.5 functions.
The administrator has disabled public write access.
|
|