Last modified: 2012-02-12 11:58:53 UTC
# php SMW_conceptCache.php --delete PHP Warning: require_once(/.../maintenance/counter.php): failed to open stream: No such file or directory in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34 PHP Fatal error: require_once(): Failed opening required '/.../maintenance/counter.php' (include_path='.:/pear/lib:/var/www/pear/lib') in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34
Markus fixed some issues with concepts in 1.6 or 1.6.1, so this might already be solved.
Fair enough. I just tested with v1.6.1 but the problem is still appearing.
Looks like this file is no longer present in recent versions of MediaWiki. I don't know what it was used for though.
I just tested this with SMW-r108966 and MW-1.18.1 and discovered that the issue is still there: # php SMW_conceptCache.php --delete PHP Warning: require_once(/.../maintenance/counter.php): failed to open stream: No such file or directory in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34 Warning: require_once(/.../maintenance/counter.php): failed to open stream: No such file or directory in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34 PHP Fatal error: require_once(): Failed opening required '/.../maintenance/counter.php' (include_path='.:/pear/lib:/var/www/pear/lib') in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34 Fatal error: require_once(): Failed opening required '/.../maintenance/counter.php' (include_path='.:/pear/lib:/var/www/pear/lib') in /.../extensions/SemanticMediaWiki/maintenance/SMW_conceptCache.php on line 34
I hope I fixed this in r111253. Including counter.php is no longer necessary, so I just removed the offending line. The problem you got seems to be related to the recent problem reports of other users about files that could not be found by maintenance scripts (esp. Bug33400), but here it was easier to solve.
Thank you for this information an your fix which now allows you to delete caches, however only in bulk. I will open another bug for this.