When I try to run a /dev/build after putting the Gallery module in an installation of 2.4rc1, I receive the following message:
Notice: DataObjectDecorator::extraDBFields() is deprecated. Please use extraStatics() instead. in /[path_to_silverstripe]/sapphire/core/model/DataObjectDecorator.php on line 60
and I'm taken to the admin login screen, but I can never login in as attempting to do so just brings me back to this message and login.
I have used the Gallery module in other 2.4rc1 installs, so seems to be afoot with this in particular, and I was hoping that someone could provide some insights/hints/tips as to why this might be happening.
The problem is that the GalleryFile class extends the DataObjectDecorator class, and the Gallery module is not updated for Silverstripe 2.4 RC 1. The extraDBFields() method is overriden in the GalleryFile class, but unfortunately it's deprecated in 2.4 RC 1. In 2.4 RC 1 it is suggested to use the extraStatics() method instead.
So, all you have to do is to open the GalleryFile.php file from the /code directory of the gallery module, and look after this section: