Support » Plugin: Email Subscribers & Newsletters » Plugin conflict

  • Resolved kumaresan

    (@kumaresanwp)


    Hello,

    We are trying to make a user to choose their role while registration using the article here.

    The above code was added the select field in registration form, but when i try to register it’s through warning message as bellow.

    Warning: Illegal string offset ‘es_registered’ in /home2/zelo441/yorastore.com/wp-content/plugins/email-subscribers/classes/es-register.php on line 1028

    Warning: Cannot modify header information – headers already sent by (output started at /home2/zelo441/yorastore.com/wp-content/plugins/email-subscribers/classes/es-register.php:1028) in /home2/zelo441/yorastore.com/wp-includes/pluggable.php on line 920

    Warning: Cannot modify header information – headers already sent by (output started at /home2/zelo441/yorastore.com/wp-content/plugins/email-subscribers/classes/es-register.php:1028) in /home2/zelo441/yorastore.com/wp-includes/pluggable.php on line 921

    Warning: Cannot modify header information – headers already sent by (output started at /home2/zelo441/yorastore.com/wp-content/plugins/email-subscribers/classes/es-register.php:1028) in /home2/zelo441/yorastore.com/wp-includes/pluggable.php on line 922

    Warning: Cannot modify header information – headers already sent by (output started at /home2/zelo441/yorastore.com/wp-content/plugins/email-subscribers/classes/es-register.php:1028) in /home2/zelo441/yorastore.com/wp-includes/pluggable.php on line 1216

    Please take a look at that and let know about this ASAP.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Icegram

    (@icegram)

    Welcome. Let us know in case of any further queries.

    Sure, Thank you

    @icegram – Looks like this issue still exists:

    [Tue Oct 16 17:03:11.489048 2018] [proxy_fcgi:error] [pid 17725] [client 127.0.0.1:42266] AH01071: Got error 'PHP message: PHP Warning: Illegal string offset 'es_registered' in (my site)/public_html/wp-content/plugins/email-subscribers/classes/es-register.php on line 1188\n', referer: (my site)

    The function in question is function es_sync_registereduser and the problematic line is:

    if ( ( $es_sync_unserialized_data['es_registered'] == "YES" ) && ( $user_id != "" ) )

    A quick fix would be:

    if ( (isset($es_sync_unserialized_data['es_registered']) && $es_sync_unserialized_data['es_registered'] == "YES" ) && ( $user_id != "" ) )

    But you may also want to look into why it wasn’t set to begin with.

    • This reply was modified 1 year, 1 month ago by pikamander2.
Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Plugin conflict’ is closed to new replies.