PDA

View Full Version : "Undefined" errors



one_stop
06-11-2005, 11:48 AM
I'm getting a number of errors on one of my 2.0.1 (http://www.milleniumdevgroup.com/home/page-News%20&%20Weather-9.html) test pages.

I used the following tag on the wysiwyg page: <!--<?include '../weather/weather.php';?>-->. I used the same tag in 1.1.5b without the HTML comments.

The corresponding page in 1.1.5b (http://www.milleniumdevgroup.com/or/news.php) works fine.

Any pointers would be appreciated.

greengiant
06-11-2005, 12:00 PM
It is becuase we have error reporting turned up higher in 2.0, so you are seeing the notice errors from the weather script you are including. You can turn the error reporting back down, by changing you line to the following.


<!--<?php error_reporting(E_ALL ^E_NOTICE);nclude '../weather/weather.php';?>-->

one_stop
06-11-2005, 12:09 PM
Thanks. That fix turned off the notices, but data is not displayed correctly.

DonnaNJ
12-21-2007, 09:44 AM
It is becuase we have error reporting turned up higher in 2.0, so you are seeing the notice errors from the weather script you are including. You can turn the error reporting back down, by changing you line to the following.


<!--<?php error_reporting(E_ALL ^E_NOTICE);nclude '../weather/weather.php';?>-->


I'm having trouble with these errors on the search page ...

I tried the above and it's not working ... can you explain how I can turn the error reporting off ?

thanks

Donna

jonyzinho
12-21-2007, 09:50 AM
I'm having trouble with these errors on the search page ...

I tried the above and it's not working ... can you explain how I can turn the error reporting off ?

thanks

Donna

<!--<?php error_reporting(E_ALL ^E_NOTICE);nclude '../weather/weather.php';?>-->

replace by

<!--<?php error_reporting(E_ALL ^E_NOTICE);include '../weather/weather.php';?>-->

DonnaNJ
12-21-2007, 10:05 AM
<!--<?php error_reporting(E_ALL ^E_NOTICE);nclude '../weather/weather.php';?>-->

replace by

<!--<?php error_reporting(E_ALL ^E_NOTICE);include '../weather/weather.php';?>-->


First your lines look exactly the same to me

Second I'm not running the weather thing ... but I'm getting the same type of error.

Third - WHERE do I put this line ? I put it in the search_results page but it didn't do anything. I don't understand where it's even coming from - since this page doesn't even call the Addon !

Here is the link:
http://www.preferredchoicearizona.com/index.php?mls%5B%5D=&LISTPRICE-min=100000&LISTPRICE-max=300000&city=&beds-min=&BATHSTOTAL-min=&SQFTTOTAL-min=&LEVEL-min=&POOLPRIVATE=&GARAGEDESC=&action=searchresults&pclass%5B%5D=

thanks

Donna

2let2sell2buy
12-21-2007, 10:39 AM
<!--<?php error_reporting(E_ALL ^E_NOTICE);nclude '../weather/weather.php';?>-->

replace by

<!--<?php error_reporting(E_ALL ^E_NOTICE);include '../weather/weather.php';?>-->

you missed the 'i' off include...