Posted: November 15, 2013 at 10:19 am
|
Hi, I am on WordPress 3.7.1, EE 3.1.35.2.P. I am aware of these 2 forum posts (https://eventespresso.com/topic/event-espresso-ticketing-plugin-breaking-theme-css/ and https://eventespresso.com/topic/activating-ticketing-addon-messes-up-css/) but they did not help. But it shows me that I’m not the only one with this strange problem! Please, any help is appreciated. This has been driving me insane for quite some time now. |
Hi Chris, We’d need to see the theme code in order to troubleshoot this. Can you send a copy of the theme to support at eventespresso.com? |
|
|
Of course, just sent it. |
Hi Christian, I looked through the theme code and as far as can tell the trouble starts from within the style-custom.php file itself. If you look on line 16 it’s loading up WordPress: require_once($wp_content . 'wp-load.php'); So WordPress itself is loading up a second time. This sets off a chain reaction where plugins that expect WordPress to be loaded up once (like the ticketing add-on) start doing unexpected things. There’s probably a better way to make a custom stylesheet that doesn’t involve bootstrapping WordPress core (it’s already loaded, so now things are loading up twice and fatal errors are being thrown). One way to deal with the specific issue with the ticketing add-on is change one line of code where the ticketing add-on requires its functions.php file. If you open up espresso-ticketing.php and change line 69 to read: require_once(ESPRESSO_TICKETING_FULL_PATH . 'functions.php'); that should help. Normally the full path isn’t required and doesn’t cause issues to require the funcitons.php file by its relative path. However, since WP is getting bootstrapped twice you may find that when you install other plugins that have their own functions.php file you will need to apply a similar change. |
|
|
Worked like a charm! Thanks a lot. |
The support post ‘Ticketing addon breaks custom css’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.