Forum
Can’t change comment status in admin
When I try to change the status of a comment on the "Edit comment" page I get this error:
Fatal error: Call to a member function return_instance() on a non-object in /Users/tfadrus/src/urlaub-am-bahnhof/perch/core/lib/api/PerchAPI_Form.class.php on line 415
When I then refresh and resend, it works.
Changing status from the list view works as expected.
Perch: 2.8.4, PHP: 5.4.34, MySQL: 5.5.38, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.4), assets (2.8.4), categories (2.8.4), perch_gallery (2.8.6), perch_comments (1.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_gallery', 'perch_comments' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/tfadrus/src/urlaub-am-bahnhof/perch
PERCH_CORE: /Users/tfadrus/src/urlaub-am-bahnhof/perch/core
PERCH_RESFILEPATH: /Users/tfadrus/src/urlaub-am-bahnhof/perch/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
Resource folder writeable: Yes
HTTP_HOST: localhost:8888
DOCUMENT_ROOT: /Users/tfadrus/htdocs
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
I can't reproduce that. Is there anything else you can tell me?
Ah okay. I’ll try it on the live system. If it doesn’t work there I’ll try to dig deeper.
Thanks for now!
So … it doen’t work on the live site. Another thing is: as an editor I can’t edit the comment either, although I set the permission to do that for editors. Is that of any help?
Are the diagnostics the same for the live site?
Not quite. PHP is 5.3 but I can’t change that at the moment. But the problem is the same on development and live.
When you say the editor can't edit the comment, what are you seeing?
Ah sorry: If I click on the title to edit the comment it just throws me back to the listings page.
In Chrome Network timeline it looks like this:
No error in Apache log.
That does look like the app enforcing permissions.
So any idea how to resolve this?
Yes, I need to fix it and do a new release of the app. It's logged and on my work list.
Oh awesome. Thanks!