Closed montuy337513 closed 2 years ago
Interesting problem. The core XoopsPreload::setPreloads() method does check for index and discards it. The issue must be somewhere else. Can you tell us which version of XOOPS you're using?
The latest version for production : Xoops 2.5.10 Final. I tested by removing 1 by 1 all index.php. It is only /preloads/index.php that causes this error.
Thanks! It was fixed in https://github.com/XoopsModules25x/news/commit/c7f65a2762b4ce279954c8a7350c20a21679dabb
A funny bug, with the News module. Maybe with other modules too.
On any page of the site (front / back), the server returns me a 404 error header. The pages are displayed correctly. Some JS functionality is disrupted. Example: Activate / deactivate a module in the "Module manager". For the changes to show, I have to reload the page. Another example: the notification bubble that appears with a late page.
Here is the screenshot of my console
The fault is the /preloads/index.php file If I delete it, I find my headers 200
I think the Core loads all the PHP files present in / preloads. Including the index.php which asks the server to send a 404 header. The page is displayed correctly, if we did not work with an open console next to it. We can miss the problem.
Recommendations: