Thursday, 23 January 2020
  5 Replies
  1K Visits
0
Votes
Undo
I have version 1.4.4 of Anonymous User Event Creation plugin installed. If I enable multi-category events the anonymous event submission fails. I couldn't find any error messages in the logs, so I can't say what goes wrong.

Is this problem fixed in the later versions of the plugin? Changelog didn't mention anything about it.
4 years ago
·
#214673
0
Votes
Undo
I set up a testing environment so here is some more information:

Error: Call to a member function ev_id() on null in /[...]/plugins/jevents/jevanonuser/jevanonuser.php:447
Stack trace:
#0 /[...]/libraries/joomla/event/event.php(70): plgJEventsJevanonuser->onDisplayCustomFields(NULL)
#1 /[...]/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#2 /[...]/components/com_jevents/libraries/commonfunctions.php(452): JEventDispatcher->trigger('ondisplaycustom...', Array)
#3 /[...]/administrator/components/com_jevents/libraries/saveIcalEvent.php(320): JEV_CommonFunctions::sendAdminMail('XXX...', 'xxx@xxx.xx', '[Hyv\xC3\xA4ksynt\xC3\xA4] ...', 'Testitapahtuma', 'T\xC3\xA4m\xC3\xA4 tapahtum...', 27, '01', 2020, '00:00', '00:00', 'Test (test@test...', 'http://testing....', 'doSave('')
#6 /[...]/components/com_jevents/controllers/icalevent.php(181): AdminIcaleventController->save()
#7 /[...]/libraries/src/MVC/Controller/BaseController.php(710): ICalEventController->save()
4 years ago
·
#214693
0
Votes
Undo
Hello,

If you try the new one and it is not resolved we will resolve it very quickly for you. To my knowledge it is.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

4 years ago
·
#214705
0
Votes
Undo
Thank you for replying.

I tried the new version and it actually works worse. Now the form has no submit button. I tried submitting the form using JavaScript's submit() method, but it didn't work. The form was submitted but there was no success/failure message and the event was not added to the calendar*.

Also, it looks like it's not loading styles because the form looks pretty bad. This might be a settings problem, but I'm not sure where to look.

There is also a link with the text "image", but clicking on it loads the site in a modal, so maybe a script is missing too?

On a bright side, it's equally dysfunctional with the multi-category events enabled and disabled.

BTW, as a feature request, it would be nice to be able to hide some of the fields. The event repeat settings are much too complicated for people who submit events to the calendar. I know I can hide them with CSS, but that's a hack.

*) The older version actually added the events to the calendar, but I assumed it didn't because of the error message.
4 years ago
·
#214896
0
Votes
Undo
Ok, I managed to solve this. Here's what I needed to do, in case someone else runs into these issues:

1. Enabling the Bootstrap CSS fixed the layout issues (Configuration -> Component -> Load Bootstrap CSS). The previous version worked ok without it.

2. Submission button appeared once I set the toolbar position to "Tob and bottom" (Configuration -> Event Editing -> Toolbar position). It was set to "Top" and, again, worked fine in the previous version.

3. The image button was actually part of the editor window, so I removed it by going to Extensions -> Plugins -> Button - Image (for editors-xtd) and set the permission to "Special".

I still need to do some shivving to remove the "Cancel" button and rename the "Save & close" to "Submit", but at least it's working again.

Just a heads up: When I submitted a multi-category event and later viewed it in the backend, it gave me two warnings:


Notice: Undefined offset: 5 in /[...]/components/com_jevents/libraries/jeventshtml.php on line 302
Notice: Trying to get property 'value' of non-object in /[...]/components/com_jevents/libraries/jeventshtml.php on line 302


The relevant part of code is this:


if ($options[$o]->value == $catid[$c])
{
$options[ - (count($catid) - $c)] = $options[$o];
unset($options[$o]);
break;
}
4 years ago
·
#214997
0
Votes
Undo
Change:

if ($options[$o]->value == $catid[$c])

to

if (!empty($options[$o]->value) && $options[$o]->value == $catid[$c])

It is already like this in the code for the next release.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.