You need to be logged in to view a user's profile.
  1. saimiri
  2. JEvents 3.4 (Free Access)
  3. Thursday, 23 January 2020
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.
Accepted Answer Pending Moderation
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...', '[email protected]', '[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()
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 1
tonyp
Support Team
Accepted Answer Pending Moderation
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!
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 2
Accepted Answer Pending Moderation
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.
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 3
Accepted Answer Pending Moderation
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;
}
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 4
tonyp
Support Team
Accepted Answer Pending Moderation
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!
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

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.