6 users online. Create an account or sign in to join them.Users

Search

I get this error when going to one of my pages (not others though)

trim() expects parameter 1 to be string, array given
/home/pat/public_html/symphony/lib/toolkit/fields/field.textarea.php line 163

158
159         return $result;     
160     }
161     
162     private function __replaceAmpersands($value) {
163         return preg_replace('/&(?!(#[0-9]+|#x[0-9a-f]+|amp|lt|gt);)/i', '&', trim($value));
164     }
165     
166     public function appendFormattedElement(&$wrapper, $data, $encode = false, $mode = null) {
167         

If i try to go into the back end I get this error too. only on the section where i get the error above though.

strip_tags() expects parameter 1 to be string, array given
/home/pat/public_html/symphony/lib/toolkit/class.field.php line 317

312     
313     public function prepareTableValue($data, XMLElement $link=NULL) {
314         $max_length = Symphony::Configuration()->get('cell_truncation_length', 'symphony');
315         $max_length = ($max_length ? $max_length : 75);
316         
317         $value = strip_tags($data['value']);
318         $value = (strlen($value) <= $max_length ? $value : substr($value, 0, $max_length) . '...');
319         
320         if (strlen($value) == 0) $value = __('None');
321         

Thanks. This issue’s already been reported and a solution is in the works.

For some reason it fixed itself? Yay!

I am getting this error in the backend (when accessing one of my sections) again for some reason.

    strip_tags() expects parameter 1 to be string, array given
/home/pat/public_html/symphony/lib/toolkit/class.field.php line 741

736      */
737     public function prepareTableValue($data, XMLElement $link = null) {
738         $max_length = Symphony::Configuration()->get('cell_truncation_length', 'symphony');
739         $max_length = ($max_length ? $max_length : 75);
740
741         $value = strip_tags($data['value']);
742
743         if(function_exists('mb_substr')) {
744             $value = (strlen($value) <= $max_length ? $value : mb_substr($value, 0, $max_length, 'utf-8') . '...');
745         }

My front end is fine on all pages. I have no idea why this is happening. It was doing this both before I updated to 2.2.1 beta and afterwards.

Ok I found which entries table had my textareas and deleted 2 rows which had duplicate entry_ids

Hopefully this won't happen anymore!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details