Joomla tags

a real free joomla tag system

  • Increase font size
  • Default font size
  • Decrease font size
 Joomla Tags Support Forum :: CssJsCompress
Welcome Guest   
Please read this before ask for help, thanks!   by joomlatags on 2009-02-22 03:49:59
 Subject :error with suggestion to fix: DOCUMENT_ROOT and JPATH_ROOT is not the .. 2011-02-19 06:52:25 
colorando
Apprentice
Joined: 2011-02-19 13:38:03
Posts: 1
Location
Subject :error with suggestion to fix: DOCUMENT_ROOT and JPATH_ROOT is not the same!

<p>Hi, I've found a bug in CssJsCompress.php in (I think) latest version 3.5 at line 259. The Bug is, that the Image-Paths in the joined Css-File are not correct.</p>
<p>Much Webhoster use symbolic links to increase safety. So it sometimes happens, that</p>
<p>$_SERVER (your extension uses this at line 259) and</p> <p>dirname(__FILE__) (Joomla gets the JPATH_ROOT this way) are not the same.</p> <p>So change line 259 from</p> <p>$link=$_SERVER['DOCUMENT_ROOT'].DS.$link;

<p>to</p> <p>$link=JPATH_ROOT.DS.$link;</p> <p>and everything works fine!</p> <p>Thank you for this great extension. Do you consider to make a version for Joomla 1.6?</p>
IP Logged
Page # 


Powered by ccBoard


Newsletter

Please subscribe to our newsletter to stay up-to-date with the latest news and release notifications delivered to your inbox.
Tags for Joomla



Joomla Plugin:ReadMoreExt