Good morning
When upgrading, I see a warning about disabling E-DEPRECATED by editing the php.ini file.
Where is this located? I did a search but no file found.
Thanks
[Solved]Need to disable E_DEPRECATED
[Solved]Need to disable E_DEPRECATED
Last edited by jasnick on Thu Sep 26, 2013 12:25 pm, edited 1 time in total.
Re: Need to disable E_DEPRECATED
Depending on what permissions you have on the server you may not be able to find/edit that file at all. You probably can only edit that file when it's your own server or vps.
You can find the file location by creating and uploading a .php file with
When 'visiting' that file with your browser you get a lot of useful information about the php installation/configuration/settings.
There are other options to disable deprecated messages:
.htaccess http://stackoverflow.com/questions/5628 ... -error-log
extra php code in config.php http://forum.cmsmadesimple.org/viewtopi ... 86#p298386
You can find the file location by creating and uploading a .php file with
Code: Select all
<?php phpinfo() ?>
There are other options to disable deprecated messages:
.htaccess http://stackoverflow.com/questions/5628 ... -error-log
extra php code in config.php http://forum.cmsmadesimple.org/viewtopi ... 86#p298386
Re: Need to disable E_DEPRECATED
Check default .htaccess file. Unquote the lines
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Need to disable E_DEPRECATED
Thanks velden and Rolf
I uncommented the relevant lines in .htaccess on a site and then couldn't load Admin - I got an internal server error message. I had to comment them again to load Admin. Then I added php_flag display_errors off to .htaccess - same result.
I really don't know what I am doing
I used to be able to upgrade without all this fuss and having to alter things.
I uncommented the relevant lines in .htaccess on a site and then couldn't load Admin - I got an internal server error message. I had to comment them again to load Admin. Then I added php_flag display_errors off to .htaccess - same result.
I really don't know what I am doing

I used to be able to upgrade without all this fuss and having to alter things.
Re: Need to disable E_DEPRECATED
Yeah, that's a php issue. The way to disable them also differs from one host to another. Some allow you to have a php.ini with only the directives you want to overwrite on it, placed on the script root (in this case probably the domain's root), others allow the .htaccess directives (apparently your's doesn't). Try the php.ini aproach:jasnick wrote:I used to be able to upgrade without all this fuss and having to alter things.
Code: Select all
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED
display_errors = Off
log_errors = On
HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Need to disable E_DEPRECATED
Thanks Jo - things are a bit more clear now
Thanks

What does this mean exactly? To what file do I add the code?Jo Morg wrote:Try the php.ini aproach
Thanks
Re: Need to disable E_DEPRECATED
On the root folder where CMSMS is instaled, create a php.ini and paste the code from my previous post.jasnick wrote:What does this mean exactly? To what file do I add the code?Jo Morg wrote:Try the php.ini aproach
Thanks
It works on some hosts

HTH
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Need to disable E_DEPRECATED
Thank Jo - I created the php.ini file (with the code) and uploaded it but it didn't work so it looks like I will need to contact the hosting company to sort this out.
Thanks for the help!.
Thanks for the help!.