Post by nxt » Sun Jun 04, 2017 3:43 am

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

nxt
Newbie

Posts

Joined
Fri Jun 02, 2017 1:48 pm
Who is online

Users browsing this forum: No registered users and 10 guests