closed Javascript URL Errors On Install

Developer Networks
Developer Networks
@developer-networks
5 years ago
566 posts
I am installing Version 6.2.0

Using The Elastic2 Skin by default.

The Javascript in the meta file is returning the wrong url.

I think theres a typo and I did a search in phpstorm for the word sking but it did not return much.

Please notice that it is showing /sking/ instead of /skins/ for the javascript location links.

The issue is Javascript is not loading for the skin after install. I notice in the meta part of the header the javascript location url links is wrong. I believe this could be a bug or typo in the latest core. Please verify lines 14 & 15 below.

<!doctype html>
<html lang="en" dir="ltr">
<head>
<title>Home | mysite.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito+Sans:400italic,400,600,700" type="text/css">
<link rel="stylesheet" href="https://mysite.com/test/data/cache/jrElastic2/Sad3566dac1b2f11c8d0c10ce22409990.css" media="screen" type="text/css">
<script type="text/javascript" src="https://mysite.com/test/data/cache/jrElastic2/Sfcac3228b9f6dda934d716e104c5d508.js"></script>

<script type="text/javascript" src="https://mysite.com/test/sking/jrElastic2/js/jrElastic2.js"></script>
<script type="text/javascript" src="https://mysite.com/test/sking/jrElastic2/js/jrElastic2.jsresponsiveslides.min.js"></script>
</head>



updated by @developer-networks: 07/19/19 04:25:48AM
brian
@brian
5 years ago
10,148 posts
Sounds like you have something corrupting your downloads, or malware that is affecting your server in some way. I've just installed the OS Jamroom here no issues. Note that every install on our hosting uses the open source as the base, so we'd see this VERY fast if there was an issue. Note as well that "skins" in the URL is hard coded as well, so I have no idea how your install is being corrupted but it is.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
5 years ago
10,148 posts
Also note - the CSS should only be pulled from the cache directory - never directly from the skins directory, since all JS and CSS is processed. Here is what the correct meta section looks like on a fresh Elastic 2 install:

<head>
<title>Home | install.jamroom.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Nunito+Sans:400italic,400,600,700" type="text/css">
<link rel="stylesheet" href="http://install.jamroom.net/data/cache/jrElastic2/8d4208cf624fff0bc11fba83064a1a2e.css" media="screen" type="text/css">
<script type="text/javascript" src="http://install.jamroom.net/data/cache/jrElastic2/124ee9d2828c1d72458b2ab919c04be5.js"></script>
<script type="text/javascript" src="http://install.jamroom.net/data/cache/jrElastic2/124ee9d2828c1d72458b2ab919c04be5-admin.js"></script>
</head>

Yours is incorrect - you've either customized it, are trying to re-install over an old corrupted install, or something else.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Developer Networks
Developer Networks
@developer-networks
5 years ago
566 posts
brian:
Sounds like you have something corrupting your downloads, or malware that is affecting your server in some way. I've just installed the OS Jamroom here no issues. Note that every install on our hosting uses the open source as the base, so we'd see this VERY fast if there was an issue. Note as well that "skins" in the URL is hard coded as well, so I have no idea how your install is being corrupted but it is.

It would be very unlikely viruses or malware are effecting anything. All of my systems are hardened immediately and I had just provisioned this development environment. Updated and deployed centos and then Wordpress and Jamroom. The Wordpress part is running parallel in same website root and works normal and i placed jamroom is in a sub directory folder called /test/... Only seeing the errors in the Jamroom files. I will set up everything again and try downloading the files all over again. I have a brand new MAC that I am setting up tonight and would really like to start developing this new site soon.

Thanks
updated by @developer-networks: 01/28/19 03:34:42PM
brian
@brian
5 years ago
10,148 posts
You should never see this in your head section:

<script type="text/javascript" src="https://mysite.com/test/sking/jrElastic2/js/jrElastic2.js"></script>
<script type="text/javascript" src="https://mysite.com/test/sking/jrElastic2/js/jrElastic2.jsresponsiveslides.min.js"></script>

I have no idea how you're even seeing that. I've never seen this on any install, so I'm not sure what to recommend. Something is not right though.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags