By Jody Wan on Wednesday, 03 December 2014
Posted in Technical Issues
Replies 9
Likes 0
Views 750
Votes 0
Hi,

I recently updated EasySocial 1.3.13, i have the following problem when i inspect element from chrome:

http://www.xxx.com/media/foundry/4.0/scripts/moment/undefined.min.js Failed to load resource: the server responded with a status of 404 (Not Found)

I checked the media/foundry/4.0/scripts/moment/ i couldnt find the undefined.min.js.

am i missing the file?
Hi,

This means that there could be some configuration mismatch on your server in regards to the language set on your site. "undefined" comes from the fact that the system has problems detecting your site language in order to load the correct calendar language file.

Please provide us your site's access and FTP access so that we can investigate further.
·
Wednesday, 03 December 2014 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry i couldnt provide you FTP access to our site. the configuration of our joomla is set English(GB), am i missing undefined.min.js file? can you provide me this file?
·
Wednesday, 03 December 2014 16:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Unfortunately under this circumstances, I will need your site's access to further proceed on investigating why the system is not able to detect your site's language.

The file is not "undefined.js". As mentioned, "undefined" comes from the fact that the system has problems detecting your site language in order to load the correct calendar language file, and "undefined" is a value returned by JavaScript when no value is defined. It should be "en-gb.js" or such.
·
Wednesday, 03 December 2014 16:37
·
0 Likes
·
0 Votes
·
0 Comments
·
for security reasons i couldnt give you FTP access of our site, our default language is en-gb, could you tell me where the file for detecting the site language i could take a look and fix it myself. thank
·
Wednesday, 03 December 2014 17:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Depending on which page you are loading.

The initial code that determines the language to load is from:

/administrator/components/com_easysocial/includes/configuration/configuration.php, line 88, that determines the language string.

JavaScripts that are loading this property is:

/media/com_easysocial/scripts/easysocial-[version].[mode][.type].js

version would be the EasySocial version that you are running
mode would either be static or optimized, depending on the environment of the page. Ideally if you are not running EasyBlog/EasyDiscuss/Komento related elements on the same page as EasySocial, then this would be 'static', else it would be 'optimized'.
.type only exist if the script used is a compressed version. By default the system always loads the compressed version, hence this will be '.min'

There is 4 possible combination for this:

/media/com_easysocial/scripts/easysocial-1.3.13.optimized.js
/media/com_easysocial/scripts/easysocial-1.3.13.optimized.min.js
/media/com_easysocial/scripts/easysocial-1.3.13.static.js
/media/com_easysocial/scripts/easysocial-1.3.13.static.min.js

Ideally, it would most likely be /media/com_easysocial/scripts/easysocial-1.3.12.static.min.js but because this script is a compressed script, the codes are minified and not readable.

You will need to go to backend -> Settings -> System Preferences and set the environment to development in order to debug. This will force the system to load individual scripts instead of 1 compiled script.

Currently 3 area uses Moment Language:

/media/com_easysocial/scripts/apps/fields/event/startend/content.js - Used in Create Event, Edit Event, for the "Start End" field
/media/com_easysocial/scripts/apps/fields/user/datetime/content.js - Used in Registration, Edit Profile, for the "Datetime" and "Birthday" Field
/media/com_easysocial/scripts/story/event.js - Used in Dashboard's Event Creation Story Form.

Depending on where your error is, you will have to inspect the appropriate file. The property that is used to retrieve the language code is "EasySocial.options.momentLang".

If you were to modify the javascripts, and would like to apply the changes to the compiled script, you will have to go to backend and execute the url:

site.com/administrator/index.php?option=com_easysocial&compile=1&minify=1

This will recompile all the individual scripts and you can now set the system preferences back to "Production" mode.
·
Wednesday, 03 December 2014 17:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank for the info.
·
Wednesday, 03 December 2014 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

You're welcome.
·
Wednesday, 03 December 2014 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank i fixed the problem, the /administrator/components/com_easysocial/includes/configuration/configuration.php file wasnt lastest update file, somehow the update wasnt do properly, fix it by manually replace the file. (use com_easysoical_component_pro_1.3.13_joomla3.0.zip)


Many Thank for you great support
·
Wednesday, 03 December 2014 18:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Great to hear that!
·
Wednesday, 03 December 2014 18:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post