I have a couple of custom modules that require fscache and filestore2 in how they operate. I was wondering what these changed to in 5.1 so that I can make the adjustments to the code and upgrade them. Any info would be appreciated.

thanks.

Comments

vm’s picture

changes to modules from 4.7.x to 5.x can be found here : http://drupal.org/node/64279

Rammztein’s picture

Thank you for helping me find out where to go to update the modules to 4.7 and later to 5.1. I was able to get them upgraded to 4.7 and installed into my test site but I have a problem with each of them. In filestore2 I get the error:
Fatal error: Call to undefined function form_select() in /nfs/raven/u2/m/millerz/public_html/modules/filestore2/filestore2.module. I know that there is a form_select_options in the includes/form.inc but they are not the same thing is there a way to just add the function that I need and if so where do I add it to with what options.
And in fscache I get the error: Fatal error: Call to undefined function form_textfield() in /nfs/raven/u2/m/millerz/public_html/modules/fscache/fscache.module. As for this There is no other reference to it in the whole drupal folder. I was looking for documention on either of them but neither comes up with anything, I was wondering if you would be able to help. Thanks.

vm’s picture

I'm far from the person to be able to guide you on your questions.
Hopefully someone with more knowledge will pop in here for your follow up questions.
you may want to check the functions documentation at api.drupl.org in the meantime.

The functions themselves may have been deprecated and now there are differnt functions to you ? (im grabbing at straws) I'm not familiar with version or modules in drupal before 4.7

Rammztein’s picture

Never mind on the problem I was able to fix it by updating the form that I was using. Thank you for all of your help.

ericg’s picture

do you have a working version of filestore2 for drupal 5?

if so, have you uploaded your patch for others to use?

Rammztein’s picture

I have been able to successfully bring FSCache to 5. 1. Though that was the easy one for the simple fact that everything is internal and has vary few hooks to anywhere.
As of right now I do not have Filestore2 completely working. I have been able to set up the form to what we are using it for and all that but as for getting the settings in to the administer/site configuration and /content management to work. They were being displayed with an error, but when I did what was suggested in the forums it got rid of the name in site config.
As far as uploading for everyone to use that will be up to my boss and what he thinks.

sv3n@www.newsfrombabylon.com’s picture

I think it's great that you worked to make FScache coexist with 5.1, and that you're working on doing the same for filestore2

I have needed those modules since 4.6, it's been a loooong time that my site is broken :(

Rammztein’s picture

Here are the nodes for upgrading from 4.6-4.7 and 4.7-5.1. have fun.

http://drupal.org/node/22218
http://drupal.org/node/64279

Rammztein’s picture

I am not allowed to. Due to the fact that we have made the module to our personal needs it is no longer a open source module or something like that I really don't know so we can not do that. If you want to you could upgrade the modules by yourselves, fscache has very little work required do due to the fact that it is all internal and filestore2 does not take that much work to it. The only trouble that we are have left is fscache is not talking to filestore2.

vm’s picture

That's the community spirit : /

ericg’s picture

as far as your boss, however. Please remind him/her/them that there is a special place in hell for those that intentionally refuse to give back to the Free/Open Source projects they work with.

Also, tell them that just because you made the modifications for your own use does not mean that what you made is no longer Free/Open Source. It simply means that according to the GPL you are not under any obligation (other than social) to share your code. What you made, built on a GPL codebase, is still covered by the GPL, still opensource, and should you sell or distribute your changes to anyone you are still obligated to follow the rules defined in the GPL.

You came to this forum to ask for assistance in fixing a problem that others have also. You got that help. You fixed the problem. You now refuse to share that fix. While not a violation of the GPL, you have violated the spirit of community that makes things like drupal possible.

Please use the contact tab on my account if you are willing to tell me who the company is that won't allow you to return the results of your labor to the community. I promise to keep it confidential, I just would like to make sure I never end up working for them on a project.

Rammztein’s picture

Thats just the policy here I don't know and there is nothing I can do to change it. We have not gotten Filestore2 to connect to FsCache yet, also things are not displaying when info is inserted. When we do get ever thing worked out I will be willing to take my personal time and redo that module in the standard form so that it is not in conflict at all and then I will provide that for the community. This could take a few months before we figure out the problem due to other projects that have a higher priority so please be patient. Thanks.

Rammztein’s picture

Thats just the policy here I don't know and there is nothing I can do to change it. We have not gotten Filestore2 to connect to FsCache yet, also things are not displaying when info is inserted. When we do get ever thing worked out I will be willing to take my personal time and redo that module in the standard form so that it is not in conflict at all and then I will provide that for the community. This could take a few months before we figure out the problem due to other projects that have a higher priority so please be patient. Thanks.

Rammztein’s picture

Thats just the policy here I don't know and there is nothing I can do to change it. We have not gotten Filestore2 to connect to FsCache yet, also things are not displaying when info is inserted. When we do get ever thing worked out I will be willing to take my personal time and redo that module in the standard form so that it is not in conflict at all and then I will provide that for the community. This could take a few months before we figure out the problem due to other projects that have a higher priority so please be patient. Thanks.

Rammztein’s picture

Sorry I posted this 3 times my internet was wacky

Rammztein’s picture

I figured that someone would write back to my last message but seems not oh well. I will get the module out as soon as I can.

ericg’s picture

so we're being patient ;)

Whenever you can find the time to get this done and released to the community, it will be greatly appreciated.

sv3n@www.newsfrombabylon.com’s picture

I appareciate your efforts!

ericg’s picture

At the recent NYC Drupal Camp, a few of us had a work session to resolve the loss of filestore2 files/nodes after upgrade to drupal 5 for the folks at radicalreference.info

The end result is a perl script that will recover the files from the confusing fscache directory (you need to have the fscache directory that would have been in the misc directory of your old site) and make those files into attachments to page nodes (pages have content from old filestore2 nodes).

The script is at http://eric.openflows.com/node/54 if you want to give it a try.