Thread:Extension talk:Semantic MediaWiki/PHP Fatal error: Class 'SiteConfiguration' not found in updateArticleCount.php on line 59

When running the following command:

php -e -f updateArticleCount.php

I get the error message above:

PHP Fatal error: Class 'SiteConfiguration' not found in updateArticleCount.php on line 59

The line in question is the line stating:

require_once( RUN_MAINTENANCE_IF_MAIN );

Could anyone point out how I could fix this, or ensure the script runs properly?

Thanks!

Peter