Fieldtype

Archived
Forum
(read-only)

Expresso

ExpressionEngine 2, ExpressionEngine 3, ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

Missing argument 1 for Expresso_ft

Support (Resolved)

bobh
bobh

Hello,

I’m getting these errors when creating a Low Variable of type Expresso:

Warning
Missing argument 1 for Expresso_ft::save_settings(), called in user/addons/expresso/ft.expresso.php on line 833 and defined
user/addons/expresso/ft.expresso.php, line 757 show details
Severity: E_WARNING

Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:115)
ee/legacy/core/Input.php, line 249 hide details
Severity: E_WARNING

Warning
Cannot modify header information - headers already sent by (output started at ee/legacy/core/Exceptions.php:115)
ee/legacy/libraries/Functions.php, line 438 hide details
Severity: E_WARNING

Using Expresso 4.1.1 and Low Variables 3.0.4. Any chance of a quick fix here?

PutYourLightsOn
# 1
Developer
PutYourLightsOn

Hi there. Please try updating the save_var_settingsmethod in ft.expresso.php. We’ll release an official update for this fix soon.

public function save_var_settings($data)
{
    
return $this->save_settings($data);
bobh
# 2
bobh

Thanks. That works.

Converting an existing textarea variable into an expresso field does not work however. No errors are shown and the variable still looks like a textarea but the type is set to expresso.

PutYourLightsOn
# 3
Developer
PutYourLightsOn

Please try updating the accepts_content_type method in ft.expresso.php as follows:

public function accepts_content_type($name)
{
    
return ($name == 'channel' || $name == 'grid' || $name == 'low_variables');
bobh
# 4
bobh

Converting a freshly created textarea field now works but it has no effect on my original textarea field.

bobh
# 5
bobh

I noticed a js error due to a dash (-) in my field name:

admin.php?/cp/addons/settings/low_variables/group/2:368 Uncaught SyntaxError: Unexpected token -

After replacing it with an underscore everything is working as expected. Thanks for your help.

PutYourLightsOn
# 6
Developer
PutYourLightsOn

Great, glad to hear it!!