Ive searched the PHPuserBundle documentation and cannot find any reference to php version support issues.
Ive just upgraded my php version to 5.6 (using XAMPP) and I get the following error when sending to login_check.
Attempted to call function "mb_convert_case" from namespace "FOS\UserBundle\Util
Is it best to stick with 5.4 for now? I tried 5.5 and got the same error. My only reason for wanting to upgrade was to stay up to date, so its not life or death but Im curious.
thanks.
Try to uncomment/add this line in your php.ini:
extension=php_mbstring.dll
Latest version ("friendsofsymfony/user-bundle": "2.0.*#dev") of FOSUSerBundle works with PHP>=5.3.2.
You can check this in packagist.org - https://packagist.org/packages/friendsofsymfony/user-bundle
If you are working under Windows then you must uncomment php_mbstring.dll in php.ini file. Check this answer - mb_convert_case undefined function (Symfony2 FOS/UserBundle)
Related
I am trying to set up a Magento 2 app.
I keep getting an error like this:
Your PHP Version is 5.6.31, but always_populate_raw_post_data = 0.
$HTTP_RAW_POST_DATA is deprecated from PHP 5.6 onwards and will be removed in PHP 7.0.
This will stop the installer from running. Please open your php.ini file and set always_populate_raw_post_data to -1.
If you need more help please call your hosting provider.
First of all I have 3 dirs: PHP5.6.31, PHP7.0.23, PHP7.1.9.
So in the PHP 5.6.31 i have 3 ini files all of witch have this setting.
always_populate_raw_post_data to -1
The other 2 folders PHP7.0.23, PHP7.1.9 don't have this in the php ini because it is newer version of php. My question is what can i do to resolve this issue if the php ini does have the correct settings but the install says otherwise?
Well Magento 2.1.11 does not support PHP 5.6.31, but only from 5.6.4 and upper.
Have a look here.
So, try first running
which php
to see which version it is trying to use, then either you can uninstall the 5.6 version and (better) use the php7 version, or be sure it is using the proper one.
Hope it helps.
I'm trying to use PHP's intl extension to convert amount into words. For example,
1450 -> One Thousand Four Hundred and Fifty
I'm using Laravel 5.4 that runs on XAMPP 3.2.2 server with PHP 5.6.24.
As mentioned in similar questions, I've already enabled the intl PHP extension by uncommenting the line as extension=ext/php_intl.dll in PHP.ini file and restarted my server after.
$inWords = new \NumberFormatter('en', \NumberFormatter::SPELLOUT);
echo $inWords->format(1450);
yields the error:
FatalErrorException: Class 'NumberFormatter' not found
I'm guessing this doesn't have anything to do with Laravel but PHP. Anyone know the solution to the problem? Thanks for your time.
You have to enable the extension in your php.ini by uncommenting the line
;extension=php_intl.dll
You need to use
use \NumberFormatter;
At controller
I have developed a web app that was running just fine. I have used PDO to accessing MySql.
But after upgrading to new version of Xampp now it is giving a variety of errors like for example: Fatal error: Call to a member function query() on string in C:\xampp\htdocs\web2print\includes\database-abstract.php on line 43
Originally I was using Xampp 1.8.1 and I have upgraded to version 5.6.3.
What must be the problem?
Thanks for your suggestions.
I have found the solution to my problem.
Let me try and explain as to what I have done to solve it:
I was including all related PHP modules using statement like this:
require_once "includes\database-abstract.php";
After changing all such statements to:
require_once dirname(__FILE__).DIRECTORY_SEPARATOR."database-abstract.php";
Solved the problem!
So there was not problem in the database-abstract.php file code as it was working perfectly for a year in older version of Xampp. The actual problems started occurring after upgrading Xampp to a newer version.
Hope this will help someone.
Yogi Yang
Is anyone know the Yaf Framework ?
I tried to run their sample code from the site and I got the error
Fatal error: Class 'Yaf_Application' not found.
I used the version 2.2.9 , I downloaded the binaries php_yaf-2.2.9-x86-5.4.x-nts-nodebug.dll
as extension of my PHP 5.4.3 and activated the extension.
I put , as suggested, yaf.use_namespace = 0 without success.
Thank you for your help
I have also faced same problem, after some google, I am able to fix this issue.
If you ae using wamp and Win32 means, in php.ini add the following line after extension=php_yaf.dll
yaf.use_spl_autoload=1
yaf.use_namespace=1
I found that my dll does not run on 64bit operating system
I have installed wampserver on my pc. I unzipped the cake php installation files in the "www" folder of wampserver. Now, when I try to run- "http://localhost/cakephp", I get a whole list of errors along with the cake php getting started page. Here are some of the errors:
Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\inflector.php on line 131
Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 136
Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 226
Deprecated: Assigning the return value of new by reference is deprecated in
D:\wamp\www\cakephp\cake\libs\configure.php on line 906
How do I fix this? I got similar errors for codeignite.
Which version of PHP are you running ?
To get E_DEPRECATED errors, it must be PHP 5.3 (which is quite recent) -- and I think the last version of WampServer uses this one.
See :
Predefined Constants
PHP 5.3.0 Release Announcement
As it's pretty recent and brought lots of new stuff, you might run into some kind of troubels (you actually did) with PHP 5.3.... Especially if the software you used is not compatible with it yet.
You might want to downgrade to the previous version of WampServer...
Or you could try lowering the error_reporting level (see also error_reporting), to not get those warnings.
But if you are getting those, you'll probably run into other problems as well...
Actually, after a rapid search into CakePHP's Trac, I found at least those :
Ticket #6026 : php 5.3 needs error_reporting(E_ALL & ~E_DEPRECATED);
Ticket #6500 : PHP 5.3 incompatibility
None of those is solved... So it seems CakePHP is really not ready for PHP 5.3... (It's probably not the only Framework in this situation btw -- Zend Framework v 1.9 which went out couple of days ago is the first version that officially supports PHP 5.3, for instance)
If you want to work with CakePHP, so, you'll probably have to use PHP 5.2.x (like 5.2.9 or 5.2.10).
You're actually not the only one in your situation, it seems... Too bad, as there are pretty nice things in PHP 5.3...
hi I faced the same problem. I have easyphp installed and the latest easyphp is also using php version 5.3. I downloaded cakephp stable version : Release: 1.2.4.8284 Stable. When i opened the web page, i also got the same 'depricated' notices. I also tried mangling with the 'error_reporting' section with no luck.
As I didn't want to downgrade my php 5.3 to an earlier version, I tried CakePHP 1.3-dev. And the problem was fixed.
I am also having the same problem.....I downgraded wamp5 2 to wamp 1.6.0...Now its working perfect
I had similar issue and I installed the 1.3.0-beta and the problem went away...
e
I tried one solution given by Pascal:
https://trac.cakephp.org/ticket/6026
applied this patch and in my case this helped. Thx
I had also same problem but I got resolve by changing in httpd.conf and php.ini
My changes are here-
in httpd.conf
replace
#LoadModule rewrite_module modules/mod_rewrite.so
to
LoadModule rewrite_module modules/mod_rewrite.so
and in tab Directory "{yourdirectoryname}:/wamp/www/">
replace
Order Deny,Allow
Deny from all
to
Order Allow,Deny
Allow from all
in php.ini
make curl ext on. there is no need to run but you should do :)
extension=php_curl.dll
My server and php configuration was
Apache Version : 2.2.17, PHP Version : 5.3.4