Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Warning: there are two 'RestfulService' files:

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 3303 Views
  • frederik aka tina
    Avatar
    Community Member
    5 Posts

    Warning: there are two 'RestfulService' files: Link to this post

    Warning: Warning: there are two 'RestfulService' files: '/var/www/localhost/htdocs/cms/sapphire/api/RestfulService.php' and '/var/www/localhost/htdocs/cms/mashups/code/RestfulService.php'. This might mean that the wrong code is being used. in /mnt/raid/www/localhost/htdocs/cms/sapphire/core/ManifestBuilder.php on line 153

    this is what i get the firzt time i visit the site i'm working on,
    How to solve this?
    tnx in advance

  • marikas
    Avatar
    Community Member
    24 Posts

    Re: Warning: there are two 'RestfulService' files: Link to this post

    Hi,

    I'd like to report that I have a similar error on a fresh install:

    Warning: Warning: there are two 'OpenIDAuthenticatedRole' files both containing the same class: '/home/newsites/public_html/silver/sapphire/auth_openid/code/OpenIDAuthenticatedRole.php' and '/home/newsites/public_html/silver/auth_openid/code/OpenIDAuthenticatedRole.php'. This might mean that the wrong code is being used. in /home/newsites/public_html/silver/sapphire/core/ManifestBuilder.php on line 243

    Warning: Warning: there are two 'OpenIDAuthenticator' files both containing the same class: '/home/newsites/public_html/silver/sapphire/auth_openid/code/OpenIDAuthenticator.php' and '/home/newsites/public_html/silver/auth_openid/code/OpenIDAuthenticator.php'. This might mean that the wrong code is being used. in /home/newsites/public_html/silver/sapphire/core/ManifestBuilder.php on line 243

    Warning: Warning: there are two 'OpenIDLoginForm' files both containing the same class: '/home/newsites/public_html/silver/sapphire/auth_openid/code/OpenIDLoginForm.php' and '/home/newsites/public_html/silver/auth_openid/code/OpenIDLoginForm.php'. This might mean that the wrong code is being used. in /home/newsites/public_html/silver/sapphire/core/ManifestBuilder.php on line 243

    There are dozens of errors like this on the page.. but it ends with a Fatal "Allowed memory size of 33554432 bytes exhausted" error.

    TIA for any help.

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: Warning: there are two 'RestfulService' files: Link to this post

    frederik aka tina >> Remove the RestfulService file in mashups directory will solve your issue. Also the mashups module is deprecated and it's not recommended to use for production. Better to grab sepearate flickr, youtube and technorati modules from the Module Downloads

  • frederik aka tina
    Avatar
    Community Member
    5 Posts

    Re: Warning: there are two 'RestfulService' files: Link to this post

    thank you

  • Andy
    Avatar
    230 Posts

    Re: Warning: there are two 'RestfulService' files: Link to this post

    marikas - it seems you have a copy of the auth_openid module inside sapphire, as well as at the top level. You only need the copy at the top level.

  • gakenny
    Avatar
    Community Member
    153 Posts

    Re: Warning: there are two 'RestfulService' files: Link to this post

    Hello,

    The only time I experienced this issue is when I erroneously copied a folder under a subdirectory of SilverStripe. Is it possible that this has occurred and there are some additional folders under the sapphire directory?

    Cheers,

    Gary

    3303 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.