pmonger
Forum Replies Created
-
is it next week yet, or should i try installing one of the php versions you recommend?
thank you for your work on this.
thanks for working on this. unfortunately the problem still persists. i updated the site to wp user stylesheet switcher version 1.6.1 and the problem i described above recurred. i commented out the lines
if (!session_id()) { session_start(); }in wp_user_stylesheet_switcher.php and the events manager pro shopping cart now properly maintains the information about the booking.
Hi, I am working with edmonds_bob on this project and I am the one who found the problem. I did not see any error messages. the behaviour was that bookings were not being preserved. When you booked a ticket you got the “Your booking was added to your shopping cart.” message. But if you then looked at the shopping cart the message was “You have not booked any events yet. Your cart is empty.”
I deactivated all the other plugins and added them back in until the problem recurred, and that happened when i reactivated WP Stylesheet Switcher.
i searched the support forum and found another user who had the same problem with
yet another plugin, called Paid Memberships Pro. That user made the problem go away by commenting out the session_start test. So I tried the same fix in WP Stylesheet Switcher and it worked.I have also contacted the Events Manager Pro developers about this. Please note the response below from their chief developer, Marcus Sykes (support@wp-events-plugin.com)
My opinion is that the plugin is doing something wrong there…. I’m not sure what because those lines I don’t think are the root cause of the problem, my guess is that somewhere else in their code, they’re wiping or manipulating session variables before we get a chance to execute our code. The logic behind my assumption is if you remove the session_start() lines in their plugin, they’re trying to modify non-existent session variables which are then created properly when we run session_start and our data remains intact.
Furthermore, see the PHP docs – http://php.net/manual/en/function.session-start.php – calling session_start() twice should not cause loss of session data which is also why I’m guessing it’s something else.
You need to contact the plugin developer about it and feel free to paste this to them. I’m not saying I’m 100% right here but there’s various other plugins that work fine with EM and use sessions, so it must be something else…. If they disagree with me I’m happy to liaise with them directly and determine who’s truly at fault.
Hope that helps, sorry I couldn’t give a better solution here!
yes, i am using multiple bookings mode
thanks. i am actually using events manager pro. does that matter re where i should make the change?
oops, one probem with this solution. in fact i need to have TWO kinds of tickets for the non-phone bookings, and guest users are only allowed to book ONE ticket in total. i was ensuring this by setting the Maximum Spaces Per Booking (under Event Options) to 1.
but of course i can’t do that if i want the logged in users to be able to book more than one ticket.
where can i interrupt the booking validation process to check if the user is logged in, and if not, to generate an error if the user has selected both types of ticket?
thank you (again)
of course! that would work just fine. thanks for your help.
that’s the same thing that happened to me. i had this problem on a test server but when i moved to a new server the problem went away.
yes, exactly. when individuals buy a ticket online they are limited to buy one ticket for themselves. but the events are also offered to organizations that want to send several people.
so for online guest visitors i need it limited to one ticket, and for tickets booked through wp-admin i would need that limit removed.
is that possible? (ie is that an even bigger can of worms than incrementing wp_em_bookings.booking_spaces?)
Thanks for your reply. I did think about trying to add them manually, but don’t know what to do about one problem, viz:
– the online bookings are limited to 1 ticket per person. Would I be able to bypass that restriction with a filter as well? The telephone bookings will be for multiple people.
Forum: Plugins
In reply to: filtering WP Fullcalendar by event categorieswell that was painful. the actual problem was that my calendar page was the default events page so the calendar i was trying to display was overwritten. i finally noticed the warning about that and replacing the events page made the calendar work
i added
publish_events
publish_recurring_events
publish_locationsand submitted a new event. there as no message, it just displayed the event form again. of course the event did show up immediately on the calendar, and the administrator email got a message saying an event has been published.
in my case the user has the Subscriber role, and these capabilities ONLY:
delete_events
edit_events
read_private_events
delete_recurring_events
edit_recurring_events
edit_locations
read_private_locationswell, pantspress, now it seems that your case behaves the same as mine. that should be a good thing in that it makes the problem simpler. still i don’t know what to do next.
Forum: Plugins
In reply to: Events Manager multiple submission forms and calendarsIn my case this was easy! I just created two categories of events, and the “view calendar” pages filter by category id, eg [fullcalendar type=”event” category=”2″]