Jump to:

23001 Posts in 11702 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » [Solved] 2.3.1 - Warning: Warning: there are two 'XXXXX' files both containing the same class

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2174 Views
  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    [Solved] 2.3.1 - Warning: Warning: there are two 'XXXXX' files both containing the same class Link to this post

    Hi all,

    We have a SS site running on a live server, and I am in the process of migrating it to another server.

    I have taken the base code from the current live site, and copied the database. I have set these both up on the new server.

    When I open the site on the new server, in Dev mode, I am getting a few dozen warnings, this being the first:

    Warning: Warning: there are two 'BulkLoader' files both containing the same class: '/home/xxxx/public_html/sapphire/dev/BulkLoader.php' and '/home/xxxx/public_html/cms/code/BulkLoader.php'. This might mean that the wrong code is being used. in /home/xxxx/public_html/sapphire/core/ManifestBuilder.php on line 276

    Then a fatal error output of the above first warning.

    This is all relating to files found in the new 'sapphire/dev' folder.

    Any ideas what the fix is for this? I'm sure I've seen it, but a forum search only results in another person talking to himself.

    Cheers
    Aaron

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: [Solved] 2.3.1 - Warning: Warning: there are two 'XXXXX' files both containing the same class Link to this post

    Try just deleting the duplicate files. Looking at the cms code for 2.3 I see no mention of BulkLoader etc so just remove the duplicate files from there.

  • Double-A-Ron
    Avatar
    Community Member
    599 Posts

    Re: [Solved] 2.3.1 - Warning: Warning: there are two 'XXXXX' files both containing the same class Link to this post

    Hi Will,

    Yes, I found the issue was that there were remnant files left in the cms and sapphire directories from the previous version of silverstripe.

    Deleting /cms and /sapphire and re-uploading 2.3.1 versions from scratch fixed the issue.

    Cheers
    Aaron

    2174 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.