Forums / Extensions / Problem when creating a class for audio extension

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Problem when creating a class for audio extension

Author Message

Thirunavukkrasu Arumugam

Monday 16 February 2009 9:28:53 pm

Hi I am new to Exponential..

when i try to create a class for audio extension.. it gives the following error..

Anybody please help me to activate the audio extension

Thanking you
Arasu
Fatal error: Cannot make static method eZPersistentObject::definition() non static in class Audio in /home/chipkidz/public_html/ezpub/extension/audio/datatypes/audio/audio.php on line 179
Fatal error: Exponential did not finish its request

The execution of Exponential was abruptly ended, the debug output is present below.

Łukasz Serwatka

Tuesday 17 February 2009 12:13:05 am

Hi,

I don't know a Audio extension, but error is very clear. eZPersistentObject::definition() is a static method. See http://www.php.net/manual/en/language.oop5.static.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog