Uploaded Image doesn't show as base image in frontend and thumbnail at backend (Magento 2.2.3)

magento.stackexchange https://magento.stackexchange.com/questions/222129

سؤال

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?

Backend

Backend

Backend

Frontend

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());

}

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top