Author:
buzzomatic
Version:
1.1.0
Released:
21 November 2011
Category:
Other, and Workflow

New#7: XML Importer issues when importing Select Box Link or Reflection Link within 2.0.8RC2?

Hey Rowan. I posted this in the Symphony Issue Tracker as well. I didn’t know where to put it. I don’t know if this is 2.0.8RC2 issue or a XML Importer compatibility issue with 2.0.8RC2.

I’ve been able to import into Select Box Link and Reference Link fields in the past, but when I upgraded to 2.0.8RC2 the error below happens when I have a Select Box Link or Reference Link Field that I’m importing into. When I remove those field types (Select Box Link and Reference Link), I do not get this error.

Symphony Warning

strip_tags() expects parameter 1 to be string, array given
    /home/user/Sites/localsite/symphony/lib/toolkit/class.lang.php line 194

    189         if($apply_transliteration == true) $string = _t($string);
    190
    191         $max_length = intval($max_length);
    192         
    193         // Strip out any tag
    194         $string = strip_tags($string);
    195         
    196         // Remove punctuation
    197         $string = preg_replace('/[\.'"]+/', NULL, $string);   
    198 

Backtrace

[:0] GenericErrorHandler::handler();
[/home/user/Sites/localsite/symphony/lib/toolkit/class.lang.php:194] strip_tags();
[/home/user/Sites/localsite/extensions/selectbox_link_field/fields/field.selectbox_link.php:439] Lang::createHandle();
[/home/user/Sites/localsite/extensions/xmlimporter/lib/class.xmlimporter.php:271] fieldSelectBox_Link->buildDSRetrivalSQL();
[/home/user/Sites/localsite/extensions/xmlimporter/content/content.importers.php:69] XMLImporter->commit();
[/home/user/Sites/localsite/extensions/xmlimporter/content/content.importers.php:40] contentExtensionXmlImporterImporters->__prepareRun();
[/home/user/Sites/localsite/symphony/lib/core/class.administration.php:88] contentExtensionXmlImporterImporters->build();
[/home/user/Sites/localsite/symphony/lib/core/class.administration.php:204] Administration->__buildPage();
[/home/user/Sites/localsite/index.php:25] Administration->display();

Any thoughts?

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