Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gs-blog plugin shuts down after clicking on blog tab #162

Closed
pigsound opened this issue Sep 25, 2020 · 3 comments
Closed

gs-blog plugin shuts down after clicking on blog tab #162

pigsound opened this issue Sep 25, 2020 · 3 comments
Assignees
Labels
Milestone

Comments

@pigsound
Copy link

pigsound commented Sep 25, 2020

Expected behaviour

clicking on the blog tab in the backend should open the blog editor and settings tabs for creating and editing a blog entry

Actual behaviour

clickng blog tab opens a page with no blog interface. blog tab disappears and in gs-blog is deactivated in plugins

Steps to reproduce the behaviour

install latest getsimple cms 3.3.16. install gs-blog plugin. activate plugin. click on blog tab (with getsimple 3.3.15 this problem does not occur)

@johnstray johnstray added the Bug label Aug 25, 2021
@johnstray johnstray added this to the Version 3.5.0 milestone Aug 25, 2021
@johnstray johnstray moved this from To do - Enhancements to To do - Bugfixes in GetSimple Blog v3.5.0 Aug 25, 2021
@johnstray
Copy link
Owner

Hi @pigsound. This is most commonly caused by a php error. Could you please enable showing of php errors on your web server, try loading the page again, then report back here with the php error that outputs. Note: you may also need to enable debug mode in GetSimple.

@johnstray
Copy link
Owner

Apologies it's taken almost a whole year to respond to this. I haven't had the time to be able to work on this for quite a while.

@johnstray
Copy link
Owner

PHP Fatal error: Uncaught TypeError: count(): Argument ($var) must be of type Countable, bool given in /gs-blog/inc/html/posts-admin.php:62

This is caused by the $Blog->listPosts class method returning false when no posts instead of an empty array.

@johnstray johnstray self-assigned this Aug 26, 2021
@johnstray johnstray moved this from To do - Bugfixes to In progress in GetSimple Blog v3.5.0 Aug 26, 2021
GetSimple Blog v3.5.0 automation moved this from In progress to Done Aug 26, 2021
johnstray added a commit that referenced this issue Aug 26, 2021
This was supposed to go to the development branch, but I accidentally pushed it to master. Adding the fix here too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

No branches or pull requests

2 participants