kerkness
TCTwill CMS
•Created by kerkness on 10/19/2023 in #👊support
Admin api requests blocked for mixed-content
This is an odd one and happening in a single environment (which unfortunately is production) . I know the issue is me, but I can't seem to see what is wrong.
All api requests made by the twill admin are being made using
http
instead of https
and the browser is blocking the call for mixed-content.
For example, if you open the media library, a request is being made to http://productiondomain.com/admin/media-library/medias?page=1&type=image
and the request gets blocked because the current page was loaded over https and it looks sus.
This is only happening in my production environment. I also have a testing and staging environment which do not exhibit the behaviour. Environments are the same save for domains and databases.
I am not exactly sure when this started to happen as we don't make daily changes to content and all the existing models/blocks run fine.
- It's only api calls in the twill admin for 1 environment that are affected.
- All other front end js, react components and Fetch/XHR requests work
- We have re-built the production environment three times.
- Checked, edited ADMIN_APP_URL & ADMIN_APP_STRICT
- cleared every cache, optimized, flushed and begged4 replies
TCTwill CMS
•Created by kerkness on 5/19/2023 in #👊support
DatePicker not updating or incorrectly updating field
Having a weird issue with the DatePicker field which seems to have popped up in the last few weeks or so (project is still in development so not sure exactly when it started happening). DatePicker was working previously.
Running 3.0.1 and I have ran
twill:update
Two issues appear to be happening.
1) If I enter a date into the field then field saves as the previous day. Example, if I enter "May 15, 2023" the payload sent to twill submits "2023-05-15" but the value saved into the database is "2023-05-14"
2) If I select a date from the DatePicker popup then the payload is not updated unless I hit the "enter key". Removing focus from the field does not update the payload.
The module has the following migrations:
(These are not publish dates, they meant to show the start and end dates of an event.)
The model casts these fields to date and also includes $dates
as the docs seem to suggest. Although I'm pretty sure having both is redundant.
The controller uses getForm
method and adds fields with the following
14 replies