Author:
Alistair
Version:
1.0.1
Released:
15 February 2009

New#1: Submitting the register form results in Symphony Warning

Navigating to the register page, filling out the form details and clicking on the submit button results in the following error:

strlen() expects parameter 1 to be string, array given
/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/class.general.php line 590

585     Return: rebuilt array
586     
587     ***/
588     public static function array_to_xml(XMLElement $parent, array $data, $validate=false) {
589         foreach ($data as $element_name => $value) {
590             if (strlen($value) == 0) continue;
591             
592             if (is_int($element_name)) {
593                 $child = new XMLElement('item');
594                 $child->setAttribute('index', $element_name + 1);

Since this is a problem with a core Symphony file, it will need to be addressed in the main Symphony issue tracker.

Thanks, Alistair. I’ve added issue #231 to the Symphony issue tracker.

I just tried updating the Frontend Members Reference ensemble to 2.0.8RC1 and the update went fine. However, when I try to register a new member on the register page, I get the following error:

in_array() expects parameter 2 to be array, null given
/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/events/event.section.php line 279

274 }
275
276 $entry_id = $position = $fields = NULL; 
277 $post = General::getPostData();
278 
279 if (in_array('expect-multiple', $this->eParamFILTERS)) {
280     if (is_array($post['fields']) && isset($post['fields'][0])) {
281         foreach ($post['fields'] as $position => $fields) {
282             if (isset($post['id'][$position]) && is_numeric($post['id'][$position])) {
283                 $entry_id = $post['id'][$position];

This error seems to be specific to the register event for the Frontend Members Reference Ensemble, according to the backtrace output:

[:0] GenericErrorHandler::handler();
[/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/events/event.section.php:279] in_array();
[/Users/stephen/Sites/sym/members-ensemble/extensions/members/events/event.members_register.php:104] include();
[/Users/stephen/Sites/sym/members-ensemble/extensions/members/events/event.members_register.php:87] eventmembers_Register->__trigger();
[/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/class.frontendpage.php:549] eventmembers_Register->load();
[/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/class.frontendpage.php:233] FrontendPage->processEvents();
[/Users/stephen/Sites/sym/members-ensemble/symphony/lib/toolkit/class.frontendpage.php:63] FrontendPage->__buildPage();
[/Users/stephen/Sites/sym/members-ensemble/symphony/lib/core/class.frontend.php:50] FrontendPage->generate();
[/Users/stephen/Sites/sym/members-ensemble/index.php:20] Frontend->display();

If I should post this issue elsewhere, let me know.

Please login to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details