I am attempting to use the integration module with an existing installation of phplist. I have completed the backend configuration and the "Manage my Subscriptions" link is visible, however I get the following error:

Notice: Uninitialized string offset: 0 in phplist_subscribe_form() (line 1649 of /home/goodnew2/public_html/gospelabc.com/d/sites/all/modules/phplist/phplist.module).
Notice: Uninitialized string offset: 0 in phplist_subscribe_form() (line 1649 of /home/goodnew2/public_html/gospelabc.com/d/sites/all/modules/phplist/phplist.module).

Help appreciated, thanks.

SH

Comments

paulbeaney’s picture

Hi SH,

What page do you get this error on? The "My newsletters" page, the block subscription page, a different page altogether...?

Regards,

- Paul

michèle’s picture

Hi Paul

Many thanks for this module!

I get the same notices as SH.
This message appears on every page with activated phplist-block.
It seems that the variable $phplist_subscribe_block_header is empty (because you have commented out the according code).

If I replace

  $form['subscribe_block_header'] = array(
    '#value' => check_markup($block_body['content'], $block_body['format'], $langcode = '' /* TODO Set this variable. */, FALSE),
  );

with

  $form['subscribe_block_header'] = array(
    '#value' => '',
  );

all seems to work fine.

Regards, Michèle

paulbeaney’s picture

Hi Michèle,

Thanks for the heads-up. I've rolled your fix into D7-DEV with a TODO tag to remind me to work out exactly why that code there was in the first place.

Regards,

- Paul

paulbeaney’s picture

Status: Active » Needs work
sharper1968’s picture

Hi everyone,

I have just updated to the latest version, which seems to include the fix given above.

Unfortunately I'm getting a new, similar error, as follows:

Notice: Uninitialized string offset: 0 in phplist_subscribe_form() (line 1636 of /home/goodnew2/public_html/gospelabc.com/d/sites/all/modules/phplist/phplist.module).
Notice: Uninitialized string offset: 0 in phplist_subscribe_form() (line 1636 of /home/goodnew2/public_html/gospelabc.com/d/sites/all/modules/phplist/phplist.module).

Any help on offer?

Many thanks,

SH

  • manyk committed a40347f on 7.x-1.x
    Issue #1135900 by sharper1968,Michelle,max6166: Fixed old code left from...
  • manyk committed d5ce720 on 7.x-1.x
    Issue #1135900 by sharper1968,Michelle,max6166: Fixed old code left from...
manyk’s picture

Issue summary: View changes
Status: Needs work » Closed (fixed)