Forum
Text Editor is showing Content Regions as blank in the Admin, but they are showi...
Hi - I'm having a rather odd issue happening where my content for Text Blocks in the Perch editor is showing up as blank, but the content that was put in there is still showing up on the site.
I'm running MAMP on both my localdev and my sandbox server, and other sites running Perch in the same localdev / sandbox setup are not having this issue - it's only happening on this one site. This is also happening on the LIVE version of the site, so I don't think the issue is unique to my localdev or sandbox environments.
This site was running an older version of Perch (2.3 I believe) that has been updated to 2.8.13, I made sure to update the markitup editor as well, and I updated the text-blocks.html template to the most current just to be safe.
Note: it's actually happening with other content areas, but 80% of the content areas on my site are using text-blocks.html, so that's where I saw it first.
Here's the content of my text-blocks.html template:
<perch:content id="text" type="textarea" label="Text" markdown="true" editor="markitup" imagewidth="640" imageheight="480" />
Here's my Diagnostics Information:
Perch: 2.8.13, PHP: 5.5.23, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 15d5c781cfcad91193dceae1d2cdd127674ddb3e $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_events (1.6.1), perch_forms (1.8.3), perch_gallery (2.5.1), perch_shop_foxycart (2), perch_blog (3.6.1), perch_twitter (2.0.2)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_comments', 'perch_events', 'perch_forms', 'perch_gallery', 'perch_members', 'perch_twitter', 'perch_shop_foxycart', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/gtomlinson/Sites/www.burgerlounge.com/perch
PERCH_CORE: /Users/gtomlinson/Sites/www.burgerlounge.com/perch/core
PERCH_RESFILEPATH: /Users/gtomlinson/Sites/www.burgerlounge.com/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: backslider.local:5757
DOCUMENT_ROOT: /Users/gtomlinson/Sites/www.burgerlounge.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
When running debug in the admin, this is the output I get at the bottom of the screen:
Debug Message
SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='0d285f569703c817b655453b704525ce' LIMIT 1
UPDATE perch2_users SET userHash='95d7987ee2e2b38a83bedf88a5400f81' WHERE userID='1'
SELECT p.privKey FROM perch2_user_privileges p
SELECT * FROM (SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID
SELECT * FROM perch2_content_regions WHERE regionID=555 LIMIT 1
SELECT * FROM perch2_pages WHERE pageID='95' LIMIT 1
SELECT * FROM perch2_content_items WHERE regionID=555 AND itemRev=1 ORDER BY itemOrder ASC
SELECT MAX(itemID)+1 FROM perch2_content_items
SELECT itemOrder FROM perch2_content_items WHERE regionID=555 AND itemRev=1 ORDER BY itemOrder DESC LIMIT 1
INSERT INTO perch2_content_items(itemID,regionID,pageID,itemRev,itemJSON,itemSearch,itemOrder) VALUES(294,'555','95','1','','',1000)
SELECT * FROM perch2_content_items WHERE itemRowID=1 LIMIT 1
SELECT * FROM perch2_content_items WHERE regionID=555 AND itemRev=1 ORDER BY itemOrder ASC
Using template: /templates/content/text_block.html
Form not posted or did not validate
Queries: 14
Memory: 3.586
And when running debug on the page in question, this is the output I get in the debug area:
Your config/apps.php contains "perch_comments" but that app is not installed.
Your config/apps.php contains "perch_members" but that app is not installed.
SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/realestate/index.php' OR regionPage='*' ORDER BY regionPage DESC
Array
(
[type] => 2
[message] => include(): Failed opening '/Users/gtomlinson/Sites/www.burgerlounge.com/perch/addons/feathers/twitter/runtime.php' for inclusion (include_path='.:/Applications/MAMP/bin/php/php5.5.23/lib/php')
[file] => /Users/gtomlinson/Sites/www.burgerlounge.com/perch/config/feathers.php
[line] => 3
)
Please let me know if you need any other info, or if I am not giving you enough diagnostic info.
A good place to start would be to address those errors.
Thank you for pointing that out. I deleted those two lines out of the config/apps.php file (since those apps are not installed or needed on this site), made sure all apps were updated to the most recent versions, and it's still showing blank pages on the admin.
Here's the Diagnostic report...
Here's the debug info from the admin page...
And, here's the debug info from the page itself...
Please let me know if you need any other info, and thank you for looking at this!
So do you get the fields but they have no content, or do get no fields?
I get the fields, but with no content. I can send you a screengrab or a screencast video if that would help.
Clarification: I can put all my content into the admin fields just fine, and they show up on the front side perfectly. But when I go back to the admin to edit the content, the content is all gone - but it still shows up on the front side. More than happy to either shoot a screencast of the issue, or give you access to my sandbox.
Can you post your extended diagnostics?
Of course - here you go...
Ok, it looks like you're hitting some sort of issue. Have you checked your server error log?
There's nothing out of the ordinary showing up in my server logs. This is showing up in both my localdev environment and on my development server for this site, but not for any other Perch sites. I have about 15 Perch sites currently running on both my local Mac, and on my development Mac server. This issue is only showing up on this site, not on any of my other builds. Both are running identical Mac OS versions, and both are running identical MAMP versions. This is probably my oldest Perch site, was originally built on one of the first iterations of Perch 2 - so possibly that could have something to do with it, that it has been upgraded so many times?
Presumably your diagnostics don't just terminate like that on your other sites, do they?
Just checked the extended diagnostics on a few of my other Perch sites - checked in my localdev, on my sandbox server and on my live servers. They all terminate like that. Checked sites running 2.8.11 and 2.8.13.
The LIVE version of this site in particular does have more on the extended diagnostics report, and that is shown below. Note that this issue is happening on some content areas on the live site using the text-block.html template (but not all the text-block areas).
I think you'll need to figure out what error is being thrown on that diagnostics report. I looks like something fairly serious if it's killing the page output. If it's not being logged you may need to adjust your server settings to log errors.