Fixed Can't create Fixed List Notice

Myke623

Well-known member
Affected version
1.5.20
After upgrading to 1.50.20a, I wanted to create a new list notice using the Fixed Notice Type, but I get the following error upon saving:

1526640769630.webp

When I dismiss this dialog, there's no visible indication of where the invalid entry was.

After some trial-and-error, switching the Notice Type from fixed to block or floating allowed me to save successfully.
 
Do you have any add-ons which extend the notice functionality?

It's possible that an add-on is preventing our recent changes from taking effect. Worth doing a file healthcheck too in case the changed file didn't upload for some reason.
 
File health check passes OK, and I have no addons that extend the notice functionality.

Anything else I can look at?
 
I just installed a vanilla 1.5.20 onto my dev environment, and right off the bat the same error occurs when trying to create a fixed type notice.
 
Yep, you're right.

There is unfortunately a mistake in the template. If you follow these steps, it should get this working.
  1. Find file install/data/admin_templates.xml
  2. Find text: <xen:option value="fixed"
  3. Replace with: <xen:option value="bottom_fixer"
  4. "Rebuild Master Data" by going to the install system
Finally, if you did a clean install (rather than an upgrade), then the database fields won't be changed either. You'll need to run this query:
SQL:
ALTER TABLE `xf_notice`
MODIFY COLUMN `notice_type` VARCHAR(25) NOT NULL DEFAULT 'block',
MODIFY COLUMN `display_style` VARCHAR(25) NOT NULL DEFAULT ''
 
Back
Top Bottom