Running WP Event Ticketing with Thesis
Posted on November 27, 2010
UPDATED 12/1/2010: Version 1.1.2 was released this evening and fixes the conflict with Thesis. Instead of editing the files manually, you can download the latest version instead.
We’ve had a few reports of our plugin WP Event Ticketing not displaying the Ticketing menu on the admin dashboard. The common denominator for the reports was that they were all using the Thesis theme.
After some troubleshooting through the code, I found a conflict that I believe to be a bug in the way WordPress handles the addition of new navigational menu items. I’ve reported the conflict to the WordPress development team, but it’s not something that will likely be fixed right away. So until then, we’ve come up with a simple workaround. We will include this update in our next release, but until then, here is the workaround.
1. In a text editor, open the file named ticketing.php
2. Find the line that looks like this:
add_menu_page('Tickets', 'Tickets', 'activate_plugins', 'eventticketing', array("eventTicketingSystem", "ticketReporting"), WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)) . '/images/calendar_full.png',30);
3. Replace that line with the following:
add_menu_page('Tickets', 'Tickets', 'activate_plugins', 'eventticketing', array("eventTicketingSystem", "ticketReporting"), WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)) . '/images/calendar_full.png',29);
Once you make this change, “Tickets” should now show up right before the “Thesis” menu item.
As always, if you run in to any issues with the plugin, we urge you to post it to the WP Event Ticketing Support Forum. If you’d like to be informed when we release new software updates, be sure to sign up for the 9seeds Newsletter.
Hey guys, we've had some issues with this as well. The numbering system for menus can cause a lot of problems. If the above solution doesn't work, or makes something else disappear, try omitting the last parameter like so: add_menu_page('Tickets', 'Tickets', 'activate_plugins', 'eventticketing', array("eventTicketingSystem", "ticketReporting"), WP_PLUGIN_URL . '/' . plugin_basename(dirname(__FILE__)) . '/images/calendar_full.png);
Hey Brandon, thanks for the tip. Yes, you can just remove the final parameter. The only thing to note is that if you do, the Tickets menu item will show up at the very bottom of the menu.