Title: Warning: Uninitialized string offset 0 in
Last modified: February 24, 2022

---

# Warning: Uninitialized string offset 0 in

 *  Resolved [Charles Smith](https://wordpress.org/support/users/bradlux/)
 * (@bradlux)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/warning-uninitialized-string-offset-0-in/)
 * Hello,
 * I use OG — Better Share on Social Media plugin. It’s a good plugin. Today I updated
   the latest version 3.1.1 and apper in the front page the following sentences:
 * “Warning: Uninitialized string offset 0 in /home/worldabc/www/www/wp-content/
   plugins/og/includes/iworks/class-iworks-opengraph.php on line 824”
 * The php on line 824: $og = $this->set_twitter_image( $og, $og[‘og’][‘image’][
   0] );
 *     ```
       * Twitter image
       			 *
       			 * @since 2.9.3
       			 */
       			if ( ! isset( $og['twitter']['image'] ) ) {
       				$og = $this->set_twitter_image( $og, $og['og']['image'][0] );
       			}
       			/**
       			 * Schema.org
       			 *
       			 * @since 2.9.3
       			 */
       			if ( apply_filters( 'og_is_schema_org_enabled', $this->is_schema_org_enabled ) ) {
       				if ( ! isset( $og['schema']['image'] ) ) {
       					$og['schema']['image'] = $tmp_src;
       ```
   
 * Where can I find version 3.0.2 because it works good?
    -  This topic was modified 4 years, 3 months ago by [Charles Smith](https://wordpress.org/support/users/bradlux/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-uninitialized-string-offset-0-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/warning-uninitialized-string-offset-0-in/#post-15402901)
 * hi [@bradlux](https://wordpress.org/support/users/bradlux/)
 * Thank you for catching this one.
    It should be fixed with 3.1.2 – could you check
   and give me a feedback? Thank you in advance!
 * > Where can I find version 3.0.2 because it works good?
 * All version are available on [https://wordpress.org/plugins/og/advanced/](https://wordpress.org/plugins/og/advanced/)
   in “PREVIOUS VERSIONS” section.
 * Marcin
 *  Thread Starter [Charles Smith](https://wordpress.org/support/users/bradlux/)
 * (@bradlux)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/warning-uninitialized-string-offset-0-in/#post-15403980)
 * Hello Marcin,
 * Today I updated the latest version 3.1.2. The plugin works good.
 * Thank you very much!
 * B.R.
    Charles
 *  Plugin Author [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * (@iworks)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/warning-uninitialized-string-offset-0-in/#post-15404000)
 * 👍

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

The topic ‘Warning: Uninitialized string offset 0 in’ is closed to new replies.

 * ![](https://ps.w.org/og/assets/icon.svg?rev=3296789)
 * [OG — Better Share on Social Media](https://wordpress.org/plugins/og/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/og/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/og/)
 * [Active Topics](https://wordpress.org/support/plugin/og/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/og/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/og/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marcin Pietrzak](https://wordpress.org/support/users/iworks/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/warning-uninitialized-string-offset-0-in/#post-15404000)
 * Status: resolved