Support

Support is part of Event Gallery Extended.

Please get a subscription if you need support. Feel free to use the ticket system or the contact form for reporting defects or pre-sale questions. Make sure you're logged in in order to be able to create a new ticket.

For general information you can also jump to the manual.

Subscribe now!

#3815 – 404 Category Not Found

Posted in ‘Event Gallery - General’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Sunday, 05 April 2020 19:48 UTC
usama91be
 I have created a Page with Event gallery to show a category list. But a 404 Category not Found error appears everytime I try to access it. I have tried everything possible to solve the problem, but really stuck. I first installed the latest version of the extension, but then downgraded to 3.9.4 which works on my other website. But it isn't working on my current website

Custom Fields

Event Gallery Version pkg_eventgallery_light_3_9_4_20180526_14-33-33_cbc0ef3
Joomla Version 3.9.16
URL https://www.khuddam.fr/purity/index.php/photoss
PHP Version 7.2.29
Attachment
404Category_not_found.jpg
 just a question
Monday, 06 April 2020 07:05 UTC
sbluege
Hi,

this page shows the same result: https://www.khuddam.fr/purity/index.php?option=com_eventgallery&view=categories

Can you please turn on the debug mode for one request, open the HTTP 404 page, take a screenshot and disable the debug mode, please?
 
Monday, 06 April 2020 09:22 UTC
usama91be
Yes please
Attachment
404Category_not_found-with_debug.jpg
 just a question
Monday, 06 April 2020 10:10 UTC
sbluege
I guess your root category is missing. This is a category which needs to be there. Always and
for all components.

Does this article help to get it back?
https://www.stajduhart.com/tech-tips/fix-for-failed-rebuilding-categories-tree-data-in-joomla/
 
Tuesday, 07 April 2020 14:12 UTC
usama91be
Finally, It worked, Perfect. Thank You Very much!!!
 just a question
Tuesday, 07 April 2020 15:47 UTC
usama91be
While working on it, now I get another error page. The main page appears without any error. But when I click on an event I get a error "0 - Call to a member function getChildren() on null". I think it's probably linked to the last one but don't know how to resolve it.

thank you for your help
Attachment
call_to_a_member_function.png
 just a question
Tuesday, 07 April 2020 17:05 UTC
sbluege
This still looks like an issue with the root category. There is a rebuild-button in the category manager of Event Gallery. Does it help to use it?
 
Tuesday, 07 April 2020 19:46 UTC
usama91be
I tried to rebuild as mentioned in the other article you sent, but it's still not working
 just a question
Wednesday, 08 April 2020 15:11 UTC
sbluege
I set the ticket to public and deleted some of the posts.

Please try to set 1 as the ID of the root category.
 
Thursday, 09 April 2020 05:02 UTC
usama91be
It doesn't work, my whole website goes 404
 just a question
Thursday, 09 April 2020 07:16 UTC
sbluege
Please try this query:

u pdate purity_categories set parent_id=1 where parent_id=104;


It will fix the invalid references because of the id change of the root category.
 
Thursday, 09 April 2020 15:55 UTC
usama91be
I think you mean "id" and not "parent_id". It worked. It's strange, when I did it this morning my website went all on 404. But now it worked.

Thank You very much
 just a question
Friday, 10 April 2020 10:16 UTC
sbluege
Great! The query is correct, as far as see, I did not mix up the column names. I could have made the SQL statement a little smarter by selecting the ID of the root category automatically.