Plugin Author
Malcolm
(@malcolm-oph)
What version of StageShow are you using, and what browser type, version on what platform are you using to view the Box-Office page?
The seating plan is sent to the browser with all the seats coloured yellow, and then a Javascript/JQuery Script running on the browser changes the seats to Green or Red as required. There was a compatibility isue with this Script on earlier versions of IE and some versions of Safari, that is fixed in StageShow version 5.0.4, so update to this version if you haven’t already done so, and re-test.
Is you seating plan template created by StageShow, or is it a custom template that you have created. If it is a custom template, try one created by StageShow first.
The Seating Plans rely on the Javascript files being loaded correctly, so it is worth while checking that these are loading OK.
It looks like your site on a “public” server (i.e. I can see it), could you make your Box-Office page public and give me the URL … either here or via the contact page on my website here? I’ll then have a look myself.
Hi Malcolm
Here is the link to my box office page.
http://capa.events/terms-and-conditions/
I have updated to version 5.0.4 and it hasn’t solved the issue.
Im using Safari Version 8.0.5.
Thanks
Plugin Author
Malcolm
(@malcolm-oph)
Hi Eddie
I can see straight away what the problem is. Take a look at the source of your page, and search for the “StageShowLib_addWindowsLoadHandler(stageshow_OnSeatsLoad)” text in it. This is part of a small section of Javascript which is generated each time the page is loaded, and contains the data on what seats are available. In your case some additional HTML <p> and </p> tags have been added within the script code, which make the Javascript invalid, preventing it from running, with the result that the page does not complete loading.
This is a very similar situation to that experienced by maduranganawarathna. My first suspicion would be another plugin, but you have already tried deactivating all of them, so it’s a bit of a mystery.
Can you please give me a complete list of the plugins you have loaded, which are activated and the theme you are using and I’ll try and recreate the same setup.
Malcolm
Hi Malcom
Thank you for your fast response.
Theme: Osaka
Plugins:
StageShowGold
Ditty News Ticker
NextGEN Gallery by Photocrati
Thanks
Eddie
Plugin Author
Malcolm
(@malcolm-oph)
Hi Eddie
I may have a solution … well more of a bodge really.
The rogue HTML is only added at the start at end of the lines, so if I output each “chunk” of Javascript on one line, it can’t break my code, so my plugin stops looking bad, and you get a working site … almost.
Almost … because it’s not ideal because there is still something unexpected going on, which will cause the formatting of the page to be different from what was desired.
I’ll do a beta release with the necessary changes and send an update for you to try by email.
Malcolm
Hi Malcolm
Ok
Thanks again for you’re speedy response.
Thanks
Eddie
Hi Malcolm
That seems to have fixed the problem without changing the look of the page.
Thank you so much for all your help and your fast and professional response, its much appreciated.
Regards
Eddie
Plugin Author
Malcolm
(@malcolm-oph)
Finally got to the bottom of this!
The Osaka theme has a “Enable text auto fromating” option (the themes typo, not mine!), which uses the WordPress Core ‘wpautop’ function to filter the page content. Unfortunately, this function attempts to format script and style content within the page, breaking the StageShow page in the process. De-selecting this option fixes the problem.
Other theme may use the same function, so my workaround fix will remain in place, and helps to make my plugin code more resilient.
There is a bug report for this problem dating back a number of years, but it does look like it still is a problem (tested with WP 4.2.2)