title: addImage function and Src
body: <p>I am creating a wordpress website that I would like to have the option of creating a MS Word file from each post with its metadata, but when I want to add a photo for specific post in the Word file, it gets this error:</p>
  
  <blockquote>
    <p>PHPWord/Section/Header.php on line 132</p>
  </blockquote>
  
  <p>but I do not have this problem when the files of PHPWord are not used for Wordpress, I think the problem is addressing the path of each post's photo that I am using the following line to do that:</p>
  
  <pre><code>$photo_generale_address = get_template_directory_uri() . "/files/$post_year/$post_month/$post_day/$post-&gt;post_name/Photo Générale.jpg";
  </code></pre>
  
  <p>Any recommendation? why it is happenning and how could I fix it?</p>