I like this aggregator module but couldn't get it to work properly. After some searching, I find that the problem came from the extraction of path information. So i hope the following quick patch helps (line 46)
if (base_path() != "/") {
// to match the modification done in the previous statement
$base_path = substr(base_path(), 1);
// find out the length
$base_length = strlen($base_path);
// take off the base_length
$value = substr($value, $base_length);
// original code
//$value = substr($value, strpos($value, '/')+8);
}
Comments
Comment #1
icecreamyou commentedI confirm the problem but not the solution. I think this has something to do with my site being in a subdomain.
When I enable aggregation and load another page or clear the javascript cache, I get this error:
...but it is, as far as I know. It has the right permissions and everything.
I'm using D5.7, PHP 5.2, MySQL5, and Apache/2.
Comment #2
robloachAn actual patch might help.
Comment #3
icecreamyou commentedFWIW, it's working on a site using the main domain. I no longer have any sites on subdomains so I can't help with this.
Comment #4
robloachYeah, I'm assuming this is fixed... If you're using site specific file directories, there shouldn't be a problem.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
deepbluesolutions commentedThis is still an issue for drupal 5.11, javascript_aggregator 5.15, FCKeditor 5.x-2.2-rc6
I have also just upgraded to 5.15, and fckeditor to 5.x-2.2-rc7, with the latest javascript aggregator 5.15. This is still an issue, has anyone got any thoughts on the fix? I checked out the code suggested in this thread but that doesnt really explain the whys and hows. The effect of this bug is that i cannot enable javascript aggregation with fckeditor, and I want to as it improves my Yslow score from 56 to 68 !
I also tried disabling IMCE integration, but that didnt make any difference.
Comment #7
deepbluesolutions commentedHi All
Im not sure why this problem is occuring, when I do an inspect I can see the fckeditor.js and fckeditor_config.js are being excluded from aggregation, but the other fckeditor files are not, the same issue as the original thread posting. If I enable the aggregator it works well, but disables fckeditor from working. When I disable the aggregator, fckeditor works perfectly. The patch suggested on this thread is unclear, and I really dont like the idea of hacking the code. Has anyone experienced this problem ? I have made sure all code is at the latest 5 base, and I have reproduced on a fresh 5.15 install.
Comment #8
deepbluesolutions commentedComment #9
deepbluesolutions commentedChanged title to something more understandable
Comment #10
icecreamyou commentedFirst of all, this thread is about aggregation not working at all, and it's working now. So if you have another problem, you should open a separate issue.
Second, there's probably another JS file in FCKeditor that's not being excluded. Look in your FCKeditor folder and exclude it from aggregation.
Comment #11
deepbluesolutions commentedOops IceCreamYou, sorry to confuse the thread. have added to another thread.