× Forum for the GPXTrackMap Content Plugin for Joomla! 2.5 and 3.x

Fatal error: Class 'JFile' not found.. line 177

fingeradmin replied the topic: Fatal error: Class 'JFile' not found.. line 177

10 years 2 months ago

Hi Jim,

(sorry it took me so long).

I just had a look at your site. When i open it in Chrome with Developer Tools active (F12), it shows a Javascript error
"uncaught typeerror: undefined is not a function".

According to this on stackoverflow.com ,
it seems to be related to not properly terminated Javascript includes.

Since the plugin is running fine on all my real and test
servers as well as a lot of other sites, i can only guess
it must be some of the Javascript files on your site...

You could try and check if all the included js files are
properly terminated with a semicolon.

Btw. make sure you are using the latest version of the plugin
from here (first post at the bottom) -
this one has the JFile fix built in already.

EDIT: I just updated my local test installation to J3.3.3 and
i can reproduce the disappearing map - seems to be a conflict
of mootools vs. jQuery.

In the Advanced Settings of the plugin, setting "Use jQuery" to
"Yes" solved the issue here, could you try that please?

hth, Frank

Last edit: 10 years 2 months ago by fingeradmin.

Please Log in or Create an account to join the conversation.

tacticaljim created the topic: Fatal error: Class 'JFile' not found.. line 177

10 years 2 months ago

Hi,

I recently installed the plugin on a dev site hosted by cloudaccess which works fine, but when deploying it to a full site hosted with Siteground I got the following error:

Fatal error: Class 'JFile' not found in .../public_html/plugins/content/gpxtrackmap/gpxtrackmap.php on line 177

The guys at Siteground added the following at line 176 which got rid of the error message
jimport( 'joomla.filesystem.file' );

However the map section does not display (all the other data displays fine).

The openLayers and OpenStreetMap scripts were working fine on the dev site so should be on this one, but just in case I downloaded them and am hosting them on my own site. I still can't get the map though.

Apologies if I am doing something stupid, but please can you help.

The page with the problem is:
www.adrenalinplayground.com/index.php/mtb

Many thanks,

Jim

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum