After uploading the image files for the frontpage slideshow in the theme settings, the front page works as it should. However, on a few occasions, after I rebooted the server and returned to the theme settings, the Slide XX Image field becomes blank (as it was at the beginning). It is somehow not persistent. I haven't had time to look into the code to see where these field values are being stored.

I increased the default 3 slides to 5, in case it matters.

All 5 x Slide XX Image fields reset to blank. Strange, I just also noticed that the actual jpg files that were once in /sites/default/files after upload have now been removed.

Comments

hodowany created an issue. See original summary.

andypost’s picture

Priority: Major » Critical

Looks like files are not set permanent after upload, this totally breaks site

gabocharrua’s picture

I have the same issue.
I uploaded the images for the slideshow, and after 24/48 hs they disappear!! It happens already 4 times in 6 days.
And since there is no image (it doesnt go back to the default images) home page loads without any css!!
Any idea?

vojta’s picture

I have same problem. This is making the theme (very nice, otherwise), unusable.

prasannag’s picture

Assigned: Unassigned » prasannag
prasannag’s picture

Assigned: prasannag » Unassigned
Status: Active » Needs review
StatusFileSize
new3.02 KB

Custom callback is given at line 216 of sales_zymphonies_theme.theme file, to save the files permanent.

But we don't need a submit callback as the admin settings page is reloaded after form submission.
So, adding a code snippet to execute when the theme settings are loaded.

*A couple of spelling corrections are also made in the same patch.

Uploading the patch.

vojta’s picture

Thank You, I patched the file, I'll let You know in couple of days if it works as expected. :-)

zymphonies-dev’s picture

Status: Needs review » Fixed

Fixed and updated changes in latest build.

zymphonies-dev’s picture

Status: Fixed » Closed (fixed)