Forum

Thread tagged as: Problem, Error

Stuck on 'Save as Draft'

Hi guys,

My client has an issue where when they uncheck 'save as draft' the page sayd successful, but when you click out and back into the article, the draft button is rechecked.

Also - all the articles they have written are 'Draft' yet live on the site.

Could you help?

HEALTH CHECK
PHP 7.2.6 is up to date
MySQL 5.5.5-10.2.17-MariaDB is up to date
Image processing available
SUMMARY INFORMATION
Perch: 2.8.34, PHP: 7.2.6, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: 38fea24f2847fa7519001be390c98ae0acafe387 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_members (1.5)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_members', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/jdiresea/public_html/perch
PERCH_CORE: /home/jdiresea/public_html/perch/core
PERCH_RESFILEPATH: /home/jdiresea/public_html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 100M, Max POST 8M, Memory: 128M, Total max file upload: 8M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
DOCUMENT_ROOT: /home/jdiresea/public_html
HTTP_HOST: jdiresearch.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Thanks

Mark Lawrence

Mark Lawrence 0 points

  • 2 years ago

Hi Drew,

Is there any chance you could take a look at this one?

I am at a loss how to fix it.

My provider has stated "Ultimately the website will need to be compatible with php 7.2 & MariaDB 10.2.17" ??

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you turn on debug, do you see any errors when saving the page? Normally a region will flip to draft mode if an error occurs to save messing up your site.

Hi Drew,

Thanks for getting back.

Debug is on and this is the output:

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='c5cef444ed7fe0f85d354ac18b063016' LIMIT 1
UPDATE perch2_users SET userHash='66df81f677bbf39fed8bba8dcab2ab15' WHERE userID='1'
[28] SELECT p.privKey FROM perch2_user_privileges p
[20] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
[1] SELECT * FROM perch2_content_regions WHERE regionID=11 LIMIT 1
[1] SELECT * FROM perch2_pages WHERE pageID='22' LIMIT 1
[1] SELECT * FROM perch2_content_items WHERE regionID=11 AND itemRev=828 AND itemID=85 ORDER BY itemOrder ASC
Using template: /templates/content/article-detail.html
Form not posted or did not validate
Setting alert: You are editing a draft. (draft)
Queries: 8
Memory: 4.9518
Array
(
    [type] => 2
    [message] => count(): Parameter must be an array or an object that implements Countable
    [file] => /home/jdiresea/public_html/perch/core/lib/PerchFieldTypes.class.php
    [line] => 69
)
Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks like you'll need to update to a newer version of Perch. You can find the download in your account.

Drew McLellan said:

Looks like you'll need to update to a newer version of Perch. You can find the download in your account.

Hi Drew,

I have just upgraded to v3 and these articles are still stuck on draft.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What does the error say now?