Forum
Blog is not working
I copied the files and everything as I should've done following the video, but when I click on Apps/Blog in perch I get these errors:
Warning: include(../../inc/api.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.site.co.uk/public_html/admin/addons/apps/perch_blog/index.php on line 3
Warning: include(../../inc/api.php) [function.include]: failed to open stream: No such file or directory in /var/sites/d/dev.site.co.uk/public_html/admin/addons/apps/perch_blog/index.php on line 3
Warning: include() [function.include]: Failed opening '../../inc/api.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/sites/d/dev.site.co.uk/public_html/admin/addons/apps/perch_blog/index.php on line 3
Fatal error: Class 'PerchAPI' not found in /var/sites/d/dev.site.co.uk/public_html/admin/addons/apps/perch_blog/index.php on line 5
I've gone to that path and it's supposed to be ../../core/inc/api.php but when I modified to this one it still didn't work, it fixed the templat meaning that in Apps/Blog it shows the menu and no errors, but the blog part is blank.
Which version of Blog and which version of Perch are you using?
Latest versions for both of them
Ok. Can you try reuploading your files?
I did that twice now, same errors with the file paths
Can you show be your diagnostics report?
As I've seen now in the diagnostics report perch version is 2.6.3 not the latest one as I thought so that's what is probably causing the errors. How do I proceed now ? should I update (it will mess with my content?) ? or there is a blog app version that's compatible with this version of perch ?
If you need hosting setting as well let me know, thank a lot for helping.
Satpal, updating perch is pretty simple. after making a backup of your database, replace perch/core with same folders from current version. then when you login to perch it will run the update script.
Robert
Where did you download Blog 2.9 from? You need to download the latest version of Blog which is 4.5.2.
Also please update Perch to 2.6.6 - that should be straightforward.
Thank you so much for your help, I updated the perch and installed the latest version of the blog. There seems to be a problem with the links on the perch homepage because they redirected somehow to the Archive page (https://grabaperch.com/add-ons/archive/apps). Anyway I got it installed and working but now I have a new problem regarding the posts on blog, whenever I try to add a new post I get this error "Sorry, that post could not be updated." even though I don't try to update any post, just to add a new post.
Also the Categories are not present in the menu in Perch admin for some reason, only Add/Edit, Comments, Authors, Sections.
Categories are in the App menu at the top.
Ok, it is there in the menu, but it's not like in the video where it's supposed to be between Add/Edit and Comments (https://imgur.com/8fLff13). Anyway I've made a category from the menu there and tried to add a new post, I still get that error no matter what... "Sorry, that post could not be updated."
The video is from a slightly older version.
Did you fully remove the old version of blog, or are you still running the Perch 1 blog database tables?
I fully removed all the files from the old one, which tables do I need to remove from the old one ?
Any tables with
blog
in the name.Yes, perfect, now it works like it should work, thanks a lot guys, I really appreciate your help, have a nice day!