Version: 2.3.0.2
Products are not showing on local XAMPP installation due to fault in security check.
Windows path to image is C:\xampp\www\opencart\image/
Solution: Change code in "catalog\model\tool\image.php" and "admin\model\tool\image.php" on line 4 from:
[code]
if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != DIR_IMAGE) {
[/code]
to
[code]
if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != str_replace('\\', '/',DIR_IMAGE)) {
[/code]
Regards
Lasse
Who is online
Users browsing this forum: No registered users and 10 guests