I am receiving the following error when saving a product in osCommerce. The script has been modified to index the product in a Lucene index. This error only occurs intermittently, ie. I can resave the product and it gets indexed correctly, while at other times it throws the error:
Catchable fatal error: Argument 1 passed to Zend_Search_Lucene_Index_Writer::__construct()
must be an instance of Zend_Search_Lucene_Storage_Directory, null given, called in
/var/www/vhosts/mtr/public_html/mastervault/Zend/Search/Lucene.php on line 645
and defined in
/var/www/vhosts/mtr/public_html/mastervault/Zend/Search/Lucene/Index/Writer.php on line 223
Any ideas as to how this could throw such an error intermittently, running the same script posting exactly the same data? I can try to save my data once and it will throw the error, then save again and it indexes the product correctly without error.