ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Installing File module deleted File Channel Fields

June 07, 2012 4:01pm

Subscribe [2]
  • #1 / Jun 07, 2012 4:01pm

    martinj

    32 posts

    Apologies if this is a well known bug/behaviour, I have searched before posting.

    Earlier I installed the File module - no problems except that every Channel Field of type: File was deleted from the EE db without any warning. I’ve restored the db from a backup and all is well again.

    My EE install is still 2.4, I know I should upgrade to 2.5.1. I’ll check to see if the bug is still there after upgrading. I’d be interested to know if this is a known bug/behaviour?

  • #2 / Jun 08, 2012 4:37pm

    Shane Eckert

    7174 posts

    Hey martinj,

    Did you uninstall the file fieldtype and then reinstall? Or are you saying that you had files uploaded before and then went and installed the field fieldtype and it blew stuff up?

    Thanks for clarifying!

    Cheers,

  • #3 / Jun 08, 2012 6:35pm

    martinj

    32 posts

    Hi Shane

    Unfortunately it blew stuff up, well, sucked it into a black hole actually.

    The file module was not installed at all to begin with. We had a load of channel fields set up in different groups, used by different channels. Maybe 150 entries in all. Here’s an example:

    Channel Field Group = Featured Pages

    3 Channel Fields:

    1)
    Field Label = Image
    Short Name = {featured-image}
    Type = File

    2)
    Field Label = URL
    Short Name = {featured-url}
    Type = Text Input

    3)
    Field Label = Opens in New Window?
    Short Name = {featured-new-window}
    Type= Checkboxes

    This was working fine, with {featured-image} pulling the correct image into the template. The images are stored/managed in File Manger.

    When we installed the Files Module, all the Channel Fields of Type = File were wiped from the database, in all Channel Field Groups. They were completely missing. All other Channel Fields remained exactly how we set them up. EE obviously no longer knew anything about the Image channel field because the {featured-image} short name was being parsed directly into the template. The Featured Image files were still in their correct upload directory.

    I wiped the db and reinstalled from a backup taken 2 hours before and all the File Channel Fields were back.

  • #4 / Jun 12, 2012 4:35pm

    Shane Eckert

    7174 posts

    Hey martinj,

    This is really odd.

    I am unable to duplicate but I am also on the latest version of 2.5.2

    Where are things now. Are you back up and running? Are things still in the same state as before?

    Please let me know.

    Cheers,

  • #5 / Jun 13, 2012 10:39am

    martinj

    32 posts

    Hi Shane

    Like I said, we were able to restore the db from a backup. After the restore everything was working fine. I’ve not tried enabling the File Module again - yet but we’re still in development. We’re running 2.4 still - the site is quite heavily customised and I need quite a bit of time to plan the upgrade. Once it’s upgraded to 2.5.2 I’ll see if I can reproduce the behaviour.

  • #6 / Jun 13, 2012 3:59pm

    Shane Eckert

    7174 posts

    Hey martinj,

    Sounds good. Please open a new thread if you run into this again.

    You can reference this thread should it happen again.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases