By averechts on Friday, 26 January 2024
Replies 19
Likes 0
Views 547
Votes 0
I have a joomla installation that resides in the /joomla subdirectory within the web root, that works well. Except that when I submit a new or changed event I get a "404 page not found" on an URL like this: https://www.mysite.com/joomla/index.php?option=com_jevents&task=icalrepeat.detail&evid=26646&Itemid=47&year=2024&month=01&day=09&title=nog-een-test-dinges-3&uid=e43ff23f19ee9
After that I go to the calendar again and I see that the changed event is actually stored, so no dataloss.
But this is very annoying for my users. Is there anything I can do about this next to moving the site to the webroot?

Thanks for a tip!!

Chris

support info:


PHP Version : 8.2.15
MySQL Version : 10.6.16-MariaDB
Server Information : Linux server060.yourhosting.nl 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
*** CONFIG NOT SAVED***
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : No
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15
Joomla : 5.0.2
component_com_jevents : 3.6.77
component_com_jce : 2.9.61
component_com_comprofiler : 2.9.1+build.2024.01.17.14.35.34.9d2a7ffab
module_mod_jevents_cal : 3.6.77
module_mod_jevents_custom : 3.6.77
module_mod_jevents_filter : 3.6.77
module_mod_jevents_latest : 3.6.77
module_mod_jevents_legend : 3.6.77
module_mod_jevents_switchview : 3.6.77
plugin_actionlog_jevents : 3.6.77
plugin_content_jevents : 3.6.77
plugin_finder_jevents : 3.6.77
plugin_installer_jeventsinstaller : 3.6.77
plugin_search_eventsearch : 3.6.77
plugin_system_gwejson : 3.6.77
Do you mean that the redirect URL after saving the event is not a valid URL.

What sort of menu item is id = 47 ?

What permissions do your event creators have? Are they publishing their own events or waiting approval etc.
·
9 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I meant: when I am on the page to edit an event everything works fine and I can edit whatever I want. But when I click the save & close button the resulting page had a big 404 error on it. And in the URL box it says something like this:

https://mysite.com/joomla/index.php?option=com_jevents&task=icalrepeat.detail&evid=26784&Itemid=47&year=2024&month=05&day=17&title=buurtborrel-weerdsingel&uid=ca34b00d2eb674833ca9ecdaa2a1fa18

I do not understand the question "What sort of menu item is id = 47 ?", or at least I have no idea what to answer.

And the users have permissions "Publisher", but the exact same behaviour occurs when I try to edit an event as an admin that has all permissions.
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Support info is now:


PHP Version : 8.2.18
MySQL Version : 10.6.17-MariaDB
Server Information : Linux server060.yourhosting.nl 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
*** CONFIG NOT SAVED***
Fix jQuery? : Yes
Load JEvents Bootstrap CSS? : No
Max Input Vars ? : 1000
Club code set? : No
User Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15
Joomla : 5.0.3
component_com_jevents : 3.6.79
component_com_jce : 2.9.63
component_com_comprofiler : 2.9.1+build.2024.03.20.21.48.27.ba7f2370e
module_mod_jevents_cal : 3.6.79
module_mod_jevents_custom : 3.6.79
module_mod_jevents_filter : 3.6.79
module_mod_jevents_latest : 3.6.79
module_mod_jevents_legend : 3.6.79
module_mod_jevents_switchview : 3.6.79
plugin_actionlog_jevents : 3.6.79
plugin_content_jevents : 3.6.79
plugin_finder_jevents : 3.6.79
plugin_installer_jeventsinstaller : 3.6.79
plugin_search_eventsearch : 3.6.79
plugin_system_gwejson : 3.6.79
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
In the backend of Joomla go to Menus=>All Menu Items and filter in the search box with id:47

Screenshot from 2024-05-03 09-14-20.png


What menu item is this?
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks! That is:

JEvents - Core >> View by Month >> View by Month

Hope this helps
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Is that a fully functioning and accessible menu item? i.e. can you access is normally?

What constraints do you have on it e.g. restrictions on event categories etc.?
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The menu item has public access (you can see it at: https://www.averechts.nl/agenda)

Some jevents categories have Registered access and some have Public access.
The problem occurs for logged in users that try to add or edit an event in a Registered category.
Logged in users are registered in Community Builder as "Publisher".
Even when I try to add or edit an event while logged in as Admin (with admin rights), then the 404 error occurs (and the change itself is not lost).

Any information missing that I can supply?

Thanks for your work, Geraint!! :-)
·
6 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue must be related to the redirect after saving.

Can you check your setting on the event editing tab in the JEvents config

Screenshot from 2024-05-29 11-43-01.png
·
5 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi geraint,

The value for "Redirect Afterwards?" was on "View by month". I changed it to "list by week" but the behaviour did not change, unfortunately. If you want to have a look for yourself I could create an admin login for you?

Thanks!
Chris
·
5 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
please do
·
5 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
I did, and I sent you a message.
·
4 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
You can add the URL and temporary login details in the private site details tab below - only you and I would see these.

You could also edit your first post and mark the topic as private.
·
4 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint!

Details below.

Thanks for having a look! :-)

If you want to try to replicate the behaviour you can add some test event and change it in the front end. Then you'l see the 404 appear. Back-end available.

I am really curious what the problem is. I hope I am not obliged to move the whole joomla directory one level up.
So, if you can suggest a solution I'll be very grateful!

Kind regards,

Chris Grolleman
·
4 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Is your /agenda menu item a redirect? I thought the site was in a folder called /joomla ?

Can you explain how the site and URLs are put together ?
·
3 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint,

A collegue came up with the following fix, which seems to work well. Do you think that's a dangerous change?
Could this make it in a next version?

In the file:
joomla/administrator/components/com_jevents/controllers/icalevent.php

on line 860 he added a: "Route : : ( )-statement", like this:


$this->setRedirect(Route::_($event->viewDetailLink($year, $month, $day, false, $Itemid), $msg));


so that part of code becomes:


// if the event is published then return to the event
if ($event && $event->state())
{
list($year, $month, $day) = JEVHelper::getYMD();
$this->setRedirect(Route::_($event->viewDetailLink($year, $month, $day, false, $Itemid), $msg));
$this->redirect();
}
else ...
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Not sure why that wasn't a SET URL already

This is what I will change the code to


$this->setRedirect($event->viewDetailLink($year, $month, $day, true, $Itemid), $msg);


The true parameter will do the equivalent of Route::_(xxx)
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint!

Thanks a lot! That's very good news. :-)
We already have happy users!

By the way: I noticed the same behaviour when editing a repeating event. And this 404 is NOT yet solved using the extra "Route::".
Any suggestion?

Thanks again!

Chris
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you try with the new release (available within an hour of now)
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Geraint! It works! And also the remaining problem with repeating events seems to be solved, after a quick "smoke" check!
Thanks a lot! Also thanks for the super fast fix and release!
We're very happy with release 3.6.83!!
·
2 months ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post