Title: Error task.php line 340
Last modified: September 1, 2016

---

# Error task.php line 340

 *  [fwag](https://wordpress.org/support/users/fwag/)
 * (@fwag)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/)
 * Hello,
 * If the string _$p\_str\_Content_ is less than _$l\_int\_PosStart_
    the following
   error occurs Warning: strpos(): Offset not contained in string in /var/www/vhosts/
   mannenkoorsweikhuizen.nl/httpdocs/dev/wp-content/plugins/footnotes/class/task.
   php on line 340
 * This is easy resolved by inserting before line 340
    _if(strlen($p\_str\_Content)
   <$l\_int\_PosStart){break;}_
 * With kind regards,
 *  Felix Wagemakers
 * [https://wordpress.org/plugins/footnotes/](https://wordpress.org/plugins/footnotes/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/#post-7564479)
 * Thanks for that Felix. Is there an instance under which this occurs (I’m thinking
   of testing the fix)?
 *  [bastitch](https://wordpress.org/support/users/bastitch/)
 * (@bastitch)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/#post-7564664)
 * For me I’m only seeing this appear in the Preview pane under the Footnote settings
   so far: [https://i.imgur.com/EqKpGYH.png](https://i.imgur.com/EqKpGYH.png)
 * Edit: I just tried out Felix’s fix above, and it does appear to make the error
   go away!
 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/#post-7564679)
 * Thanks everyone. I’ll add that to the fix list for the next release!
 *  [martinward](https://wordpress.org/support/users/martinward/)
 * (@martinward)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/#post-8548455)
 * Hello
 * Really useful plugin – thanks
 * I have version 1.6.4. of the plugin (Also WordPress 4.7, PHP version 5.4.45, 
   Twenty Fifteen Child) and am still seeing the same warning i.e. “Warning: strpos():
   Offset not contained in string in /homepages/**/*****/htdocs/UC-HB/wp-content/
   plugins/footnotes/class/task.php on line 340”
 * The warning is appearing on the admin preview page and also occasionally in individual
   posts.
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error task.php line 340’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/footnotes_9d9c99.svg)
 * [footnotes](https://wordpress.org/plugins/footnotes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/footnotes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/footnotes/)
 * [Active Topics](https://wordpress.org/support/plugin/footnotes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/footnotes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/footnotes/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [martinward](https://wordpress.org/support/users/martinward/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-taskphp-line-340/#post-8548455)
 * Status: not resolved