CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error in file path for Custom Badge
Pages: [1]

Author Topic: Error in file path for Custom Badge  (Read 552 times)

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Error in file path for Custom Badge
September 05, 2011, 09:08:09 pm
I am getting the following error when trying to print my custom badges.

Fatal error: Class 'CRM_Event_Badge' not found in /home/play123/public_htmlsites/allcivicrm_php/CRM/Event/Badge/PAlogo.php on line 3

Note that the forward slashes are missing in this php message printed to the screen. However I have doubled checked my file path under options>Directories and they are correct for both the custom templates and custom php files, so I do not know why these forward slashes appear missing in the php message. 

I also have the correct class name on line 3 of my custom php file for over-riding the badge layout. Line 3 of my file custom file titled PAlogo.php is

class CRM_Event_Badge_PAlogo extends CRM_Event_Badge {

According to instructions on this wiki page:

http://wiki.civicrm.org/confluence/display/CRMDOC40/Name+Badge+Administration,+Customization

Can anyone advise on why I am getting this incorrect file path which prevents my custom badges from printing,

Many thanks - Renaee.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Error in file path for Custom Badge
September 06, 2011, 07:11:26 am

the wiki was missing a require statement. i fixed the wiki page, can u add the necessary statements and give it another shot

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

nae

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
    • Play Australia
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7.31
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Error in file path for Custom Badge
September 06, 2011, 10:22:59 pm
Thankyou v much, this has fixed the problem.
Renaee.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Error in file path for Custom Badge

This forum was archived on 2017-11-26.