close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Deprecated code errors!

Thread began 12/17/2018 9:51 am by Wenchofkrf | Last modified 12/17/2018 2:12 pm by Ray Borduin | 46 views | 9 replies |

Wenchofkrf

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

Attached Files
ld4.php
Sign in to reply to this post

Ray BorduinWebAssist

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:
<?php

error_reporting
(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
?>
Sign in to reply to this post

Wenchofkrf

Where in the code would I place this, on the pages? (As I don't seem to have an .ini page, at this point.)

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

Wenchofkrf

Thank you!

Sign in to reply to this post

Wenchofkrf

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?

Sign in to reply to this post

Ray BorduinWebAssist

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.

Sign in to reply to this post

Wenchofkrf

It seems to be on each page

Attached Files
barb.php
ld4.php
Sign in to reply to this post

Ray BorduinWebAssist

Your first three lines of code are:

php:
<?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.

Sign in to reply to this post

Wenchofkrf

Thank you

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...