Symfony Profiler tell me this deprectation message : Please install the "intl" PHP extension for best performance.
I enabled intl extension in my php.ini file and it appears in phpinfo, but the deprectation message still appears in Symfony.
I'm using XAMPP server on Windows 10.
Any idea to fix this problem ?
I don't understand precisely why but this fixed my problem : i updated the Symfony Intl package (from 5.0.4 to 5.0.7) inside my project and the message disappeared.
Related
I made a symfony project on php 7.4, however it seems like OVH php version is 7.3.16.
Which folder are not necessary for deployment and how can I adapt my composer for a different php version ?
Here's the error I get while accessing to my website :
Fatal Error: composer.lock was created for PHP version 7.4 or higher but the current PHP version is 7.3.16.
OVH offer a way to change the PHP version used by your domain.
Check Details of the .ovhconfig file for more information about it. You should also have an option in the control panel about it.
I have a problem with symfony2.3, today I have this error message : "PDoException could not find driver" while yesterday everything worked perfectly.
When I run this command line : php app/check.php All is ok :
OK PDO should be installed
OK PDO should have some drivers installed (currently available: sqlite)
In my file parameters.yml all is correctly.
I do not understand why it worked yesterday and today I have this error.
Best regards,
First of all, verify your php.ini file: the extensions (php_pdo_pgsql or php_pdo_mysql) and php_pdo must be enabled. Make sure you apply this changes on php.ini file that your symfony project is using, check this on localhost/path_to_your_project/web/config.php. You know if this extensions are enabled executing the function phpinfo().
This command is also helpfull: php -m. It lists on console all the php modules that are loaded.
Tip: check out you Apache error log, there could be something wrong with the load of your extensions. This file is located according to your server configuration.
I got this message
Site error: the file /home/content/xx/xxxxxxxx/html/admin/application/controllers/DashboardController.class.php requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the website operator. If you are the website operator please use the ionCube Loader Wizard to assist with installation."
before and after installing ioncube. I think T've done installation correctly. I use Godaddy with PHP5.3
Any advice?
You will need to install ionCube on your shared hosting account. You can use the Wizard to do so. http://www.ioncube.com/loaders.php
You will need to use the x86 and not the x86_64 versions of the ionCube loader.
Once you have this installed you will need to update your php5.ini file. You will want to use the following format in your php5.ini file:
zend_extension = /var/chroot/home/content/XX/XXXXXXX/html/ioncube/ioncube_loader_lin_5.3.so
The "xx" and "xxxxxxx" will be the same as are shown in your error.
After this change is made you will need to allow some time for the current PHP processes to die and restart before this change will register.
ioncube_loader_lin_5.3.so needs to be installed by the server admin. Contact GoDaddy support.
I have a project installed on my windows , and today i need to install on a Ubuntu server. The project is saved on an svn sever. so i just use co to check out the project and update all the vendor bundles. all is ok when is get to the web/config.php:
To enhance your Symfony experience, it’s recommended that you fix the following :
Install and enable the intl extension.
Set short_open_tag to off in php.ini*.
* Changes to the php.ini file must be done in "/home/siteadm/common/php/Perso.ini".
so when i click 'go to the welcome page',i got :
AnnotationException: [Semantical Error] The annotation "#EWZ\bundle\RecaptchaBundle\Validator\Constraints\True" in property Acme\...\User::$recaptcha does not exist, or could not be auto-loaded.
in fact it works well on my locale. The userbunle usring recapchaBundle and FOSUserbundle, they all works well on my local windows machine.
i check the /vendor directory: they are 755
Windows is not case sensitive. Linux is.
Maybe you should use
#EWZ\ Bundle \RecaptchaBundle\Validator\Constraints\True
instead of
#EWZ\ bundle \RecaptchaBundle\Validator\Constraints\Tru3
?
It's very common mistake.
I'v just install and configured a clean copy of Symfony2 framework and included in php.ini the extension
php_apc_319_php54_vc9_win7-2008.dll
restart apache and run the url "http://localhost/Symfony/web/app_dev.php/"
it was all fine until refreshing the page and getting an error :
Fatal error: Call to undefined method
Symfony\Component\ClassLoader\ApcUniversalClassLoader::registerNamespaces()
in E:\phpWorkspace\www\Symfony\app\autoload.php on line 10.
I'v allready read this chapter about performance
but maybe I didn't use it well
I'm a novice with symfony so I will be very happy to get astep by step tutorial
You need to install Apc in php
Install apc link1
Install apc link2
I would guess from the file you are using (php_apc_319_php54_vc9_win7-2008.dll) that this dll purports to provide APC 3.1.9 for use with PHP 5.4. Support for PHP 5.4 wasn't added to APC until 3.1.10, and even now is only officially in beta.
At time of writing, the latest version is 3.1.13. I would install that before investigating anything else.