?
avatar webmonkiee
webmonkiee
7 Apr 2015

Steps to reproduce the issue

Create a custom module that has two or more textarea (or editor) field types.

Expected result

Expect fields to save correctly.

Actual result

ALL fields (including text, menuitem, etc... types) are cleared and not saved.

System information (as much as possible)

Joomls! 3.4.1

Additional comments

This seems to have happened after the Joomla! 3.4.1 update.

Votes

# of Users Experiencing Issue
1/2
Average Importance Score
5.00

avatar webmonkiee webmonkiee - open - 7 Apr 2015
avatar webmonkiee webmonkiee - change - 7 Apr 2015
Labels Removed: ?
avatar zero-24 zero-24 - change - 7 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 7 Apr 2015
Labels Added: ?
avatar brianteeman
brianteeman - comment - 7 Apr 2015

Hi Jonathan - can you please supply some sample code - it will make it easier for people to test etc.

Also resetting the priority according to https://docs.joomla.org/Priority


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6694.
avatar brianteeman brianteeman - change - 7 Apr 2015
Priority Urgent Medium
avatar webmonkiee
webmonkiee - comment - 8 Apr 2015

Thanks Brian.

Here is the module xml file that is causing the initial issue. Basically any module with multiple textarea or editor field types.

<?xml version="1.0" encoding="utf-8"?>

zHomepage Triple
Zuno Studios
December 2014
Copyright (C) 2014 Zuno Studios. All rights reserved.
http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
zunous@zunostudios.com
www.zunostudios.com
1.0.0
This module displays three items—mainly used on the homepage

<files>
    <filename module="mod_zhomepage_triple">mod_zhomepage_triple.php</filename>
    <folder>tmpl</folder>
    <folder>language</folder>
    <filename>mod_zhomepage_triple.xml</filename>
</files>

<languages>
    <language tag="en-GB">en-GB.mod_zhomepage_triple.ini</language>
    <language tag="en-GB">en-GB.mod_zhomepage_triple.sys.ini</language>
</languages>

<config>

    <fields name="params">

        <fieldset name="basic">

            <field name="display_title" type="text" label="Display Title" description="" />
            <field name="display_subtitle" type="text" label="Display Sub-title" description="" />

            <field name="spacer1" type="spacer" label="&lt;h3&gt;Item 1&lt;/h3&gt;" />

            <field name="image1" type="media" label="Image/icon" description="Image to use above the copy" />
            <field name="title1" type="text" label="Title" description="Headline that appears below the image/icon" />
            <field name="copy1" type="textarea" label="Copy" description="Text that appears below the image/icon" />
            <field name="menuitem1" type="menuitem" label="Menu Item for Link" description="Select a menu item that the button for this item will link to">
                <option value="">-Select a menu item-</option>
            </field>
            <field name="buttontext1" type="text" label="Button Text" description="Text that will be displayed in the button" />

            <field name="spacer2" type="spacer" label="&lt;h3&gt;Item 2&lt;/h3&gt;" />
            <field name="image2" type="media" label="Image/icon" description="Image to use above the copy" />
            <field name="title2" type="text" label="Title" description="Headline that appears below the image/icon" />
            <field name="copy2" type="textarea" label="Copy" description="Text that appears below the image/icon" />
            <field name="menuitem2" type="menuitem" label="Menu Item for Link" description="Select a menu item that the button for this item will link to">
                <option value="">-Select a menu item-</option>
            </field>
            <field name="buttontext2" type="text" label="Button Text" description="Text that will be displayed in the button" />

            <field name="spacer3" type="spacer" label="&lt;h3&gt;Item 3&lt;/h3&gt;" />
            <field name="image3" type="media" label="Image/icon" description="Image to use above the copy" />
            <field name="title3" type="text" label="Title" description="Headline that appears below the image/icon" />
            <field name="copy3" type="textarea" label="Copy" description="Text that appears below the image/icon" />
            <field name="menuitem3" type="menuitem" label="Menu Item for Link" description="Select a menu item that the button for this item will link to">
                <option value="">-Select a menu item-</option>
            </field>
            <field name="buttontext3" type="text" label="Button Text" description="Text that will be displayed in the button" />

        </fieldset>

        <fieldset name="advanced">

            <field
                name="layout"
                type="modulelayout"
                label="JFIELD_ALT_LAYOUT_LABEL"
                description="JFIELD_ALT_MODULE_LAYOUT_DESC" />

            <field name="show_top_arrow" type="list" default="1" label="Top Arrow" description="Select whether to show the top arrow">
                <option value="1">Show</option>
                <option value="0">Hide</option>
            </field>

            <field name="show_bottom_arrow" type="list" default="1" label="Bottom Arrow" description="Select whether to show the bottom arrow">
                <option value="1">Show</option>
                <option value="0">Hide</option>
            </field>

            <field name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="fieldMODULECLASSSUFFIX" />

            <field name="owncache" type="list" default="1"
                label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC" >
                <option value="1">JGLOBAL_USE_GLOBAL</option>
                <option value="0">COM_MODULES_FIELD_VALUE_NOCACHING
                </option>
            </field>

            <field name="cache_time" type="text" default="900"
                label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" />

        </fieldset>

    </fields>

</config>


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6694.
avatar bertmert
bertmert - comment - 8 Apr 2015

I cannot confirm/replicate for J!3.4.1 and Staging (2015-04-05).

I made some tests with several core modules where I added something like this in XML file (2 editors, 2 textareas).

...
    <customContent />
    <config>
 <fields name="params">
  <fieldset name="basic">

<!--ADD THIS-->
<field name="articletext" type="editor"
label="articletext"
filter="JComponentHelper::filterText" buttons="false" />

<field name="articletextarea" type="textarea"
label="articletextarea" />

<field name="articletext2" type="editor"
label="articletext2"
filter="JComponentHelper::filterText" buttons="true" />

<field name="articletextarea2" type="textarea"
label="articletextarea2" />
<!--/ADD THIS-->
...

Then I copied your whole CONFIG block to core modules. Also no problems. All fields were saved correctly.

avatar anamikakush
anamikakush - comment - 4 Jun 2015

Hello,

I am facing the same problem and i have 5 editor fields in custom module params and i have few text boxes fields, After filling the content in Editor and make it save then value of all the fields get blank/clean.

It is working on localhost but when i upload on the server then it doesn't work. Please help to resolve the issue.

Regards,
Anamika


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6694.

avatar webmonkiee
webmonkiee - comment - 15 Jun 2015

Hey @anamikakush we're still having this issue ourselves, but only on some sites in some instances. Even different sites on the same server are having issues—some work and others do not.

I'm not sure what it could be and we're still trying to exactly pin-point it ourselves.

-Jon

avatar brianteeman
brianteeman - comment - 19 Jun 2015

@webmonkiee please check your php error logs on the sites where it fails for any error message about max_input_vars


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6694.

avatar brianteeman brianteeman - change - 12 Nov 2015
Status New Closed
Closed_Date 0000-00-00 00:00:00 2015-11-12 16:20:38
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 12 Nov 2015

It is several months since the request for further information which has not been provided. I am closing this at this time - it can always be re-opened


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6694.

avatar brianteeman brianteeman - close - 12 Nov 2015

Add a Comment

Login with GitHub to post a comment