Error saving aggregated files

thulstrup - June 1, 2009 - 19:59
Project:Javascript Aggregator
Version:6.x-1.2
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

I'm still seeing the error described in http://drupal.org/node/470734 with the 6.x-1.2 release.

When I enable "Optimize and Minify JavaScript files" I get this error:
"The selected file /home/drupal6/docs/sites/mysite.com/tmp/fileuXbZKo could not be uploaded, because the destination filesmin.js is not properly configured."

#1

abraham - June 16, 2009 - 05:55

For me filesmin.js is trying to save at the same directory level as files instead of inside.

The selected file /tmp/fileHlpymH could not be uploaded, because the destination sites/web608.org/filesmin.js is not properly configured.

#2

abraham - June 17, 2009 - 22:21
Status:active» needs review

I fixed this by changing line 88 of javascript_aggregator.module from:

<?php
      $jsmin_file
= $aggregated_file .'min.js';
?>

to:
<?php
   
if (empty($aggregated_file)) {
     
$jsmin_file = '/min.js';
    }
    else {
     
$jsmin_file = $aggregated_file .'min.js';
    }
?>

#4

derjochenmeyer - July 22, 2009 - 20:19
Status:duplicate» closed
 
 

Drupal is a registered trademark of Dries Buytaert.