Post by ADD Creative » Sat Nov 04, 2023 1:40 am

There are a few in the file manager such as the following. You could comment them out and refresh modifications to test if it's the problem.

https://github.com/opencart/opencart/bl ... #L209-L211

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by ADD Creative » Sat Nov 04, 2023 1:42 am

And in catalog/model/tool/image.php.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by crosland » Sat Nov 04, 2023 2:04 am

ADD Creative wrote:
Sat Nov 04, 2023 1:42 am
And in catalog/model/tool/image.php.
Yeah, I just found that one. I searched for 'realpath' and got 88 hits. There are a few that looks similar, I chose this one as it was in a file called image.php, and...

...it works! The main site now shows images.

I will now look at the file manager, as you suggest.

Thank you for your help.

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm

Post by crosland » Sat Nov 04, 2023 4:35 am

No reply from Easyspace customer support yet, but this little script, with the path to my site specified by easyspace

Code: Select all

<?php
$path = "/vhost/vhost14/s/p/r/";
echo($path);
echo "<br>";
echo(realpath($path));
?>
Returns
/vhost/vhost14/s/p/r/
/vhost/s/p/r

What does that actually mean? vhost14 is a symlink?

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm

Post by ADD Creative » Sat Nov 04, 2023 4:59 am

Yes, looks like it. Realpath should expand all symbolic links.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by crosland » Mon Nov 06, 2023 7:55 pm

I'm not sure Easyspace tech really understand the issue. The solution I settled on was to change the config paths to match the realpath() output, rather than identify and edit the OC source (and probably make a mistake).

The image manager is now working.

Active Member

Posts

Joined
Fri Sep 13, 2019 9:04 pm
Who is online

Users browsing this forum: No registered users and 6 guests