Forum
Blank page in Perch admin when viewing form responses
I've installed Perch + Blog + Forms app on a client's web hosting (compatibility test passed) but I'm getting a blank page when I click on a contact form response in Perch admin, when I attempt to export the .csv file of responses, and when I click on a blog post comment to view it. Form responses have been stored and I can see them listed but I get blank page here /perch/addons/apps/perch_forms/responses/detail/?id=4
and on the other pages above.
I'm also not getting form responses by email but that may be unrelated to the above.
There's nothing in the server PHP error log and PERCH_DEBUG output doesn't show any error messages on other pages in the admin.
I cannot figure out where this is going wrong.
Diagnostics report as follows:
Perch: 2.8.10, PHP: 5.4.41, MySQL: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.10), assets (2.8.10), categories (2.8.10), perch_blog (4.6), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/sycxpdhr/public_html/perch
PERCH_CORE: /home/sycxpdhr/public_html/perch/core
PERCH_RESFILEPATH: /home/sycxpdhr/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 64M, Memory: 64M, Total max file upload: 64M
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/sycxpdhr/public_html
HTTP_HOST: cloud9care.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
It could be you're hitting the maximum execution time or the available memory allowance.
I've contacted the host company support and they have replied:
That should be OK shouldn't it?
How much data are you trying to export?
There are only 4 responses that I created after Forms app set-up. These each have five forms fields (name, telephone, email, message, simple question) .... so, very little data.
The others pages where I see the same problem wouldn't have any such problems with execution time and memory limit though - would they?
Does this work in your dev site?
Yes, I can view responses and comments and export .csv.
Ok. So it's something about the environment.
Do you have any errors in your PHP log, or just nothing that relates to this? If it's completely empty, chances are it's not logging.
The error log in cPanel has some entries but not related to this. E.g if I enter a non-existent URL I get a File does not exist: error written to the log.
Although, it looks like the log is emptied frequently. Entries from earlier today aren't there now.
Update: PHP errors are also written to a log file in the root. There's are entries in that but nothing related to this in there either
Ok. When you say a blank page, how blank is it?
There is nothing in view source.
So it sounds like either you're getting a PHP fatal error (which should certainly be in the log) or the request isn't getting as far as PHP.
The site was previously running Drupal. Is it possible that URL rewriting is interfering with Perch admin? Currently, the old Drupal
index.php
page has been replaced with a new temporary 'Coming Soon' page so it shouldn't be getting as far as Drupal now.I have commented out the Drupal rewrites in .htaccess.
Here's the htaccess file as it stands now. I've left the server-related items and just commented out the Drupal rewrites.
I'd suggest comparing the settings between your known good environment and the one that's having problems. I can't really get into debugging your server.
Ok, no problem. Those I have already checked appear to be the same but I will recheck and look at other settings.
Just to follow-up and complete this thread. I contacted the web hosting company. They have said that because Perch isn't in their cPanel Softaculous toolkit, it's not compatible with their shared hosting. Not very helpful really and they were not more specific.
I'll suggest that client moves their hosting.