Invision Community 5: A video walkthrough creating a custom theme and homepage By Matt Thursday at 04:02 PM
Jim M Posted December 11, 2023 Posted December 11, 2023 Unfortunately, I wasn't able to reproduce this. However, before we continue too far, I would suggest upgrading or disabling the following third party add-ons to ensure they are not involved. applications/easypopup/hooks/includeJSandCSS.php applications/memberscountry/hooks/dispatcherFront.php plugins/aedtousdconversion/hooks/aedtousd_patterns.php applications/singledriveandwaitlist/hooks/OutputOverride.php applications/drives/hooks/drivesData.php applications/membersshop/hooks/MemberHook.php applications/memberscountry/hooks/friendlyUrl.php applications/membersshop/hooks/GroupHook.php
Gauravk Posted December 11, 2023 Author Posted December 11, 2023 Thanks Jim, here is the reply from one of the developer. Quote The error in the system logs is NOT related to the plugins. It's a bug in Invision it looks like - if guests hit the event-search endpoint without filling anything in on the form, it causes an error due to a bug in the code. It isn't going to be easy to duplicate on your end, but all it takes is submitting an AJAX request (which, to Invision, just means a particular HTTP header is present) to this URL without submitting the form: https://carnity.com/events/event-search/ . I would recommend reporting this to Invision
Jim M Posted December 11, 2023 Posted December 11, 2023 4 minutes ago, Gauravk said: Thanks Jim, here is the reply from one of the developer. Unfortunately, this isn't something I was able to reproduce on an installation without modifications in normal operation of the software. I would still recommend disabling and testing again.
rebraf Posted December 11, 2023 Posted December 11, 2023 @Jim M Brandon here. You need to submit the request as an "AJAX" request, that's the key. Here's a code snippet you can drop into postman or execute on the server to reproduce. It will cause the error on demand. curl --location '{base_url}/events/event-search/' \ --header 'X-Requested-With: XMLHttpRequest' \ Swap out {base_url} with an Invision base URL. I can reproduce the error here on this community easily with this for instance: curl --location 'https://invisioncommunity.com/events/event-search/' \ --header 'X-Requested-With: XMLHttpRequest' \ Hope this helps! The problem is that the $select variable in the controller isn't initialized basically (or rather, it's initialized inside an if statement but that if statement isn't hit, however a separate query is ran for AJAX requests later on expecting the variable to be set). Gauravk and Daniel F 2
Jim M Posted December 11, 2023 Posted December 11, 2023 Thanks @Gauravk and @rebraf! Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release. Gauravk and rebraf 1 1
Marc Posted March 14 Posted March 14 This has now been resolved in the 4.7.16 release. Please update if you are seeing this issue. If you are then still seeing the issue, please let us know.
Recommended Posts