Solved the Problem
replaced $this->pluginPath
with $pluginPath
resolved the error message
Pergunta
Hello I need to fetch the ticket iframe from Eventbrite to a wordpress page. I purchased the ticket plugin and is getting PHP Fatal error: Using $this when not in object context for the following Function
for the following function for inlcude line
public function displayEventBriteTicketForm() {
include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'hooks', 'eventbrite', $this->pluginPath ) );
include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'modules', 'eventbrite', $this->pluginPath ) );
}
Help
Solução
Solved the Problem
replaced $this->pluginPath
with $pluginPath
resolved the error message