vaakash / git-it-write

A WordPress plugin to publish markdown files present in a Github repository as posts to WordPress automatically.
https://www.aakashweb.com/wordpress-plugins/git-it-write/
GNU General Public License v3.0
48 stars 22 forks source link

Error when pushing md file with image #9

Closed FedericaLionetto closed 1 year ago

FedericaLionetto commented 2 years ago

Hi,

I am trying to push to Wordpress a md file that contains text and one image but I get the error reported in the log below. Both the md file and the image are located on the main branch, the md file in a folder called "post/en/travels/" and the image in a folder called "_images/". Wordpress is configured to pull from the folder "post" only and to publish according to the format "post". In the md file, I tried to reference the image by using the relative path or the absolute path, but none of the two worked.

Any hints what could be the reason and how to fix it?

Thank you very much for your help.

log.txt

guillermomf2001 commented 2 years ago

Try to move the _images folder to the root folder of your repository and then link them using the path /_images/image.jpg

mnott commented 2 years ago

As I found out and described here, I had to require_once media.php, file.php and image.php, to publisher.php.