Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

PHP Errors
Old 02-12-2011, 05:48 PM   #1
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default PHP Errors

My site operates with a CMS which has recently been extensively upgraded.

To ensure we trap all errors I have been looking at the system log which is consistently reporting

1:
Quote:
notice: Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED' - File:MYSITE/calendar/functions/popup.php
(line 8)
and

2:
Quote:
notice: Use of undefined constant markDates - assumed
'markDates' - File:MYSITE/calendar/functions/dateMarking.php
(line 27)
The errors may have existed before recent site upgrades but there was no system log ... on public side all appears to be functioning correctly.

Martyn
 

Old 02-12-2011, 07:06 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

As found from a comment on php.net

Quote:
Note that constant name must always be quoted when defined.

e.g.
define('MY_CONST','blah') - correct
define(MY_CONST,'blah') - incorrect

The following error message also indicates this fact:
Notice: Use of undefined constant MY_CONST - assumed 'MY_CONST' in included_script.php on line 5

Note the error message gives you some incorrect information. 'MY_CONST' (with quotes) doesn't actually exist anywhere in your code. The error _is_ that you didn't quote the constant when you defined it in the 'assumed' file.
It would seem that those two entries would need to be fixed in the code. As it is only a "notice", the code will still work without issues, however it can be fixed to remove the notice.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-13-2011, 06:35 AM   #3
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default

Quote:
Originally Posted by ve9gra View Post
It would seem that those two entries would need to be fixed in the code. As it is only a "notice", the code will still work without issues, however it can be fixed to remove the notice.
So is there some way I can fix this code error or do I need to wait for a patch? ... whilst the public side is working the server is seeking to implement a command and failing, which (albeit nanoseconds and bits) cumulatively adds payload to the server and, more to the point, is clogging up my system log.

I had a quick look into the most obvious (to me anyway) files and couldnt find the call



Martyn
 

Old 02-13-2011, 09:49 AM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

Are you using the most recent version of the calendar or an older version?
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-13-2011, 10:49 AM   #5
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default

Quote:
Originally Posted by Brian View Post
Are you using the most recent version of the calendar or an older version?
System reports "Version: 6.3.28"
 

Old 02-14-2011, 07:10 AM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Current version is 6.4.1.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-14-2011, 09:06 AM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

Upgrading should fix this so you are compatible with later releases of PHP.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-14-2011, 01:11 PM   #8
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default

Well I upgraded as suggested, cleared the error log and then visited the calendar. The error log immediately threw out the following

Quote:
notice: Use of undefined constant markDates - assumed 'markDates' - File: MYSITE/calendar/functions/dateMarking.php (line 27)
Quote:
notice: Use of undefined constant checkCat - assumed 'checkCat' - File: MYSITE/calendar/functions/dateMarking.php (line 349)
Quote:
notice: Use of undefined constant epcCatSortFunction - assumed 'epcCatSortFunction' - File: MYSITE/calendar/functions/dateMarking.php (line 376)
Quote:
notice: Use of undefined constant category - assumed 'category' - File: MYSITE/calendar/functions/dateMarking.php (line 547)
Quote:
notice: Undefined offset: 1 - File: MYSITE/calendar/functions/dateMarking.php (line 362)


Martyn
 

Old 02-18-2011, 12:08 PM   #9
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default

I disapprove of "bumping" but, looking at replies on other threads, fear this issue may have been overlooked ~ it is still an issue

Martyn
 

Old 02-18-2011, 12:14 PM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

These errors will not show in a normal environment and do not cause any issues with using the calendar.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-18-2011, 06:02 PM   #11
martynpinches
Calendar User
 
martynpinches is offline
Join Date: Dec 2010
Posts: 14
Default

Quote:
Originally Posted by Brian View Post
These errors will not show in a normal environment and do not cause any issues with using the calendar.
Thanks for the reply ... the impact on the public side is not in dispute. However the calendar is generating so many error reports into the system log that I have no alternative other than to disable it ... defeating its purpose.

Martyn
 

Old 02-18-2011, 06:21 PM   #12
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,887
Default

It would seem your error level is set to a production environment instead of the level it would need to be for a public server. If you change your reporting level, you would not see these errors.
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 02-18-2011, 08:38 PM   #13
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Find the appropriate section directly from PHP:

http://www.php.net/manual/en/errorfu...rror-reporting

Quote:
Quote:
In PHP 4 and PHP 5 the default value is E_ALL & ~E_NOTICE. This setting does not show E_NOTICE level errors. You may want to show them during development.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed, working, then PHP include errors DavesPlanet Installation / Upgrade Questions 4 09-10-2008 08:58 AM
Errors after upgrade to PHP 5.1.6 bob777 General Support 1 10-29-2006 01:56 AM
Sudden PHP errors Daryn General Support 3 09-14-2006 03:35 PM
PHP Errors anthony General Support 2 02-07-2005 01:10 PM
{Fixed} Problem adding an event ucb General Support 23 11-19-2003 06:31 PM



All times are GMT -4. The time now is 01:25 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |