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 ?
Relative path problem with 1.11.2
Re: Relative path problem with 1.11.2
Why aren't you using the uploads/ folder for these 'assets'..?
Re: Relative path problem with 1.11.2
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...
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
Have you tried src="/assets/js/jquery.js"
Re: Relative path problem with 1.11.2
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 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 '/'.
"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/" />
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 '/'.
Last edited by Dr.CSS on Thu Oct 18, 2012 6:27 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
Reason: Please use double quotes on fake links so they aren't clickable...
Re: Relative path problem with 1.11.2
Hi,
Not the solution for your problem, but why not try
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
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>

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]
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...
In my case its solved but i guess Gallery module needs attention for the latest version of cmsms...