Uploaded Image doesn't show as base image in frontend and thumbnail at backend (Magento 2.2.3)
-
07-01-2021 - |
题
Suddenly I'm having an issue regarding uploaded images. They are on the backend (Images And Videos ) but does not show as a base in frontend and thumbnail at the backend. After uploading an image also, the "upload" option goes missing and I just see a loading gif beside the uploaded image. I've attached images. Do you guys know why it's happening? Could be server issues?
UPDATE: I noticed i got this error "A technical problem with the server created an error. Try again to continue what you were doing. If the problem persists, try again later." after saving
解决方案 2
Have to adjust the attributes in default, as somewhat it has been changed suddenly. Which I don't know how it happened. Added the attributes to Image and then the roles appeared again.
其他提示
in image.php file
public function getPath()
{
return $this->getRelativePath($this->context->getPath());
}
just replace this by this
public function getpath()
{
$result = $this->context->getPath();
$result = $this->join($result, $this->getModule());
$result = $this->join($result, $this->getMiscPath());
return $this->join($result, $this->getFilePath());
}