Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm recently seeing this error on a client's website:
Notice: Undefined property: stdClass::$data in advagg_install_check_via_http() (line 1523 of /home/mywebsite/public_html/sites/all/modules/advagg/advagg.install).
I'm also seeing the following notice in the Status report:
Adv CSS/JS Agg - HTTP Request HTTP requests to advagg for js files are not getting through. The .htaccess needs to be rebuilt.
Rebuilding the .htaccess has no effect. Any suggestions?
Thanks!
Comment | File | Size | Author |
---|---|---|---|
#7 | advagg-htaccess-errordoc-3144524-7.patch | 1.69 KB | mikeytown2 |
|
Comments
Comment #2
numerabilis CreditAttribution: numerabilis commentedI have the same problem, please help us!
Comment #3
Rafal LukawieckiSee patch #4 for #3190602: Undefined property: stdClass::$error which may fix this issue. Make sure to use the current dev branch when applying it.
Comment #4
Rafal LukawieckiPS. Regarding @bisonbleu comment about "rebuilding .htaccess" not working, I can concur this is a separate issue. The check in
advagg.install
is looking for presence ofErrorDocument 404 /index.php
preceded by a newline (e.g. an empty line followed by that line) in the advagg .htaccess. The rebuild option in advagg operations fails to write that line. If you add it manually, you should get a different status error or warning, most likely related to loopback issues.Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedSo the advagg_htaccess_check_generate() function needs to have this?
Comment #6
Rafal LukawieckiNice to see you back on the project, @mikeytown2. As for your suggestion, it makes sense. I won't be able to test it for a few weeks though, but happy to do that when I can. My work on our Drupal sites comes and goes in bouts of time.
Comment #7
mikeytown2 CreditAttribution: mikeytown2 commentedLooking at
and making sure there's a new line and space should take care of the regex matching.
Comment #9
mikeytown2 CreditAttribution: mikeytown2 commented