Forum
Persistent draft mode
Hello
I saw a similar post but unfortunately there didn't seem to be a resolve.
On my list/detail page all items are appearing as a draft and even when deselected and saved when you rerun to the list or item it is a draft. It seems the whole page is a draft from how it appears under pages on the dashboard.
I have updated all perch and markitup.
Added debug and tried saving after deselecting draft and got a huge output with these errors at the bottom
Invalid query: SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than 'max_allowed_packet' bytes Setting alert: Content successfully updated (success) SELECT MIN(itemRev) FROM perch2_content_items WHERE regionID=48 [0] Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away DELETE FROM perch2_content_index WHERE regionID=48 AND itemRev<0 Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away SELECT * FROM perch2_content_items WHERE regionID=48 AND itemRev=179 ORDER BY itemOrder ASC Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away OPTIMIZE TABLE perch2_content_index Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away UPDATE perch2_pages SET pageModified='2016-04-07 23:51:04' WHERE pageID='21' Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away SELECT * FROM perch2_content_items WHERE regionID=48 AND itemRev=179 AND itemID=285 ORDER BY itemOrder ASC Invalid query: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away Queries: 228 Memory: 13.3672 Array ( [type] => 2 [message] => Invalid argument supplied for foreach() [file] => /var/sentora/hostdata/nickoakley/public_html/nickoakleyphotography_com/perch/core/apps/content/modes/edit.form.post.php [line] => 150 )
With each post to the forum we need to see:
Please post these so we can help you.
Page function:
Template:
Diagnostics: Perch: 2.8.28, PHP: 5.6.17, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO Server OS: Linux, apache2handler Installed apps: content (2.8.28), assets (2.8.28), categories (2.8.28), perch_blog (4.6), perch_forms (1.8.3), perch_gallery (2.8.6), perch_shop_paypal (1.2.1), perch_members (1.1) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_shop_paypal', 'perch_gallery', 'perch_members', 'perch_blog', 'perch_forms', ); ?> PERCH_LOGINPATH: /perch PERCH_PATH: /var/sentora/hostdata/nickoakley/public_html/nickoakleyphotography_com/perch PERCH_CORE: /var/sentora/hostdata/nickoakley/public_html/nickoakleyphotography_com/perch/core PERCH_RESFILEPATH: /var/sentora/hostdata/nickoakley/public_html/nickoakleyphotography_com/perch/resources Image manipulation: GD PHP limits: Max upload 80M, Max POST 80M, Memory: 128M, Total max file upload: 80M F1: 2edba60ed1f613d6dd804feb202456a2 Resource folder writeable: Yes HTTP_HOST: www.nickoakleyphotography.com DOCUMENT_ROOT: /var/sentora/hostdata/nickoakley/public_html/nickoakleyphotography_com REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
The region is in draft because of the query error. If the update fails, we put the region into draft so that the failure doesn't break your site.
You're sending more content through than your database server is configured to allow. Are you editing all items on one page? If so, switch the region into editing one item at a time from the options and see if that helps.
Hi Drew, I am already editing one item at a time and it makes no difference. Is this a hosting issue then?
Sort of - it looks like you're sending more data to MySQL than it's configure to accept. It might simply be a factor of the amount of content you're dealing with.
Have you looked at Perch Runway at all? This is designed for larger amounts of content and so would deal with this differently in a Collection.
I haven't tried Perch Runway at all yet. Is it straight-forward to upgrade?
Yes, we designed it to be (I've been upgrading all of my sites one at a time).
Instructions are here: https://docs.grabaperch.com/runway/upgrading/
It's definitely worth it if you are storing huge amounts of content in multiple item regions as you can convert those to a Collection.