WPIntell

Source evidence

custom.template.php deleted while updating

Toplytics · support · 2022-06-14T13:52:00+00:00

mixedsentiment
mediumseverity
0.84relevance
6replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bapman resolved
Hello, I just updated to 4.0.10 from 4.0.9 with wp-cli and it deleted my custom.template.php file! Can you please correct this? Cheers! Hello @bapman , That shouldn’t happen. Let me look into this and get back to you. Was the file located in the plugin folder or the active theme folder? Thanks! It is in plugins/toplytics/resources/views/frontend Thank you. I’ll run some tests and get back to you. Hello @bapman , Thank you for reporting this behavior. I have tested this and I confirm that it happens as you described. It happens due to how WP updates the plugin, so there’s nothing we can do to fix it. However, there is an alternative you can use right now to prevent this from happening with the next update of the plugin. Please move the custom template to your child-theme folder and name it toplytics-template.php . It should be in wp-content/themes/<child-theme-slug>/toplytics-template.php . It’s important to be a child theme, otherwise, it will be overwritten again when you update the theme. WP updates the theme similar to how it updates the plugins so unless you have a child theme it will vanish when you updated the theme as well. About child themes: https://developer.wordpress.org/themes/advanced-topics/child-themes/ I’ll need to update the docs for this and even remove the custom template check it does for the plugin folder itself. I’ll prepare a new release soon to include the comment updates and remove the check it does for the plugin folder itself. Github issue: https://github.com/presslabs/toplytics/issues/162 This reply was modified 3 years, 11 months ago by Presslabs . Reason: Add github issue Hello! Thanks for the great support! I have a full custom theme so I directly moved the toplytics template inside it. I trust it will keep working when updating now. Again, thanks for this beautiful plugin! Thank you as well @bapman ! It will continue to work from the active theme folder for sure.

Comments

6 shown
Presslabs 2022-06-14T14:01:00+00:00

Hello @bapman , That shouldn’t happen. Let me look into this and get back to you. Was the file located in the plugin folder or the active theme folder?

bapman 2022-06-14T14:04:00+00:00

Thanks! It is in plugins/toplytics/resources/views/frontend

Presslabs 2022-06-14T14:09:00+00:00

Thank you. I’ll run some tests and get back to you.

Presslabs 2022-06-15T07:16:00+00:00

Hello @bapman , Thank you for reporting this behavior. I have tested this and I confirm that it happens as you described. It happens due to how WP updates the plugin, so there’s nothing we can do to fix it. However, there is an alternative you can use right now to prevent this from happening with the next update of the plugin. Please move the custom template to your child-theme folder and name it toplytics-template.php . It should be in wp-content/themes/<child-theme-slug>/toplytics-template.php . It’s important to be a child theme, otherwise, it will be overwritten again when you update the theme. WP updates the theme similar to how it updates the plugins so unless you have a child theme it will vanish when you updated the theme as well. About child themes: https://developer.wordpress.org/themes/advanced-topics/child-themes/ I’ll need to update the docs for this and even remove the custom template check it does for the plugin folder itself. I’ll prepare a new release soon to include the comment updates and remove the check it does for the plugin folder itself. Github issue: https://github.com/presslabs/toplytics/issues/162 This reply was modified 3 years, 11 months ago by Presslabs . Reason: Add github issue

bapman 2022-06-15T08:13:00+00:00

Hello! Thanks for the great support! I have a full custom theme so I directly moved the toplytics template inside it. I trust it will keep working when updating now. Again, thanks for this beautiful plugin!

Presslabs 2022-06-15T08:14:00+00:00

Thank you as well @bapman ! It will continue to work from the active theme folder for sure.