Forum
Error thrown by Members App when saving Member page
Hello,
I'm using Runway with the Members app. I have a textarea
field on the Member page that errors on save. The field populates just fine when using a front-end form.
The error is: Warning: htmlspecialchars() expects parameter 1 to be string, array given in C:\xampp\htdocs\davidmarshall\perch\core\lib\PerchUtil.class.php on line 152
Can you let me know if I'm doing something wrong, or if this is something that needs to be fixed by your good selves?
Many thanks, Jon
The part of the profile form template that populates the field is:
<perch:input type="textarea" id="wishlist" required="true" label="Wishlist" />
The Members member.html file looks like:
<perch:members type="text" id="first_name" label="First name" listing="true" order="1" />
<perch:members type="text" id="last_name" label="Last name" listing="true" order="2" />
<perch:members type="checkbox" id="register_news" label="News updates?" value="Yes" listing="true" order="3" />
<perch:members type="textarea" id="wishlist" label="Wishlist" order="4" size="s" />
Diagnostics:
Perch Runway: 2.8.24, PHP: 5.4.22, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $, with PDO
Server OS: WINNT, apache2handler
Installed apps: content (2.8.24), assets (2.8.24), categories (2.8.24), perch_forms (1.8.3), collection_1 (2.8.24), perch_members (1.4.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', 'perch_members' );
PERCH_LOGINPATH: /perch
PERCH_PATH: C:\xampp\htdocs\davidmarshall\perch
PERCH_CORE: C:\xampp\htdocs\davidmarshall\perch\core
PERCH_RESFILEPATH: C:\xampp\htdocs\davidmarshall\perch\resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 65M, Memory: 128M, Total max file upload: 64M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
HTTP_HOST: davidmarshall
DOCUMENT_ROOT: C:/xampp/htdocs/davidmarshall
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Where are you getting the error?
It displays just above the
textarea
, once the page refreshes after the save. I can send you a screen shot if you let me know where to send it.Is this in the control panel?
Yes - on the member edit page (/perch/addons/apps/perch_members/edit/?id=<number>).
Sorry, I should've made that much clearer.
Ok, we'll take a look and see if we can repeat it.
Hello, I'm using Members app, with Perch (not Runway) and have i think similar issue. Am getting the same warning. But on the line 169 instead of 152.
If i change type="textarea" to type="text" inside the member.html file than everything is working again. You can see than the whole text i have send before from my form textarea field. Except that the field on the member edit page is not big enough to read the text. ; ) But no warning if i save that.
Do you have an idee what could be wrong? Many thanks Lena
Here the textarea field in the Register form:
member.html
debug message inside the Member edit page, after i try to save/change the Member Details:
Diagnistics