Deprecated code errors!
Help! Our host service did a php upgrade, and now I have "deprecated code" errors on every page!
this is one of the pages, and the attachment is the code.
http://starfireswords.com/products/steel/ld4.php
Help! Our host service did a php upgrade, and now I have "deprecated code" errors on every page!
this is one of the pages, and the attachment is the code.
http://starfireswords.com/products/steel/ld4.php
These are just warnings that won't effect the overall functionality of the page.
If you receive errors regarding function deprecation, the following two methods can tell PHP to simply stop mentioning deprecated functions or coding:
You can add the following line to your php.ini file:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
Or you can add the following line to any page that shows the message:
<?php
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
?>
Where in the code would I place this, on the pages? (As I don't seem to have an .ini page, at this point.)
You can contact your hosting provider about how to update your php.ini file to remove deprecated messages and I'm sure they can help.
You can add the php anywhere on the page above where the message occurs. The first line of code on the page would work.
Well, that got the pages working again, but...
One more problem, that did not occur before this blasted update:
When I try to add something to the cart, I get this error:
"Warning: Cannot modify header information - headers already sent by (output started at /home8/starfir3/public_html/products/steel/barb.php:3) in /home8/starfir3/public_html/products/steel/barb.php on line 99"
and a blank page. How do I make the cart active again?
There is probably a blank line on line 3 of barb.php. You probably just have to delete that. If you attached the page with the error I could be more certain in my diagnosis.
Your first three lines of code are:
<?php
error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
?><br>
You can't have a <br> tag above the <html> tag. You just have to delete that.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.