WordPress.org

Support

Support » Plugins and Hacks » MarketPress - WordPress eCommerce » [Resolved] Warning: Illegal string offset 'email'

[Resolved] Warning: Illegal string offset 'email'

Viewing 1 replies (of 1 total)
  • 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 ‘[Resolved] Warning: Illegal string offset 'email'’ is closed to new replies.
Skip to toolbar