Rss Feed is not working anymore.
Rss Feed is not working anymore.
JPRuehmann Tuesday 24th June 2025, 19:47:31The Feed at https://flatboard.org/feed.php/topic is not working animore.
I get an XML File But it seems malformed.
I get an XML File But it seems malformed.
Last modified by Fred on Tuesday 18th November 2025, 17:16:00
Fred locked the discussion.
Reply 1
I'll be sending out a major Flatboard update shortly that will include this fix.
Thanks for the feedback.
You can fix with replace feed.php file by this: https://pastebin.com/uSgnJ6At
Key Optimizations Applied
1. Object-Oriented Structure
2. Performance Improvements
3. Enhanced Security
4. Readability and Maintenance
5. Specific Optimizations
6. Robustness
Result: This optimized version is more performant, secure, and easier to maintain than the original.
Thanks for the feedback.
You can fix with replace feed.php file by this: https://pastebin.com/uSgnJ6At
Key Optimizations Applied
1. Object-Oriented Structure
- Created AtomFeedGenerator class that encapsulates all logic
- Separated responsibilities with specialized methods
- Better code reusability and maintainability
2. Performance Improvements
- Result Limitation: Added default limit of 20 entries to prevent feed overload
- HTTP Caching: Added cache headers (5 minutes) to reduce server load
- Loop Optimization: Used array_slice() to limit processing
3. Enhanced Security
- Improved XML Escaping: Using ENT_XML1 | ENT_QUOTES for better security
- Error Handling: Added global try-catch with error logging
- Data Validation: Additional checks before processing
4. Readability and Maintenance
- Constants: Defined constants for repeated values
- Short Methods: Split into specialized methods under 20 lines
- Explicit Naming: More descriptive method and variable names
- Documentation: PHPDoc comments for each method
5. Specific Optimizations
- XML Generation: Used heredoc for better readability
- Reduced DB Calls: Cached results in local variables
- Empty Case Handling: Specialized methods for empty feeds
6. Robustness
- Null Checks: Systematic validation before using data
- Error Management: Default return values in case of issues
- Logging: Error recording for debugging purposes
Result: This optimized version is more performant, secure, and easier to maintain than the original.
Last modified by Fred on Tuesday 24th June 2025, 23:20:00
- Before ask a question, read the documentation.
- 🎉 Featured as #1 product of the day on Product Hunt
- Please like in alternativeto.net 👍🏻
- ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
- <TextField>, my new CMS project designed by a passionate developer, for developers!
- My last project Fast⚡︎CMS, a Flat-File cms.
- I am currently busy 😫.
Suggested Topics

WebCrew@80089111
started todolist I suggest to create some user profile pages
General Questions

2252c7c5
started solved plugin[CORE] Version and replace
Bug reports

JPRuehmann
started RSS geht nicht hier und in meiner Instalation
Bug reports

Aurel#62177
started After install error
General Questions