Fixed Empty template name for template_modification?

Snog

Well-known member
This is strange.

I have a template modification that showing that it's been successfully applied to two templates, but only one has a name:

huh.webp

Any ideas what would cause this? It should in reality only be applied to one template.
 
This may be a bug somewhere.

I disabled the template modification and it's still showing as being applied to the un-named template.

hum2.webp

hum3.webp

A little background that might help. I switched my development server so it has a copy of my live site, upgraded to XF 2 Beta 7.

I didn't see this on a straight install of Beta 7, only after the upgrade.

All other add-ons/modifications are disabled, so it's not another add-on interfering.
 
There is definitely a bug somewhere.

I decided to delete the modifications that were doing this and to re-enter them. As I entered them, they all returned to being the proper apply count.

But, I made a mistake on one of them and edited it. After editing, one of the other modifications for the same 'thread_list_macros' template, for the same add-on, changed to show 2 modifications like my original post. I had to delete it a second time and re-enter it to get the correct apply count.
 
I just checked the database and the template modifications are showing as being applied to non-existent templates.

This appears to happen when you have more than one modification defined for the same template (modifying 2 different sections of the template).
 
Last edited:
The only way I can see this happening is from XF1 data being in the xf_template_modification_log table. There is a bug in that we don't clean up this table with the 2.0 upgrade, so I'll fix that.

Though are you implying in your last messages that you have a more consistent reproduction case. If so, I can't reproduce that, so we'll need exact steps.
 
@Mike I haven't been able to recreate again while just editing the modifications.

I think you would be fine marking this as fixed.
 
The only way I can see this happening is from XF1 data being in the xf_template_modification_log table. There is a bug in that we don't clean up this table with the 2.0 upgrade, so I'll fix that.

Though are you implying in your last messages that you have a more consistent reproduction case. If so, I can't reproduce that, so we'll need exact steps.
Just wanted to let you know that something similar happened to me today, still on RC1 and updated from 1.5, so it could aldready be solved.

tmproblem.webp
 
Back
Top Bottom