Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

Warning: there are two 'RestfulService' files:


Reply


6 Posts   3476 Views

Avatar
frederik aka tina

Community Member, 5 Posts

30 November 2007 at 6:59am

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

Avatar
marikas

Community Member, 24 Posts

30 November 2007 at 9:32pm

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.

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

30 November 2007 at 9:51pm

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 [url=http://www.silverstripe.com/modules/]Module Downloads[/url]

Avatar
frederik aka tina

Community Member, 5 Posts

1 December 2007 at 1:43am

thank you

Avatar
Andy

230 Posts

3 December 2007 at 2:36pm

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.

Avatar
gakenny

Community Member, 153 Posts

3 December 2007 at 2:44pm

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