2014-05-17, 05:20:45
(This post was last modified: 2014-05-17, 05:41:49 by johnstray2001.)
snooze,
Once you installed the plugin and activated it, did you go to the new blog tab or not? If not, go there first and allow the plugin to create it required files (this will happen automatically when you go to the blog tab for the first time).
What I think is happening here (primary class Blog.php):
Since that function is returning false:
So instead of the listPosts() function returning false like it's supposed to if Line 138 is true, it goes to Line 142 - process the data... which then means that the foreach loop on line 151 is getting $all_posts = false instead of a array of posts that it was expecting.
I will add a check for this in the next version to prevent this from happening. In the mean time, just go to the blog tab in admin and create the required files as I said above. That should make line 137 return true instead, like it is supposed to for no posts.
Edit:
Just check that /data/blog has the permission 0755, not 0644. When uploading via FTP, 0644 is commonly the default with most hosting providers. So you might also want to check that /data and /backups have 0755 permission too. Do this recursively.
Once you installed the plugin and activated it, did you go to the new blog tab or not? If not, go there first and allow the plugin to create it required files (this will happen automatically when you go to the blog tab for the first time).
What I think is happening here (primary class Blog.php):
Code:
Line 137: $all_posts = glob(BLOGPOSTSFOLDER."/*.xml"; // returning false
Code:
Line 138: if(count($all_posts) < 1) // Basically if false less than 1
I will add a check for this in the next version to prevent this from happening. In the mean time, just go to the blog tab in admin and create the required files as I said above. That should make line 137 return true instead, like it is supposed to for no posts.
Edit:
Just check that /data/blog has the permission 0755, not 0644. When uploading via FTP, 0644 is commonly the default with most hosting providers. So you might also want to check that /data and /backups have 0755 permission too. Do this recursively.
Check out my website: JohnStray.com