Okay, so not exactly an ideal situation, but it happens(ed)...
In testing an import file to help someone identify the issue with uploading it for use in EasyPopulate 4, during the delete process of clearing the test product from the database had the following error reported in the logs directory:
path has been modified slightly as leading up to this is not an issue.Code:PHP Warning: preg_replace(): Unknown modifier 't' in /public_html/admin/includes/functions/general.php on line 1453
PHP version is 5.6.10.
In review of the data that had been imported for each product (data only) no images were imported/uploaded, one of the products had an image path of
Note, that there is no extension applied. I do not know that such a situation would/could be considered typical if even possible to work throughout the store, but was not addressed in the code for such a scenario. I do not yet have a recommended solution, perhaps will come to one, but thought I would at least post this here in case it ever comes to be a "normal" condition.silver/turquoise-necklaces-earring-jewelry
The lines in the area of the php file with the last line being 1453.
There were no files to actually delete and the product did get deleted, but the absence of an extension for the image filename generated the error, thought it might help someone in the future and a review of the bug logs from the time of 1.5.4 being issued on did not reveal this error...Code:if ($duplicate_image->fields['total'] < 2 and $product_image->fields['products_image'] != '' && PRODUCTS_IMAGE_NO_IMAGE != substr($product_image->fields['products_image'], strrpos($product_image->fields['products_image'], '/')+1)) { $products_image = $product_image->fields['products_image']; $products_image_extension = substr($products_image, strrpos($products_image, '.')); $products_image_base = preg_replace('/' . $products_image_extension . '/', '', $products_image);


Reply With Quote
