Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Feature Image is not saved at post creation #3

Open
anthonyivol opened this issue Aug 17, 2017 · 5 comments
Open

Post Feature Image is not saved at post creation #3

anthonyivol opened this issue Aug 17, 2017 · 5 comments

Comments

@anthonyivol
Copy link

Hi,
Post Feature Image is not saved at post creation. I have to reopen the post, upload the image, and save it again for this to work. Any idea on why and how to fix it ?

@kamruljpi
Copy link
Collaborator

please check root/modules/xipblog/img/ folder write permission. May be there it has not any write permission. please change permission then try again .

@anthonyivol
Copy link
Author

Thanks for your reply. I tried with 777 on a fresh module install and this didn't fix the issue.
I am working with a PS 1.7 by the way.

@johanmater
Copy link

Same problem here Prestashop 1.7 rezise did not work either, permission 777 not working reinstall database table gone

@anthonyivol
Copy link
Author

So the image name is actually saved but the image is not uploaded and processed.
In classes/xippostsclass.php, line 108, isset($this->post_img) && !empty($this->post_img) is equal to true on post creation.

This change fix the issue

if(isset($this->post_img) && !empty($this->post_img)){
$this->post_img = $this->post_img;
}else{
$this->post_img = xipblog::UploadMedia('post_img');
}

change to :

if(isset($this->post_img) && !empty($this->post_img)){
$this->post_img = xipblog::UploadMedia('post_img');
}

@kamruljpi
Copy link
Collaborator

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants