By saimiri on Thursday, 23 January 2020
Replies 5
Likes 0
Views 1K
Votes 0
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.
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
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
0 Likes
·
0 Votes
·
0 Comments
·
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
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post