This is not a critical bug because everything appears to be working fine, but my logs are filling up with this PHP error and I'd love to see if I can get rid of it somehow.
The error in the logs reads:
Warning: array_merge_recursive() [function.array-merge-recursive]: recursion detected in advagg_process_js() (line 2346 of [...]/sites/all/modules/contrib/advagg/advagg.module).
I've been able to determine that:
- It only happens on page not found requests (at least on my site)
- I can reproduce the error on production and staging, but not my local dev environment
- Production and staging are running PHP 5.2.4
- My local dev environment is running PHP 5.3.3
Here's the output of ?advagg-debug=1 (as reported to the syslog module):
Debug info: Array
Could this be something simple like a configuration error? Or a module/preprocess function gone awry? Note that all three environments are running the same codebase, with the only difference being the PHP version.
Any help you can offer would be greatly appreciated. Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | advagg-1706568-1-fix-recursion.patch | 638 bytes | mikeytown2 |
Comments
Comment #1
mikeytown2 commenteduse of array_merge_recursive comes from core's drupal_get_js()
one thing I could try is seeing if a deep copy fixes the issue http://stackoverflow.com/questions/2162976/php-warning-array-merge-recur...
Comment #2
mikeytown2 commentedClosing this issue as works as designed.