Dealing with PHP 5.3 Deprecated Errors: Difference between revisions

From Acenet Knowledgebase
Jump to navigation Jump to search
test
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html> Acenet takes pride in providing you with the latest service and application versions available. This allows us to ensure the best security, performance, functionality, and features available. With this in mind, we are upgrading the PHP version on our shared servers from 5.2.x to 5.3.x. <br /><br />Moving to 5.3 is a major change in PHP when it comes to backwards compatibility. Our team has reviewed most of the common scripts and the change should be unnoticeable when using them. If you are unsure if the script you have is compatible with PHP 5.3, you will want to contact the script developer.  
Acenet takes pride in providing you with the latest service and application versions available. This allows us to ensure the best security, performance, functionality, and features available. With this in mind, we are upgrading the PHP version on our shared servers from 5.2.x to 5.3.x.
For older scripts, you may see some errors come up on your site that were not present before the PHP upgrade. We suggest to first upgrade your script to its most recent release. Upgrading your script to its latest version will likely resolve any errors you're receiving as a result of the PHP upgrade. If upgrading your script does not resolve the error(s) you're receiving, you will want to research further into these errors to find their actual cause or you can contact the script developer for assistance.  
 
Moving to 5.3 is a major change in PHP when it comes to backwards compatibility. Our team has reviewed most of the common scripts and the change should be unnoticeable when using them. If you are unsure if the script you have is compatible with PHP 5.3, you will want to contact the script developer.
 
For older scripts, you may see some errors come up on your site that were not present before the PHP upgrade. We suggest to first upgrade your script to its most recent release. Upgrading your script to its latest version will likely resolve any errors you're receiving as a result of the PHP upgrade. If upgrading your script does not resolve the error(s) you're receiving, you will want to research further into these errors to find their actual cause or you can contact the script developer for assistance.  
    
    
Here's a tip:
Here's a tip, you can actually hide the errors being displayed on your site while you're working on resolving them. You can add these lines of code to a custom php.ini file in your account:  
You can actually hide the errors being displayed on your site while you're working on resolving them. You can add these lines of code to a custom php.ini file in your account:  
 
<div class="code_style">error_reporting = E_ALL  and  ~E_NOTICE  and  ~E_DEPRECATED<br />display_errors = Off<br />log_errors = Off</div>
<pre>error_reporting = E_ALL  and  ~E_NOTICE  and  ~E_DEPRECATED
<em>Please note - the lines provided above do not resolve the error(s) you're receiving, they simply hide them on your site.</em>
 
If you're not sure how to create a custom php.ini file, you can view our knowledgebase article on how to do so here:  
display_errors = Off
<a title="How can I change PHP settings?" href="https://esupport.acenet-inc.net/index.php?/Knowledgebase/Article/View/195/50/how-can-i-change-php-settings">How can I change PHP settings?</a> </html> [[Category:PHP]]
 
log_errors = Off</pre>
 
{{note|The lines provided above do not resolve the error(s) you're receiving, they simply hide them on your site.}}
 
If you're not sure how to create a custom php.ini file, you can view our knowledgebase article on how to do so here:  
 
[[How can I change PHP settings?]]
 
[[Category:PHP]]

Latest revision as of 08:22, 5 October 2012

Acenet takes pride in providing you with the latest service and application versions available. This allows us to ensure the best security, performance, functionality, and features available. With this in mind, we are upgrading the PHP version on our shared servers from 5.2.x to 5.3.x.

Moving to 5.3 is a major change in PHP when it comes to backwards compatibility. Our team has reviewed most of the common scripts and the change should be unnoticeable when using them. If you are unsure if the script you have is compatible with PHP 5.3, you will want to contact the script developer.

For older scripts, you may see some errors come up on your site that were not present before the PHP upgrade. We suggest to first upgrade your script to its most recent release. Upgrading your script to its latest version will likely resolve any errors you're receiving as a result of the PHP upgrade. If upgrading your script does not resolve the error(s) you're receiving, you will want to research further into these errors to find their actual cause or you can contact the script developer for assistance.

Here's a tip, you can actually hide the errors being displayed on your site while you're working on resolving them. You can add these lines of code to a custom php.ini file in your account:

error_reporting = E_ALL  and  ~E_NOTICE  and  ~E_DEPRECATED

display_errors = Off

log_errors = Off
The lines provided above do not resolve the error(s) you're receiving, they simply hide them on your site.

If you're not sure how to create a custom php.ini file, you can view our knowledgebase article on how to do so here:

How can I change PHP settings?