Post by jiffman » Mon Oct 14, 2019 6:13 pm

Hi,

After moving from a different host the pictures are not visible both the websites are opencart. I have checked the config files in root and admin all are pointing towards the right path.
also when i checked to see if i can upload it says directory does not exist

the sites https://www.buildersmart.lk/
https://bangorbang.com/index.php?route= ... ath=59_105

please advice

Newbie

Posts

Joined
Mon Oct 14, 2019 2:28 pm

Post by letxobnav » Mon Oct 14, 2019 7:26 pm

still think your image paths are wrong as you have several src="" in your html.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by jiffman » Tue Oct 15, 2019 2:35 am

my image paths on config files are correct i checked mutliple forums on opencart some have found the problem some hasn't. I did check my root config file and admin config file this is a common problem for OC when moving from one server to another. i'm getting this message Warning: Directory does not exist!

Newbie

Posts

Joined
Mon Oct 14, 2019 2:28 pm

Post by by mona » Tue Oct 15, 2019 5:52 am

i checked mutliple forums on opencart some have found the problem some hasn't.

I think you mean that some people say thank you and want to help others and some people doesn’t



this is a common problem for OC when moving from one server to another
If you are absolutely sure that both config files are correct (the common problem).
Another common problem is that people are not aware of a propagation period, which has nothing to do with opencart either.



Since you are using Journal - another problem might well be caching - so you can contact them about that ..

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Tue Oct 15, 2019 5:04 pm

Wrong paths in the config.phps wouldn't cause this:
Image

Perhaps your database didn't transfer across correctly?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Tue Oct 15, 2019 6:22 pm

paulfeakins wrote:
Tue Oct 15, 2019 5:04 pm
Wrong paths in the config.phps wouldn't cause this:
O0 COOL!

Screenshots are great - On Chrome it will come up was unknown !
Safari comes up as empty .. so it doesnt help ..
Thank you for that great discovery :)

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Tue Oct 15, 2019 6:25 pm

by mona wrote:
Tue Oct 15, 2019 6:22 pm
Thank you for that great discovery :)
Just call me Columbo ;)

But now you have to find out why they are all blank.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Tue Oct 15, 2019 6:43 pm

Well I suspect that the OP rushed here after 2mins of being told the site has been transferred - panicking and the site has not had enough time to update - so just waiting for that to all filter through ..

so we will have to ask Sherlock to come and help a little later ..
Last edited by by mona on Tue Oct 15, 2019 6:48 pm, edited 1 time in total.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Tue Oct 15, 2019 6:47 pm

by mona wrote:
Tue Oct 15, 2019 6:43 pm
Well I suspect that the OP rushed here after 2mins of being told the site has been transferred - panicking and the site has not had enough time to update - so just waiting for that to all filter through ..
That makes no sense, images should have paths immediately. There is nothing to update. There should be no waiting.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by by mona » Tue Oct 15, 2019 6:52 pm

Yes they have paths .. but propagation means they might be pointing to the old location ..
add Journal which might have cached empty .. so my experience is this is exactly what happens .. but as I just edited .. Sherlock may be required ..

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Tue Oct 15, 2019 7:00 pm

by mona wrote:
Tue Oct 15, 2019 6:52 pm
Yes they have paths .. but propagation means they might be pointing to the old location ..
Empty paths is nothing to do with propagation.

by mona wrote:
Tue Oct 15, 2019 6:52 pm
add Journal which might have cached empty ..
Then don't sit there waiting with a live site broken - clear the Journal cache!

by mona wrote:
Tue Oct 15, 2019 6:52 pm
Sherlock may be required ..
Indeed they may need a developer to investigate from Commercial Support.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by letxobnav » Wed Oct 16, 2019 9:28 am

the only reason a src="" will happen is when this fires:

Code: Select all

class ModelToolImage extends Model {
	public function resize($filename, $width, $height) {
		if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != str_replace('\\', '/', DIR_IMAGE)) {
			return;
		}
in other words, your original image cannot be found.
You can check by temporarlily changing it to:

Code: Select all

class ModelToolImage extends Model {
	public function resize($filename, $width, $height) {
$this->log->write(DIR_IMAGE . $filename);
		if (!is_file(DIR_IMAGE . $filename) || substr(str_replace('\\', '/', realpath(DIR_IMAGE . $filename)), 0, strlen(DIR_IMAGE)) != str_replace('\\', '/', DIR_IMAGE)) {
			return;
		}
and check in your oc error log what location it is looking for.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 8 guests