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

有帮助吗?

解决方案

Solved the Problem

replaced $this->pluginPath with $pluginPath resolved the error message

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top