Title: Warning: Illegal string offset &#039;email&#039;
Last modified: August 20, 2016

---

# Warning: Illegal string offset 'email'

 *  Resolved [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-email/)
 * Hey there,
 * In backend as an admin user I created a new user.
    I have an issue after editing
   a new user in wordpress backend, Users > Edit user;
 * It throws warnings:
 *     ```
       Warning: Illegal string offset 'email' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3376
   
       Warning: Illegal string offset 'name' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3377
   
       Warning: Illegal string offset 'address1' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3378
   
       Warning: Illegal string offset 'address2' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3379
   
       Warning: Illegal string offset 'city' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3380
   
       Warning: Illegal string offset 'state' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3381
   
       Warning: Illegal string offset 'zip' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3382
   
       Warning: Illegal string offset 'country' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3383
   
       Warning: Illegal string offset 'phone' in C:\xampp\htdocs\marmozel\wp-content\plugins\wordpress-ecommerce\marketpress.php on line 3386
       ```
   
 * Any ideas solving it?
 * WordPress version 3.4.2 (Multisite)
    MarketPress 2.5.1
 * [http://wordpress.org/extend/plugins/wordpress-ecommerce/](http://wordpress.org/extend/plugins/wordpress-ecommerce/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [waila7](https://wordpress.org/support/users/waila7/)
 * (@waila7)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-email/#post-3168709)
 * After creating a new user it seems variable’s $mail value doesn’t exist;
 * Code in marketpress.php:
    `$email = (!empty($_SESSION['mp_billing_info']['email']))?
   $_SESSION['mp_billing_info']['email'] : $meta['email'];`
 * So there is a need to assign it. I rewrite above line as this:
 *     ```
       if (!empty($_SESSION['mp_billing_info']['email'])) {
               $email = $_SESSION['mp_billing_info']['email'];
           } else {
               if (!empty($meta['email'])) {
                   $email = $meta['email'];
               } else {
                   $email = '';
               }
           }
       ```
   
 * we need to take care for $name, $address1, $address2, $city, $state, $zip, $country
   as well.

Viewing 1 replies (of 1 total)

The topic ‘Warning: Illegal string offset 'email'’ is closed to new replies.

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

## Tags

 * [add new user](https://wordpress.org/support/topic-tag/add-new-user/)
 * [Edit User](https://wordpress.org/support/topic-tag/edit-user/)

 * 1 reply
 * 1 participant
 * Last reply from: [waila7](https://wordpress.org/support/users/waila7/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/warning-illegal-string-offset-email/#post-3168709)
 * Status: resolved