TDBF Posted March 4, 2020 Posted March 4, 2020 All my themes have missing images in them, and in some cases no images at all in the upload/set_resources folders at all. From what I can see, the core is deleting these images during tasks. Is there anyway to restore the missing default theme resource images?
Adriano Faria Posted March 4, 2020 Posted March 4, 2020 Probably this: I’m already in the theme ID 64. You need to recreate the default theme. TDBF 1
TDBF Posted March 4, 2020 Author Posted March 4, 2020 1 minute ago, Adriano Faria said: Probably this: I’m already in the theme ID 64. You need to recreate the default theme. Hi Adriano, Thank you for that! You have just saved me about three hours uploading images!! 👍 Sometimes, being a developer you look for the hardest solutions before thinking about the obvious ones first! 😂 Adriano Faria 1
Adriano Faria Posted March 4, 2020 Posted March 4, 2020 Also don’t forget to add to your constants.php: \define( 'DEFAULT_THEME_ID', X ); where X is the ID of the theme you created. This is for when you enable IN_DEV mode. TDBF 1
TDBF Posted March 4, 2020 Author Posted March 4, 2020 1 minute ago, Adriano Faria said: Also don’t forget to add to your constants.php: \define( 'DEFAULT_THEME_ID', X ); where X is the ID of the theme you created. This is for when you enable IN_DEV mode. Yeah, I already use that while developing. 👍
zyx Posted February 9, 2021 Posted February 9, 2021 (edited) On 3/4/2020 at 4:19 PM, Adriano Faria said: Probably this: I’m already in the theme ID 64. You need to recreate the default theme. On 3/4/2020 at 4:26 PM, TDBF said: Hi Adriano, Thank you for that! You have just saved me about three hours uploading images!! 👍 Sometimes, being a developer you look for the hardest solutions before thinking about the obvious ones first! 😂 Hi both, I don't suppose you remember what the issue here was? I'm having the exact same issue with set_resources whilst using a theme other than the default. The thread that was linked isn't visible to me, so I'm not sure if it's been deleted or is an area I can't access (as I'm not a developer). Many thanks Edited February 9, 2021 by theipsguy
CoffeeCake Posted February 9, 2021 Posted February 9, 2021 I am having this issue as well, on our production environment, which has never had IN_DEV set to true. I've been copying the files back into the set_resources_X folders, but then poof... They're gone in a few days. zyx 1
Adriano Faria Posted February 9, 2021 Posted February 9, 2021 It keeps happening to me on 4.5 after work with plugins (IN_DEV). Not happening when working with apps.
Recommended Posts