Title: [Error] &#8220;Offset not contained in string&#8221;
Last modified: April 22, 2017

---

# [Error] “Offset not contained in string”

 *  [Jan de W.](https://wordpress.org/support/users/jan80/)
 * (@jan80)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-offset-not-contained-in-string/)
 * Hi all,
 * This is asked before, but the topic is closed for comments. So: new topic. 🙂
   
   Anyone knows how to solve this?
 * —
    Warning: strpos(): Offset not contained in string in /home/–/public_html/wp-
   content/plugins/google-calendar-woocommerce-bookings-two-way-sync/ninja-google-
   calendar-woocommerce-bookings-two-way-sync.php on line 447
 * Warning: strpos(): Offset not contained in string in /home/–/public_html/wp-content/
   plugins/google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-
   woocommerce-bookings-two-way-sync.php on line 448
 * Warning: strpos(): Offset not contained in string in /home/–/public_html/wp-content/
   plugins/google-calendar-woocommerce-bookings-two-way-sync/ninja-google-calendar-
   woocommerce-bookings-two-way-sync.php on line 447
    —
 * It appears in lines 447 to 448 and after a succesful authorization with Google
   Calendar.
 * Thanks for the help.
 * Jan80

Viewing 1 replies (of 1 total)

 *  Thread Starter [Jan de W.](https://wordpress.org/support/users/jan80/)
 * (@jan80)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/error-offset-not-contained-in-string/#post-9056944)
 * Update:
 * More specific, what is wrong with this string? These are lines 447 and 448:
    —
   $new_date = substr($time, 0, strpos($time, ‘T’,1)); $new_hour = substr($time,
   strpos($time, ‘T’,1) + 1, 8); —
 * The error appears after authorization and hitting the import function.
 * [@customwpninjas](https://wordpress.org/support/users/customwpninjas/) [@webtinkering](https://wordpress.org/support/users/webtinkering/)
    -  This reply was modified 9 years, 1 month ago by [Jan de W.](https://wordpress.org/support/users/jan80/).
    -  This reply was modified 9 years, 1 month ago by [Jan de W.](https://wordpress.org/support/users/jan80/).

Viewing 1 replies (of 1 total)

The topic ‘[Error] “Offset not contained in string”’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-calendar-woocommerce-bookings-
   two-way-sync_413d41.svg)
 * [Google Calendar WooCommerce Bookings Two Way Sync](https://wordpress.org/plugins/google-calendar-woocommerce-bookings-two-way-sync/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-calendar-woocommerce-bookings-two-way-sync/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-calendar-woocommerce-bookings-two-way-sync/)
 * [Active Topics](https://wordpress.org/support/plugin/google-calendar-woocommerce-bookings-two-way-sync/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-calendar-woocommerce-bookings-two-way-sync/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-calendar-woocommerce-bookings-two-way-sync/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jan de W.](https://wordpress.org/support/users/jan80/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/error-offset-not-contained-in-string/#post-9056944)
 * Status: not resolved