title: Offset not contained in string & Allowed memory size exhausted
body: <p>I am getting an error when i am trying to pass the following code using wordpress's function.php. The error i am getting is </p>
  
  <p>mod_fcgid: stderr: PHP Warning:  mb_strpos(): Offset not contained in string in /var/www/clients/client62/web322/web/wp-content/themes/ateo/functions.php on line 1063</p>
  
  <p>Now for the code:</p>
  
  <pre><code>1059    &lt;?php
  1060             $img_id = getIdByGuid($images[0]);
  1061             $img1_url = wp_get_attachment_image_src($img_id, 'big_picture');
  1062             ?&gt;
  1063             &lt;img src="&lt;?php echo $img1_url[0]; ?&gt;" id="big_picture" alt="&lt;?php echo get_post_meta( $img_id, '_wp_attachment_image_alt', true ) ?&gt;" /&gt;
  </code></pre>
  
  <p>I want to make the error go away, but no luck searching google.</p>
  
  <p>I also get the following error, but i am not sure if they are connected in some way:</p>
  
  <p>mod_fcgid: stderr: PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/clients/client62/web322/web/wp-includes/meta.php on line 808, referer: <a href="http://ateo.dk/wp-admin/post.php?post=5854&amp;action=edit" rel="nofollow">http://ateo.dk/wp-admin/post.php?post=5854&amp;action=edit</a></p>
  
  <p>The meta.php have not been changed at any time. Also, i found out that the memorylimit from our hostingprovider is 128mb, and they say this is very high. However i have seen other places that this may go as high as 512mb. </p>