I am getting this error on my status page, and I haven't been able to fix it, no matter what I do. It doesn't give any hints on how I can fix it, and I'm really not sure what I should be looking for. Any assistance is appreciated.

I don't know if it's needed, but the asynchronous debug info is as follows:

stdClass Object (
    [request] => GET /sites/default/files/advagg_css/css_missing7585322451320316874_0.css HTTP/1.0
Host: www.jaypan.com
User-Agent: Drupal (+http://drupal.org/)
Connection: close

    [data] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL was not found on this server.</p><p><a href="/">Home</a></p><!-- advagg_missing_fast404 --></body></html>
    [protocol] => HTTP/1.0
    [status_message] => Not Found
    [headers] => Array (
            [Date] => Thu, 03 Nov 2011 10:41:14 GMT
            [Server] => LiteSpeed
            [Connection] => close
            [X-Powered-By] => PHP/5.2.17
            [Set-Cookie] => SESSafa69c10d7411c4e93715b64c48981fc=0a7abe4de0585b38ec1039cc9a59a5ea; expires=Sat, 26-Nov-2011 14:14:34 GMT; path=/; domain=.jaypan.com
            [Expires] => Sun, 19 Nov 1978 05:00:00 GMT
            [Last-Modified] => Thu, 03 Nov 2011 10:41:14 GMT
            [Cache-Control] => post-check=0, pre-check=0
            [Content-Type] => text/html; charset=utf-8
            [X-AdvAgg] => Failed Validation. Wrong Pattern.
            [Content-Length] => 307
        )
    [error] => Not Found
    [code] => 404
    [timer] => Array (
            [count] => 1
            [time] => 304.17
        )
)
CommentFileSizeAuthor
#19 advagg-1330340-19-fix-https.patch837 bytesmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jaypan’s picture

I should add, this file doesn't exist on my server:

/sites/default/files/advagg_css/css_missing7585322451320316874_0.css

mikeytown2’s picture

Inside of advagg_js_compress.module on line 393 is the function advagg_js_compress_test_file(). There is a watchdog debug there; uncomment it and tell me what it outputs to watchdog after running the status report again.

Jaypan’s picture

This is bizarre. I just re-enabled the module, and it's working fine now. I had previously disabled, uninstalled, and removed all traces of the module from my database, and then re-installed, and kept getting the same error. I disabled it until I got a response from this thread - and now it's working fine.

Thanks for your willingness to help! It all seems to be good now though. Regards.

asb’s picture

I had this message on one of my sites:

AdvAgg JS Compress - Callback
The callback for testing if a JS file is compressible is not working.
As a result if jsmin+ encounters a file that it cannot compress, it will kill that PHP process.

Similar like mentioned in #1, ./admin/settings/advagg/info reported a missing file; I resolved this with a "Master Reset" plus "Clea all caches" (e.g. with drush cc + "All"). Also I installed the C complied version of JSMin, as suggested at ./admin/settings/advagg/js-compress, and I didn't encounter any issues anymore.

I'd suggest to close this issue.

mikeytown2’s picture

Status: Active » Closed (works as designed)
jvieille’s picture

Component: JS Compression » Code
Issue summary: View changes

Same problem, master reset and clear cache did not help
Debug message:

Array
(
    [q] => advagg/js_compress_test_file
    [values] => Array
        (
            [md5] => 3b0338cca1105bf33a7ed2eb99aec7fe
            [filename] => sites/all/modules/advagg/advagg_js_compress/jquery.form.js
        )

    [key] => 668397161
)

Thansk for help

jvieille’s picture

Status: Closed (works as designed) » Active
mikeytown2’s picture

jvieille’s picture

Yes, when I read this thread, I installed Jsmin for php 5.3 (not the one directly accessible through the link, but the 1.1.0 version)
That did not help.

jvieille’s picture

I don't know if it is related, but there is no aggregation anymore.
I did a master reset, but no files are created when pressing "cache rebuild".
files/avagg directories are empty.

mikeytown2’s picture

@jvieille
In this case I'd guess that you have aggregation disabled. If you can provide me the steps needed to reproduce this issue on a new D6 install that is the first step into solving the issue.

jvieille’s picture

I really don't know how this happened.
It use to work for years but failed recently while I was struggling with some performance improvement, touching some memcached settings.
I don't see what else could be involved.

I uninstalled and reinstalled the modules completely, wich did not help ( the settings were kept in the process, so the unistall does not seem to erase everything).

No aggregation occur at all. However, my views can be edited with Advagg enabled, which is not possible when it is not, even with core's aggregation disabled (my other post)
I don't know if the JS Compress - Callback testing problem appeared at the same time.

Where should I look in the code to debug that?

Thanks you very much for taking care of resisting D6 users.

jvieille’s picture

Everything resume to work : the compress call back error has gone, aggregation operates.
Nothing has changed.
I have no clue what was messing up.

mikeytown2’s picture

Status: Active » Closed (cannot reproduce)

Closing out as no good way to reproduce this

jvieille’s picture

Status: Closed (cannot reproduce) » Active

I am hit again by this issue.
I used to solve through master reset and cache clearing.
Now nothing happens.
The function advagg_js_compress_test_file is not called at all, so nothing to debug.
I tried triggering the function using the menu url advagg/js_compress_test_file' and got this
Array#012(#012&nbsp;&nbsp;&nbsp;&nbsp;[q] =&gt; advagg/js_compress_test_file#012)#012

Thanks for help

jvieille’s picture

I found the problem.
the callback is harcoded for http, making this feature not working on https only web sites.

I modified this function as follow

function _advagg_build_url($filepath = '') {
  global $base_path;

  // Server auth.
  $auth = '';
  if (isset($_SERVER['AUTH_TYPE']) && $_SERVER['AUTH_TYPE'] == 'Basic') {
    $auth = $_SERVER['PHP_AUTH_USER'] . ':' . $_SERVER['PHP_AUTH_PW'] . '@';
  }

  // Host.
  $ip = variable_get('advagg_server_addr', FALSE);
  if ($ip == -1) {
    $ip = $_SERVER['HTTP_HOST'];
  }
  elseif (empty($ip)) {
    $ip = empty($_SERVER['SERVER_ADDR']) ? '127.0.0.1' : $_SERVER['SERVER_ADDR'];
  }

  // Port.
  $port = '';
// JV :  uncomment the following  
   if (   isset($_SERVER['SERVER_PORT'])
       && is_numeric($_SERVER['SERVER_PORT'])
       && ($_SERVER['SERVER_PORT'] != 80 || $_SERVER['SERVER_PORT'] != 443)
         ) {
     $port = ':' . $_SERVER['SERVER_PORT'];
   }
// JV : add this
    if($port == ":80"){
        $schema = "http://";    
    }
    if($port == ":443"){
        $schema = "https://";    
    }   
// JV  : change this
//  return 'http://' . $auth . $ip . $port . $base_path . $filepath;
  return $schema . $auth . $ip . $port . $base_path . $filepath;
}

ALso need to change IP Address to send all asynchronous requests to : -1 in order to properly honor https certificates

jvieille’s picture

Status: Active » Fixed
Jaypan’s picture

Status: Fixed » Active

Setting status to active as it needs to be committed to code to be fixed.

mikeytown2’s picture

Status: Active » Needs review
FileSize
837 bytes