I received the following error when loading the page...
BetterAWstats Error
There was an error parsing the awstats library file /usr/share/awstats/lib/mime.pm that is used to parse the variable Array. Please switch on debugging in config.php and post the PHP errors displayed to the support forum so the problem can be fixed.
Please let me know if I can assist....
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | bawstats-956286-3.patch | 1.9 KB | egfrith |
| error.txt | 91.86 KB | helmespc |
Comments
Comment #1
XenoPhage commentedI'm receiving this same error. I've tracked this down to a change in the format of the mime.pm file distributed with awstats 7.x... It appears that the transformation from perl to php is failing.
If you replace the 7.x mime.pm with one from a 6.x version, it fixes the problem, but I'm not sure what it breaks in awstats itself.
Comment #2
egfrith commentedI have now looked at this (at last). It is indeed a problem with a change in format to mime.pm. I am working on a fix that will work for both AWStats 6.x and 7.x.
Comment #3
egfrith commentedI think I have now got a fix for this issue. The problem was twofold:
(a) baw_get_library() in engine/data.inc.php was unable to read the square brackets in the the new mime.pm
(b) The meaning of MimeHashLib and MimeHashFamily has changed between AWStats 6.x and 7.x. Also MimeHashIcon has disappeared.
The attached patch addresses both problems. The existing structure names are retained in the PHP code.
Comment #4
egfrith commentedI should add that the code now works for both 6.x and 7.x. If MimeHashIcon is empty, the 7.x code is invoked in library.inc.php.
This fix has now been committed http://drupalcode.org/project/bawstats.git/commit/b4dbfc4