Set default image value to -1
Show image represented as -1 in frontend
Error
Save failed with the following error: The default value is invalid.
Error backend
screencapture-dolcevia-nl-administrator-index-php-2019-09-18-10_11_53.pdf
PHP Built On | Linux dedi2762.your-server.de 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64
Database Type | mysql
Database Version | 5.7.27-1
Database Collation | utf8_general_ci
Database Connection Collation | utf8mb4_general_ci
PHP Version | 7.2.22
Web Server | Apache
WebServer to PHP Interface | cgi-fcgi
Joomla! Version | Joomla! 3.9.11 Stable [ Amani ] 13-August-2019 15:00 GMT
Joomla! Platform Version | Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Also tried changing the value of the image in the database but it does not work either. No error but no image on frontend.
Labels |
Added:
?
|
Why are you setting the default value as -1
default (optional) is the default image file name.
@infograf768 the docs say it is the default image file name
Just to be clear, I first tried all combinations of image url, Lichte-_milieubelasting.png
and then images/2019/footprints/Lichte-_milieubelasting.png..
Any which way and anything I try as a default value gives the same validation error. I wanted to understand what was in that field and exported the contents of that field in some articles where i manually entered the field. The result was that a -1 was present in these fields so I thought, perhaps the default value should be something like that.
the docs say it is the default image file name
After navigating to the 3rd page of the help modal, not very user friendly.
Why are you setting the default value as -1
Please see my answer below.
default (optional) is the default image file name.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-18 09:06:52 |
Closed_By | ⇒ | EJBJane |
Status | Closed | ⇒ | New |
Closed_Date | 2019-09-18 09:06:52 | ⇒ | |
Closed_By | EJBJane | ⇒ |
In fact perhaps I was too hasty to call this closed as, yes the validation error is fixed with #24643 but if I add the image name to the default value my expectation would be that image would show up by default in an article but it does not.
I have a very sticky cache so I have to retry several times but I have refreshed a dozen times and still no default image showing up.
Your cache is the issue as it works fine here in frontend article display.
We have 2 hours only if we want to get this patch in next version.
Will make the PR and post here a link where you can mark your test as OK.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-18 10:01:58 |
Closed_By | ⇒ | infograf768 |
Patch ready here #26352
Please test and mark your test OK here https://issues.joomla.org/tracker/joomla-cms/26352
Can you check if #24643 solves your issue?