Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Can you make a search in your component to know where it is used please ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

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

Please Log in or Create an account to join the conversation.

Last edit: by cefnllys.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Quote it.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

What do you mean? please explain

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

com_coursebooking\admin\models\fields\modal\cbareaitem.php

Please Log in or Create an account to join the conversation.

Last edit: by cefnllys.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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 following user(s) said Thank You: cefnllys

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed since last release version 2.6
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.129 seconds

For starters it's just so easy to design an app in a way that I'm used to i.e. database first then views followed by customization. The fork system is pure brilliance from a developer standpoint as I can override things and still add and update my projects with minimal effort! Truly amazing to be able to build components in Joomla using incremental refinement without having to do everything by hand. Thanks for the great tool! I am so much more productive now than ever and I can't imagine building components any other way!!!!
Dave (Forum)

Get Started