[Plugin: Events Manager] Price and Available From disappear from Event
-
I am using version 4.302 of the Event Manager. I am a newcomer to this plug-in. I think I have found a bug.
I have been able to create new events. If I go back and edit them, I find that the “Price” and “Available From” fields under “Bookings/Registration” have disappeared. Price needs to be re-entered in order to save any edits and so that the visitor to the Events page can make a successful booking.
-
tested it and seems to be working fine on me! can you post the steps that you take which resulted to the bug? Is this a recurring event?
never seen that bug before! could you check your PHP error logs? also, does the date picker pop up? what price do you enter exactly?
Agelonwl,
Here are the steps once signed in as administrator:
1. I added a new event for Nov. 25th (entered Event Name, Event Date, Location, Details).
2. Enabled registration for this event.
3. Entered a price of 0 (it’s a free event and leaving it blank seems to cause it to fail validation), spaces 100, available from Oct. 25th (today) to Nov. 24th, must order between 1 and 1 and entered a description.
4. Clicked “Submit Event”. It was accepted, HOWEVER at this point the Available From date and To date are gone.
5. Clicked on “Edit” in the left menu in order to see all events.
6. Clicked on the new event name to edit it. Price is now gone.WordPress 3.2.1, TEC 4.302, on Win XP using Opera 11.52.
I repeated the above steps on IE 8. The results were the same.
Marcus,
Do I win a prize? ??
You are dealing with a novice here. I have the PHP debug logging turned on (unless there is more than one kind) and this is all it shows for tonight (I’m in Canada’s Eastern time zone and the timestamps on the logs appear to be 4 hours ahead of me). The last three lines appear to be generated when I created my event using IE:
[26-Oct-2011 00:34:31] PHP Notice: Undefined variable: instance_params in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/html/layouts/chrome_basic.php on line 39 [26-Oct-2011 00:34:31] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 855 [26-Oct-2011 00:34:31] PHP Notice: Undefined variable: strHtml in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 836 [26-Oct-2011 00:38:40] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 00:39:29] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 00:51:01] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 00:52:53] PHP Notice: Undefined variable: instance_params in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/html/layouts/chrome_basic.php on line 39 [26-Oct-2011 00:52:53] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 855 [26-Oct-2011 00:52:53] PHP Notice: Undefined variable: strHtml in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 836 [26-Oct-2011 00:52:59] PHP Notice: Undefined variable: instance_params in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/html/layouts/chrome_basic.php on line 39 [26-Oct-2011 00:52:59] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 855 [26-Oct-2011 00:52:59] PHP Notice: Undefined variable: strHtml in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 836 [26-Oct-2011 00:54:17] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 00:54:25] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 00:57:14] PHP Notice: Undefined variable: instance_params in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/html/layouts/chrome_basic.php on line 39 [26-Oct-2011 00:57:14] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 855 [26-Oct-2011 00:57:14] PHP Notice: Undefined variable: strHtml in /home/content/40/8512740/html/wordpress/wp-content/plugins/gantry/core/gantry.class.php on line 836 [26-Oct-2011 00:57:48] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 01:02:20] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 01:02:51] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835 [26-Oct-2011 01:02:55] PHP Notice: Trying to get property of non-object in /home/content/40/8512740/html/wordpress/wp-admin/includes/post.php on line 1835
The date picker does pop up.
Many thanks for your interest in this.
will check this out
in the meantime I’d disable the gantry plugin and see if it helps, as it looks like that is causing some sort of problems.
I have a similar issue as Geoff, and I’m a newbie ?? I’m quite impressed with your plugin Marcus.
I just installed and started to set up EM a few days ago and created a few trial events, also free events but I inserted 0.00 for the price and it has stayed, so that is OK but the ‘available from and to dates’ keep disappearing. I also have must order between 1 and 1.
Thanks in advance
Marcus,
I disabled the Gantry theme and the Gantry plug-in. I activated the WordPress 2011 theme. I created another event and got exactly the same result.
I am wondering if it has to do with the environment: Linux, PHP 5.3, MySQL 5.0 (not sure what else to list).
with regards to dates not working, it could be a javascript issue. you’d need to check your submitted data (if you’re a newbie, you may need a dev to check it out and see) to see if ticket dates are actually sent via post.
We use linux/mysql with that but not sure about the php, don’t see why it would do that though.
with regards to spaces, if you enter 0, it will go blank (blank = 0 = free). will correct that in v5 but since it doesn’t adversely affect the behaviour of the plugin will leave as is for now.
Marcus,
I’m probably the only developer there’s going to be. ??
I’m not sure about it being a Javascript error. You may have missed my earlier comment that I tried this in Opera and IE, and both failed. I would think their implementations of Javascript are sufficiently different to rule out that type of error. However, if you can be more specific about what to check and briefly say how, I can try to figure it out.
Actually, leaving the price blank does affect the plug-in, albeit in a very minor way. You cannot save a modification to the event if the price is blank. If you try, you get the error “Please enter a valid ticket price e.g. 10.50 (no currency signs)”.
Since my other thread concerning the leading spaces in the e-mail salutation seems related to PHP, my WAG right now is to point that finger at PHP for this issue.
yes, my mistake about the blank price, i thought it made it into 4.302 but checking the diffs that’s not true. it should be fixed in 4.303 (just released)
Marcus,
I have updated to 4.303 and I can confirm the price issue is resolved.
Is there anything I can try in regards to the date issue? What is odd is the Event date works just fine, it’s only the Available From and To dates which are acting up.
in chrome, if you right-click > inspect element > console you’ll probably see errors on there when you show a page with the datepicker, those errors are probably why your date pickers aren’t showing up.
Marcus,
Would Opera Dragonfly be able to show you the same information?
I think I have miscommunicated the problem. The date pickers work. After selecting the “Available From” and “to” dates with the pickers, the dates appear correctly. It’s after saving the event that the dates disappear.
One thing I have noticed in Dragonfly is the CSS style tab on the right is slightly different between the date pickers for the event date (which work) and the “Available From/To” ones I have trouble with. In particular, the “Available from/to” date fields have this at the top of the hierarchy:
.em-ticket-form .date-limits input {
width: 100px;
}
which comes from events_manager_admin.css:85that wouldn’t affect the way it works.
dragonfly would show it, there should be a console there too. haven’t tested opera in a while, does it work in other browsers?
sounds like the datepickers aren’t saving the date value to the hidden field (which is what is actually used, since the one you see is localized), try checking what’s actually submitted via post, you should esee event_start_date etc.
Marcus,
It happens in Opera and IE 8. It happens on the hosted site and my local PC. After playing around with settings, I think it is important to tell you that Single Ticket Mode = Yes. We may not be talking about exactly the same thing up to now if you have that set to No.
good point… possible. Tested on opera, works fine for me. Could you try this on chrome? It definitely works there for me, so if it does for you it’ll be a browser issue, otherwise, it’s probably a js conflict with another plugin or your theme.
- The topic ‘[Plugin: Events Manager] Price and Available From disappear from Event’ is closed to new replies.