Page 1 of 1

Relative path problem with 1.11.2

Posted: Wed Oct 03, 2012 7:24 am
by sercotec
i have upgraded from 1.9.4 to 1.11.2 (deleted all files db remained same then upgraded)

first i had some issues with image paths but {metadata} solved that, but now there is another issue with css and js files paths.

Not in main page but in the other pages:

http://www.sercotec.net/hakkimizda/
if you check the code:

script language="javascript" type="text/javascript" src="assets/js/jquery.js"

this path is not reachable unless i make the path "../../assets/js/jquery.js

this is something i can handle but i use "gallery" and it writes its own code and i cant change its css and js file locations.

(i turned off and on hierarchy in config.php nothing changed)

Any ideas ?

Re: Relative path problem with 1.11.2

Posted: Thu Oct 04, 2012 2:50 am
by Dr.CSS
Why aren't you using the uploads/ folder for these 'assets'..?

Re: Relative path problem with 1.11.2

Posted: Fri Oct 05, 2012 9:39 am
by sercotec
its not the case but using assets/images folder for design prevents your images used for design accidentally deleted by user.


the case is even i manage the paths for my code, an addon like "gallery" inserts its own code and the inserted code unfortunately do not point where javascript or css files are...

Re: Relative path problem with 1.11.2

Posted: Fri Oct 05, 2012 8:50 pm
by applejack
Have you tried src="/assets/js/jquery.js"

Re: Relative path problem with 1.11.2

Posted: Sat Oct 06, 2012 9:37 am
by velden
I do believe those script files are not present at all on your server. When I look at my own sites with Gallery installed I can at least open

"http://www.example.com/modules/Gallery/ ... ox.pack.js

In your case that's not possible. I think you should look into that first.

The

Code: Select all

<base href="http://www.sercotec.net/" />
makes those relative urls work.

Furthermore I think the use of {$root_url} before those relative links you control (not Gallery) would make them absolute. Of course a '/' links to the root also however when you develop a CMSMS website in a subdir of root (testing, previewing,...) you get in trouble using the '/'.

Re: Relative path problem with 1.11.2

Posted: Sat Oct 06, 2012 10:56 am
by rooon
Hi,

Not the solution for your problem, but why not try

Code: Select all

<__script__ src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js?ver=1.5.2"></__script>
You can change 1.5.2 in the jQuery version you want :)

A good way to manage your files is images in uploads/images/ and other files in uploads/cms/
You can manage both in the admin panel of cmsms.

Have fun, Rooon

Re: Relative path problem with 1.11.2 [solved for the case]

Posted: Thu Oct 18, 2012 12:39 pm
by sercotec
Thank you for your answers, i think its about the "Gallery" add-on because the path for js files were wrong i had to correct them manually from gallery > fancybox > templates. And the bigger problem is gallery module does not exract folders like fancybox , lightbox or slimbox they stay as .xml files uninstalled, so i have to copy these folders from a previous project.


In my case its solved but i guess Gallery module needs attention for the latest version of cmsms...