FriendsOfSymfony / FOSFacebookBundle

NOT MAINTAINED - see https://github.com/hwi/HWIOAuthBundle
321 stars 140 forks source link

Fatal error: Class 'ResourceBundle' not found #194

Open Raulken opened 12 years ago

Raulken commented 12 years ago

i have this error when try to edit my profile... this error i have after install fosfacebookbundle... i read in web that i need to intl extension in my webserver....but i not have installed :( exists another solution? for example edit htaccess?

thx

Baachi commented 12 years ago

Editing a .htaccess dosn't help ;)

You must write your own DataTransformers. But i would suggest, you should install the intl extension.

$ sudo apt-get install php5-intl
Raulken commented 12 years ago

yes in locale i have intl extension....but in webserver i haven't :((((( i can't re.buy another server....

Baachi commented 12 years ago

Can you paste your autoload.php? Symfony should fallback to the Locale component if intl is not available.

Raulken commented 12 years ago

<?php

use Doctrine\Common\Annotations\AnnotationRegistry;

$loader = require DIR.'/../vendor/autoload.php'; $loader->add("Application", DIR); // intl if (!function_exists('intl_get_error_code')) { require_once DIR.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');

}

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

return $loader;

stof commented 12 years ago

@Raulken The ResourceBundle class does not have a stub implementation yet

Raulken commented 12 years ago

sorry stof i not understand.....i'm italian and also with google translate i not understand can u repeat with other words please?

Raulken commented 12 years ago

@stof i must have intl installed? not exists another solution?

Joey92 commented 11 years ago

Install php5-intl.

If you're using ubuntu or so, "sudo apt-get install php5-intl" Or just uncomment the intl extension in you php.ini if your're using windows.