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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5 beta4 Extension PHP overrides core PHP problem
Pages: [1]

Author Topic: 4.5 beta4 Extension PHP overrides core PHP problem  (Read 389 times)

Guanhuan

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
4.5 beta4 Extension PHP overrides core PHP problem
August 04, 2014, 04:52:42 am
I am trying to build the compatibility of one CiviCRM 4.4 extension for version 4.5.
Some of the PHP files which successfully override the Core PHP files in 4.4 don't work properly in 4.5.
Please advice if there is any structure change which can cause this.

Details:
Registration.php under CRM/Event/Form/ cannot override;
Register.php under CRM/Event/Form/Registration can override, but when I submit this page an "reclare class" error popup (see attachments), rename either core Register.php or extension Register.php works.

Please find the tree structure of the extension in attachments.

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: 4.5 beta4 Extension PHP overrides core PHP problem
August 04, 2014, 03:25:26 pm
Perhaps this explains what you're seeing - http://forum.civicrm.org/index.php/topic,33702.0.html

Guanhuan

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.24
  • PHP version: 5.3.13
Re: 4.5 beta4 Extension PHP overrides core PHP problem
August 06, 2014, 02:41:43 am
Quote from: ken on August 04, 2014, 03:25:26 pm
Perhaps this explains what you're seeing - http://forum.civicrm.org/index.php/topic,33702.0.html

Thanks, I think this might be the bit which cause the problem.
Look forward to see the solution or information released in the near future.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.5 Release Testing »
  • 4.5 beta4 Extension PHP overrides core PHP problem

This forum was archived on 2017-11-26.