AaronVanGeffen / AwstatsParser

PHP script for parsing and merging awstats data files
BSD 2-Clause "Simplified" License
11 stars 6 forks source link

require path not correct when downloaded as master.zip #4

Open foovax opened 6 years ago

foovax commented 6 years ago

Warning: require(/home/private/AwstatsParser-master/src/AaronVanGeffen/AwstatsParser/AwstatsMerger.php): failed to open stream: No such file or directory in /home/private/AwstatsParser-master/awmerge.php on line 21

I'm unsure if this is related to the way I've obtained the files but there is no src/AaronVanGeffen/AwstatsParser/ folder when downloading as a zip file.

By changing line 22:

require dirname(FILE) . '/AwstatsParser/' . $className . '.php';

The script worked as expected.

AaronVanGeffen commented 6 years ago

Thanks for your report. I'm glad to hear you managed to get it working, though!

I can confirm this is indeed a mistake in the script, probably an oversight in the process of refactoring the repository. Will look into addressing it soon.