By “posts” I meant that there are the post folders in there, not a separate folder. Sorry for the confusion. Basically it looks like this: content/category/all-the-post-folders-here
Ok, that was a misunderstanding.
Is your plugin folder really called “feeds”? Then rename it to “feed”.
Just renamed it - didn’t fix it.
- No php errors?
- feed.txt and feed.php both in small letters?
- posts visible?
- Do you have that problem both locally and remote?
Could you provide us with a screenshot of the folder structure of your ‘category’ directory?
There you go enter link description here
The written “content” by me was supposed to be “category” - apologies for the mistake. But I think you get the picture either way.
You content files have to be for example:
content/category/1-folder-a/post.txt
content/category/2-folder-b/post.txt
and so on, if the template file is named “post.php
”.
Every folder name has to be different to all others, if you look after the leading number and the first “-
”.
While this is true, it is irrelevant in the current context, because the template/s for the posts is not called.
The directories in the hardcopy have no name (only the leading sorting number and the “-
”)!
This is the main error, I think
I guess the titles were deleted for privacy reasons
Yes, I removed the names for privacy reasons. They are all named as follows:
1-something/mytextyfilything.txt
2-dsjkfsd/awesome.txt, stuff.txt, here.txt
3-dskgf3ugf837/something.txt, else.txt
Etc.
You should not have multiple text files in your post folders . Don’t know if that’s the reason why it doesn’t work, but it will certainly lead to errors at one point or the other.
Why are there more than one *.txt
files in one directory?
Kirby needs, that every content file has it’s own directory.
Or are “the more than one *.txt files” namend e.g. pic001.jpg.txt
and the file pic001.jpg
is in the same directory?
No, it’s more than one file. But there are folders with just one text file. I think they should be displayed properly then still?
I tested this a bit and it does not seem to be the reason for the error.
Is there nothing in the server php error log that might give a hint at what’s going wrong?
No, log’s clean. Since the code’s fine, my best guess is lacking some PHP module. What could that be?
I have some questions:
- Does your kirby homepage run?
- Does a subpage of your kirby homepage run?
- Does your file
\site\plugins\feed\feed.php
at the beginning looks like:
<?php
/**
* Feed Plugin
*
* @author Bastian Allgeier <bastian@getkirby.com>
* @version 2.0.0
*/
Pages::$methods['feed'] = function($pages, $params = array()) {
4. Does your file \site\plugins\feed\template.php
at the beginning looks like:
<!-- generator="<?php echo $generator ?>" -->
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title><?php echo xml($title) ?></title>
<link><?php echo xml($link) ?></link>
5. Please tell us your:
- Webserver OS
- Webserver (e.g.
apache
and version) - PHP version
- Name of the hoster of your webserver or is it local?
- Is there a file
.htaccess
in the root of your website? - Does it match with the default https://github.com/getkirby/starterkit/blob/master/.htaccess?
- Have you checked http://getkirby.com/docs/installation/troubleshooting and the requirements at http://getkirby.com/docs/installation/download?
- Did you make any changes in the file
site\config\config.php
?
I just had the same problem. This fixed it: rename the plugin folder to ‘feed’.