Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Notice: Use of undefined constant

Notice: Use of undefined constant 13 Sep 2013 09:30 #11073

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Hi, I noticed the other day that an error appears in all menu items when you set the "Global Configuration" > "Server" > "Server Settings" > "Error Reporting" to maximum. The error is:

( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Use of undefined constant COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM - assumed 'COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM' in C:\wamp\www\course_booking\TESTER\libraries\joomla\form\helper.php on line 118
Call Stack
# Time Memory Function Location
1 0.0006 137216 {main}( ) ..\index.php:0
2 0.0892 3281752 JAdministrator->dispatch( ) ..\index.php:70
3 0.0901 3318696 JComponentHelper::renderComponent( ) ..\application.php:165
4 0.0958 3364808 JComponentHelper::executeComponent( ) ..\helper.php:335
5 0.0961 3385720 require_once( 'C:\wamp\www\course_booking\TESTER\administrator\components\com_menus\menus.php' ) ..\helper.php:355
6 0.0999 3568280 JControllerLegacy->execute( ) ..\menus.php:18
7 0.0999 3568336 MenusController->display( ) ..\legacy.php:722
8 0.1030 3641208 JControllerLegacy->display( ) ..\controller.php:58
9 0.1165 4322160 MenusViewItem->display( ) ..\legacy.php:685
10 0.1720 5270304 JViewLegacy->display( ) ..\view.html.php:46
11 0.1720 5270328 JViewLegacy->loadTemplate( ) ..\legacy.php:211
12 0.1738 5341368 include( 'C:\wamp\www\course_booking\TESTER\administrator\components\com_menus\views\item\tmpl\edit.php' ) ..\legacy.php:665
13 0.4661 6242184 JForm->getFieldset( ) ..\edit.php:122
14 0.4663 6243416 JForm->loadField( ) ..\form.php:367
15 0.4663 6243512 JForm->loadFieldType( ) ..\form.php:1670
16 0.4663 6243544 JFormHelper::loadFieldType( ) ..\form.php:1729
17 0.4663 6243592 JFormHelper::loadType( ) ..\helper.php:70

Whilst it doesn't seem to affect any processes that goes on on the page it looks untidy and we have a client who is complaining about it. is there anyway to fix this?

Cheers Cefnllys
The administrator has disabled public write access.

Notice: Use of undefined constant 19 Sep 2013 12:38 #11124

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Can you make a search in your component to know where it is used please ?
Coding is now a piece of cake
The administrator has disabled public write access.

Notice: Use of undefined constant 19 Sep 2013 13:48 #11130

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
Here are my search results:

Searching 845 files for "COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM"

I:\Work Stuff\The Latest Components\CourseBooking\new\com_coursebooking\admin\language\en-GB.com_coursebooking.sys.ini:
2 COURSEBOOKING="Course Booking"
3 COURSEBOOKING_DATA_PICKER_SELECT_CATEGORY="Select Category"
4: COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM="Select CB Area item"
5 COURSEBOOKING_DATA_PICKER_SELECT_CB_BOOKINGS_ITEM="Select CB Bookings item"
6 COURSEBOOKING_DATA_PICKER_SELECT_CB_CATEGORIES_ITEM="Select CB Categories item"

I:\Work Stuff\The Latest Components\CourseBooking\new\com_coursebooking\admin\models\fields\modal\cbareaitem.php:
43 * @var string
44 */
45: protected $_nullLabel = COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM;
46
47 /**

2 matches across 2 files
Last Edit: 19 Sep 2013 13:48 by cefnllys.
The administrator has disabled public write access.

Notice: Use of undefined constant 19 Sep 2013 14:36 #11131

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Quote it.
Coding is now a piece of cake
The administrator has disabled public write access.

Notice: Use of undefined constant 20 Sep 2013 08:01 #11135

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
What do you mean? please explain

com_coursebooking\admin\language\en-GB.com_coursebooking.sys.ini

com_coursebooking\admin\models\fields\modal\cbareaitem.php
Last Edit: 20 Sep 2013 08:02 by cefnllys.
The administrator has disabled public write access.

Notice: Use of undefined constant 20 Sep 2013 10:17 #11136

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
In ..\admin\models\fields\modal\cbareaitem.php:

Replace
protected $_nullLabel = COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM;

per
protected $_nullLabel = 'COURSEBOOKING_DATA_PICKER_SELECT_CB_AREA_ITEM';
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: cefnllys

Notice: Use of undefined constant 23 Sep 2013 17:46 #11152

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed since last release version 2.6
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.079 seconds

Get Started