J3 Issue ?
avatar astridx
astridx
8 Apr 2017

Steps to reproduce the issue

Create a field of the type image list and try to insert a default value.

Expected result

I can insert the file name of an image. I tried every combination of
images/sampledata/fruitshop/apple.jpg.

Actual result

It is not possible for me to insert any default value. I all the time get the message:
Save failed with the following error: The default value is invalid.

articles edit field joomla cms test administration 1

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
4.00

avatar astridx astridx - open - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Apr 2017
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
The description was changed
avatar astridx astridx - edited - 8 Apr 2017
avatar astridx astridx - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I inser as the default value of the field imagelist
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
Joomla 3.7.0 RC1[com_fields]: What can I insert as the default value of the field imagelist or sql?
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

Issue confirmed. Tried verious Settings without Success.

avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Status New Confirmed
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 8 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Apr 2017
Title
[com_fields] Joomla 3.7.0 RC1: What can I inser as the default value of the field imagelist
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
avatar laoneo
laoneo - comment - 8 Apr 2017

Guess a path to an image or folder.

avatar astridx
astridx - comment - 8 Apr 2017

@laoneo Yes, but what syntax do we need to insert? No one of my tries works.

avatar brianteeman
brianteeman - comment - 8 Apr 2017

@laoneo I tried that :( doesnt work

avatar laoneo
laoneo - comment - 8 Apr 2017

It should be one which maxhes an option value of the list. If it doesn't work, then it looks like a bug.

avatar brianteeman
brianteeman - comment - 8 Apr 2017

I tried
images
/images/
/images

etc - all fail

avatar joomdonation
joomdonation - comment - 8 Apr 2017

By reading the code. It should be the file name of the image you want to be selected by default. For example banner.jpg, osmbanner1.png.... in case you set Directory parameter to banners folder

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

tried setting Path in PlugIn and only name in Field – no Luck.

avatar joomdonation
joomdonation - comment - 8 Apr 2017
  1. Here is setting of field (note the value of Directory and Default Value)

articles- edit field - joomla - administration

  1. Here is the add article form (note the file name you entered in Default value is selected)

articles- new - joomla - administration

So it works well to me (maybe the Joomla installation I am having a bit outdated). Could you please try the same settings?

avatar astridx
astridx - comment - 8 Apr 2017

@joomdonation Which Joomla Version do you use? The same settings are not working for me with Joomla! 3.7.0-rc1

avatar joomdonation
joomdonation - comment - 8 Apr 2017

I am using Joomla! 3.7.0-rc1 dev, so it is outdated. I can try to update to stagging to check if needed

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 8 Apr 2017

bildschirmfoto 2017-04-08 um 14 31 14

System information

3.7.0-rc1 (nightly Build)
macOS Sierra, 10.12.4
Firefox 52 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar joomdonation
joomdonation - comment - 8 Apr 2017

A bug with validate default value of the field, then. I was able to edit code to bypass the check and confirm that default value is the file name of the image you want to be selected by default is correct, only field name, not contains path.

Maybe we can open a separate issue with this validation error?

avatar AlexRed
AlexRed - comment - 19 May 2017

I can confirm the problem on Joomla! 3.7.2-Dev (nightly Build)


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

avatar jakeinnh
jakeinnh - comment - 14 Aug 2017

This issue still exists - can not save imagelist field with default value - name of image in selected folder. Any suggested work-arounds?

Joomla 3.7.4
Windows 7.0 Ultimate SP1
IE 11.0.9600.18762 / Update Versions 11.0.45

PHP 7.0.22
MySQL 5.6.31

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Status Confirmed Discussion
avatar newyenjay
newyenjay - comment - 7 Feb 2018

Wondering if there's been any progress on this? I'm still getting this error as well on Joomla 3.7.3

avatar brianteeman
brianteeman - comment - 8 Feb 2018

please upgrade to the latest release 3.8.5

avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar miggland
miggland - comment - 23 Nov 2018

Similar behaviour is observed with the sql field. If entering an ID (corresponding to value) or the text does not matter, same error appears.
When entering the default directly into the database via phpMyAdmin, the expected behaviour is observed, and the default is shown on the "Edit field" page in Joomla Administrator. However, changes can no longer be saved because of the error.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Title
[com_fields] Joomla 3.7.0 RC1: What can I insert as the default value of the field imagelist
[com_fields] What can I insert as the default value of the field imagelist
avatar franz-wohlkoenig franz-wohlkoenig - edited - 19 Apr 2019
avatar ReLater
ReLater - comment - 19 Apr 2019

Because the issue is still present in J3.9.5 I've created a pr #24643

Experts should check the code changes there in detail.

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Apr 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-04-19 13:15:40
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Apr 2019

Closed as having Pull Request.

avatar franz-wohlkoenig franz-wohlkoenig - close - 19 Apr 2019
avatar ReLater
ReLater - comment - 25 May 2019

@franz-wohlkoenig
Please reopen. Thank you!

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2019
Status Closed New
Closed_Date 2019-04-19 13:15:40
Closed_By franz-wohlkoenig
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 26 May 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 26 May 2019
Status New Discussion
avatar Quy Quy - close - 6 Dec 2019
avatar Quy Quy - change - 6 Dec 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-12-06 15:46:36
Closed_By Quy
avatar Quy
Quy - comment - 6 Dec 2019

Fixed #26352


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

Add a Comment

Login with GitHub to post a comment