Database not recording assets
I have an issue with a new site I am building. It is still in the development stage however I have run into a problem that I have not encountered before with other Perch installs.
My problem is that I find that Perch is not writing the assets to the database. I tried uploading an image both through an image field type and directly through the Asset Page. At first it will show a thumbnail of the image before it processes. Once the processing happens, the thumbnail goes away, but does not appear in the Assets. I checked the resource folder on the server and the upload is successful even when a crop is coded. To ensure the file was good I downloaded it and there were no issues with the file. I searched to see if there were any similar problems with solutions and did what I could. One thread that I found said to change a value in the resourceAWOL column but when I looked that's when I discovered there was nothing in the resources table.
All the other data text data was captured fine without issue.
Here is the diagnostic
Health check
Perch is up to date
PHP 5.6.21 is up to date
MySQL 5.1.72-rel14.10 is up to date
Image processing available
Summary information
Perch: 2.8.34, PHP: 5.6.21, MySQL: 5.5.53, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_blog (5.0)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /nfs/c06/h02/mnt/157634/domains/prchdev.silentoutsidr.gallery/html/perch
PERCH_CORE: /nfs/c06/h02/mnt/157634/domains/prchdev.silentoutsidr.gallery/html/perch/core
PERCH_RESFILEPATH: /nfs/c06/h02/mnt/157634/domains/prchdev.silentoutsidr.gallery/html/perch/resources
Image manipulation: GD
PHP limits: Max upload 99M, Max POST 99M, Memory: 99M, Total max file upload: 99M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home/157634/domains/prchdev.silentoutsidr.gallery/html
HTTP_HOST: prchdev.silentoutsidr.gallery
Was this a fresh install of 2.8.34?
Yes it was a fresh install.
Has this always been the case or did it start happening at some point?
It has always been the case with this install.
If you turn on debug and replace an image within the Assets app, what does the debug output say?
It appears there are a few missing columns.
[34] SELECT p.privKey FROM perch2_user_privileges p [12] 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 SELECT SQL_CALC_FOUND_ROWS DISTINCT r1.*, r2.resourceFile AS thumb, r2.resourceWidth AS thumbWidth, r2.resourceHeight AS thumbHeight, r2.resourceDensity AS thumbDensity FROM perch2_resources r1 LEFT OUTER JOIN perch2_resources r2 ON r2.resourceParentID=r1.resourceID AND r2.resourceKey='thumb' AND r2.resourceAWOL!=1 WHERE r1.resourceKey='orig' AND r1.resourceAWOL=0 ORDER BY r1.resourceUpdated DESC, r1.resourceID DESC LIMIT 0, 30 Invalid query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'r2.resourceWidth' in 'field list' [12] SELECT FOUND_ROWS() AS
count
SELECT DISTINCT resourceType FROM perch2_resources WHERE resourceAWOL=0 AND resourceType !="" ORDER BY resourceType ASC Invalid query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'resourceAWOL' in 'where clause' SELECT DISTINCT resourceBucket FROM perch2_resources WHERE resourceAWOL=0 AND resourceType !="" Invalid query: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'resourceAWOL' in 'where clause' Queries: 6 Memory: 1.1632Did you get any errors during setup?
Aside from typo or 2 when entering the credentials for install no.
Can you try doing a force-update by visiting this path in your site?
I tried that. It seemed to have worked partially, it now registers in assets but does not show a preview image of the asset. Is that normal?
Here is what debug returned upon the forced update. There were a lot of duplicate column errors, which I assume would be normal for the forced update?
SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0 [1] SHOW TABLES LIKE 'perch2_resource_log' ALTER TABLE
perch2_resources
ADDresourceCreated
DATETIME NOT NULL DEFAULT '2000-01-01 00:00:00' AFTERresourceType
ALTER TABLEperch2_resources
ADDresourceUpdated
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTERresourceCreated
ALTER TABLEperch2_resources
ADDresourceAWOL
TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTERresourceUpdated
ALTER TABLEperch2_resources
ADD INDEXidx_awol
(resourceAWOL
) ALTER TABLEperch2_resources
ADDresourceTitle
CHAR(255) NULL DEFAULT NULL AFTERresourceAWOL
ALTER TABLEperch2_resources
ADDresourceFileSize
INT(10) UNSIGNED NULL DEFAULT NULL AFTERresourceTitle
ALTER TABLEperch2_resources
ADDresourceWidth
INT(10) UNSIGNED NULL DEFAULT NULL AFTERresourceFileSize
ALTER TABLEperch2_resources
ADDresourceHeight
INT(10) UNSIGNED NULL DEFAULT NULL AFTERresourceWidth
ALTER TABLEperch2_resources
ADDresourceCrop
TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTERresourceHeight
ALTER TABLEperch2_resources
ADDresourceDensity
FLOAT NOT NULL DEFAULT '1' AFTERresourceCrop
ALTER TABLEperch2_resources
ADDresourceTargetWidth
INT(10) UNSIGNED NULL DEFAULT NULL AFTERresourceDensity
ALTER TABLEperch2_resources
ADDresourceTargetHeight
INT(10) UNSIGNED NULL DEFAULT NULL AFTERresourceTargetWidth
ALTER TABLEperch2_resources
ADDresourceMimeType
CHAR(64) NULL DEFAULT NULL AFTERresourceTargetHeight
ALTER TABLEperch2_resources
ADD FULLTEXT INDEXidx_search
(resourceTitle
) ALTER TABLEperch2_resources
ADDresourceInLibrary
TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTERresourceMimeType
ALTER TABLEperch2_resources
ADD INDEXidx_library
(resourceInLibrary
) CREATE TABLE IF NOT EXISTSperch2_resource_tags
(tagID
INT(10) NOT NULL AUTO_INCREMENT,tagTitle
VARCHAR(255) NOT NULL DEFAULT '',tagSlug
VARCHAR(255) NOT NULL DEFAULT '',tagCount
int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (tagID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC CREATE TABLE IF NOT EXISTSperch2_resources_to_tags
(resourceID
int(10) NOT NULL DEFAULT '0',tagID
int(10) NOT NULL DEFAULT '0', PRIMARY KEY (resourceID
,tagID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED CREATE TABLE IF NOT EXISTSperch2_resource_log
(logID
int(10) unsigned NOT NULL AUTO_INCREMENT,appID
char(32) NOT NULL DEFAULT 'content',itemFK
char(32) NOT NULL DEFAULT 'itemRowID',itemRowID
int(10) unsigned NOT NULL DEFAULT '0',resourceID
int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (logID
), KEYidx_resource
(resourceID
), KEYidx_fk
(itemFK
,itemRowID
), UNIQUE KEYidx_uni
(appID
,itemFK
,itemRowID
,resourceID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('assets.create','Upload assets',1) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'assets.create' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('assets.manage','Manage assets',2) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'assets.manage' for key 'idx_key' CREATE TABLE IF NOT EXISTSperch2_categories
(catID
int(10) NOT NULL AUTO_INCREMENT,setID
int(10) unsigned NOT NULL,catParentID
int(10) unsigned NOT NULL DEFAULT '0',catTitle
char(64) NOT NULL DEFAULT '',catSlug
char(64) NOT NULL DEFAULT '',catPath
char(255) NOT NULL DEFAULT '',catDisplayPath
char(255) NOT NULL DEFAULT '',catOrder
int(10) unsigned NOT NULL DEFAULT '0',catTreePosition
char(255) NOT NULL DEFAULT '000',catDynamicFields
text NOT NULL, PRIMARY KEY (catID
), KEYidx_set
(setID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 CREATE TABLE IF NOT EXISTSperch2_category_sets
(setID
int(10) NOT NULL AUTO_INCREMENT,setTitle
char(64) NOT NULL DEFAULT '',setSlug
char(64) NOT NULL DEFAULT '',setTemplate
char(255) NOT NULL DEFAULT 'set.html',setCatTemplate
char(255) NOT NULL DEFAULT 'category.html',setDynamicFields
text, PRIMARY KEY (setID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('categories.create','Create new categories',1) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'categories.create' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('categories.delete','Delete categories',2) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'categories.delete' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('categories.manage','Manage categories',3) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'categories.manage' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('categories.sets.create','Create category sets',4) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'categories.sets.create' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('categories.sets.delete','Delete category sets',5) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'categories.sets.delete' for key 'idx_key' CREATE TABLE IF NOT EXISTSperch2_resource_log
(logID
int(10) unsigned NOT NULL AUTO_INCREMENT,appID
char(32) NOT NULL DEFAULT 'content',itemFK
char(32) NOT NULL DEFAULT 'itemRowID',itemRowID
int(10) unsigned NOT NULL DEFAULT '0',resourceID
int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (logID
), KEYidx_resource
(resourceID
), KEYidx_fk
(itemFK
,itemRowID
), UNIQUE KEYidx_uni
(appID
,itemFK
,itemRowID
,resourceID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ALTER TABLEperch2_content_regions
ADDregionUpdated
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTERregionEditRoles
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'regionUpdated' ALTER TABLEperch2_content_items
ADDitemUpdated
TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP AFTERitemSearch
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'itemUpdated' ALTER TABLEperch2_content_items
ADDitemUpdatedBy
CHAR(32) NOT NULL DEFAULT '' AFTERitemUpdated
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'itemUpdatedBy' ALTER TABLEperch2_pages
ADDpageTemplate
CHAR(255) NOT NULL DEFAULT '' AFTERpageAttributeTemplate
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageTemplate' ALTER TABLEperch2_pages
ADDtemplateID
INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTERpageTemplate
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'templateID' ALTER TABLEperch2_pages
ADDpageSubpageTemplates
VARCHAR(255) NOT NULL DEFAULT '' AFTERtemplateID
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageSubpageTemplates' ALTER TABLEperch2_pages
ADDpageCollections
VARCHAR(255) NOT NULL DEFAULT '' AFTERpageSubpageTemplates
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageCollections' CREATE TABLE IF NOT EXISTSperch2_category_counts
(countID
int(10) unsigned NOT NULL AUTO_INCREMENT,catID
int(10) unsigned NOT NULL,countType
char(64) NOT NULL DEFAULT '',countValue
int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (countID
), KEYidx_cat
(catID
), KEYidx_cat_type
(countType
,catID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ALTER TABLEperch2_categories
CHANGEcatDisplayPath
catDisplayPath
CHAR(255) NOT NULL DEFAULT '' -- DROP INDEXidx_uni
ONperch2_resource_log
ALTER TABLEperch2_resource_log
ADD UNIQUE INDEXidx_uni
(appID
,itemFK
,itemRowID
,resourceID
) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_uni' ALTER TABLEperch2_users
ADDuserPasswordToken
CHAR(255) NOT NULL DEFAULT 'expired' AFTERuserMasterAdmin
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'userPasswordToken' ALTER TABLEperch2_users
ADDuserPasswordTokenExpires
DATETIME NOT NULL DEFAULT '2015-01-01 00:00:00' AFTERuserPasswordToken
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'userPasswordTokenExpires' CREATE TABLE IF NOT EXISTSperch2_user_passwords
(passwordID
int(10) unsigned NOT NULL AUTO_INCREMENT,userID
int(10) unsigned NOT NULL,userPassword
varchar(255) NOT NULL DEFAULT '',passwordLastUsed
datetime NOT NULL DEFAULT '2000-01-01 00:00:00', PRIMARY KEY (passwordID
), KEYidx_user
(userID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ALTER TABLEperch2_users
ADDuserLastFailedLogin
DATETIME NULL AFTERuserPasswordTokenExpires
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'userLastFailedLogin' ALTER TABLEperch2_users
ADDuserFailedLoginAttempts
INT(0) UNSIGNED NOT NULL DEFAULT '0' AFTERuserLastFailedLogin
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'userFailedLoginAttempts' ALTER TABLEperch2_resources
ADD INDEXidx_list
(resourceParentID
,resourceKey
,resourceAWOL
) [1] SHOW TABLES LIKE 'perch2_resource_log' [0] SELECT COUNT(*) FROM perch2_resource_log [nil] SELECT resourceID FROM perch2_resources WHERE resourceID NOT IN (SELECT resourceID FROM perch2_resource_log) [1] SHOW TABLES LIKE 'perch2_content_index' CREATE TABLE IF NOT EXISTSperch2_content_index
(indexID
int(10) NOT NULL AUTO_INCREMENT,itemID
int(10) NOT NULL DEFAULT '0',regionID
int(10) NOT NULL DEFAULT '0',pageID
int(10) NOT NULL DEFAULT '0',itemRev
int(10) NOT NULL DEFAULT '0',indexKey
char(64) NOT NULL DEFAULT '-',indexValue
char(255) NOT NULL DEFAULT '', PRIMARY KEY (indexID
), KEYidx_key
(indexKey
), KEYidx_val
(indexValue
), KEYidx_rev
(itemRev
), KEYidx_item
(itemID
), KEYidx_keyval
(indexKey
,indexValue
), KEYidx_regrev
(regionID
,itemRev
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 CREATE TABLE IF NOT EXISTSperch2_resources
(resourceID
int(10) unsigned NOT NULL AUTO_INCREMENT,resourceApp
char(32) NOT NULL DEFAULT 'content',resourceBucket
char(16) NOT NULL DEFAULT 'default',resourceFile
char(255) NOT NULL DEFAULT '',resourceKey
enum('orig','thumb') DEFAULT NULL,resourceParentID
int(10) NOT NULL DEFAULT '0',resourceType
char(4) NOT NULL DEFAULT '', PRIMARY KEY (resourceID
), UNIQUE KEYidx_file
(resourceBucket
,resourceFile
), KEYidx_app
(resourceApp
), KEYidx_key
(resourceKey
), KEYidx_type
(resourceType
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ALTER TABLEperch2_content_items
ADD INDEXidx_regrev
USING BTREE (itemID, regionID, itemRev) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_regrev' ALTER TABLEperch2_content_items
ADD INDEXidx_order
USING BTREE (itemOrder) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_order' ALTER TABLEperch2_content_regions
ADD INDEXidx_key
USING BTREE (regionKey) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_key' ALTER TABLEperch2_content_regions
ADD INDEXidx_path
USING BTREE (regionPage) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_path' ALTER TABLEperch2_page_templates
ADDtemplateNavGroups
VARCHAR(255) NULL DEFAULT '' AFTERtemplateReference
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'templateNavGroups' CREATE TABLE IF NOT EXISTSperch2_navigation
(groupID
int(10) NOT NULL AUTO_INCREMENT,groupTitle
varchar(255) NOT NULL DEFAULT '',groupSlug
varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (groupID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 CREATE TABLE IF NOT EXISTSperch2_navigation_pages
(navpageID
int(10) unsigned NOT NULL AUTO_INCREMENT,pageID
int(10) unsigned NOT NULL DEFAULT '0',groupID
int(10) unsigned NOT NULL DEFAULT '0',pageParentID
int(10) unsigned NOT NULL DEFAULT '0',pageOrder
int(10) unsigned NOT NULL DEFAULT '1',pageDepth
tinyint(10) unsigned NOT NULL,pageTreePosition
varchar(64) NOT NULL DEFAULT '', PRIMARY KEY (navpageID
), KEYidx_group
(groupID
), KEYidx_page_group
(pageID
,groupID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC ALTER TABLEperch2_user_privileges
ADD UNIQUE INDEXidx_key
(privKey
) Invalid query: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.navgroups.configure','Configure navigation groups',7), ('content.navgroups.create','Create navigation groups',8), ('content.navgroups.delete','Delete navigation groups',9) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'content.navgroups.configure' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.pages.create.toplevel','Add new top-level pages',3) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'content.pages.create.toplevel' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.pages.delete.own','Delete pages they created themselves',4) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'content.pages.delete.own' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.templates.configure','Configure master pages',6) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'content.templates.configure' for key 'idx_key' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.pages.republish','Republish pages', 12) ALTER TABLEperch2_pages
ADDpageAccessTags
VARCHAR(255) NOT NULL DEFAULT '' AFTERpageNavOnly
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageAccessTags' ALTER TABLEperch2_pages
ADDpageCreatorID
INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTERpageAccessTags
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageCreatorID' ALTER TABLEperch2_pages
ADDpageModified
DATETIME NOT NULL DEFAULT '2014-01-01 00:00:00' AFTERpageCreatorID
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageModified' ALTER TABLEperch2_pages
ADDpageAttributes
TEXT NOT NULL AFTERpageModified
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageAttributes' ALTER TABLEperch2_pages
ADDpageAttributeTemplate
VARCHAR(255) NOT NULL DEFAULT 'default.html' AFTERpageAttributes
Invalid query: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'pageAttributeTemplate' INSERT INTOperch2_user_privileges
(privKey
,privTitle
,privOrder
) VALUES ('content.pages.attributes','Edit page titles and attributes',6) Invalid query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'content.pages.attributes' for key 'idx_key' CREATE TABLE IF NOT EXISTSperch2_user_role_privileges
(roleID
int(10) unsigned NOT NULL,privID
int(10) unsigned NOT NULL, PRIMARY KEY (roleID
,privID
) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 DELETE FROM perch2_settings WHERE settingID='update_2.8.34' AND userID=0 LIMIT 1 INSERT INTO perch2_settings(settingID,settingValue,userID) VALUES('update_2.8.34','done',0)I tried uploading through an image field as well. That doesn't work as intended either. The upload works, it recognizes the asset being linked to it. I can see it on the page when looking at the site.
However, after adding the image the image field does not change from "Select or upload an image" to what the file attached actually is. Nor does it indicate what file is attached in the asset panel when I click on the link to select or upload an image. The asset panel doesn't show preview images either, just the names like the asset page / library.
Yes, you'd expect the SQL errors, as the update tried to reinforce the state of the DB. Looks like it did fix some things though.
Do you have much content entered into this install? It sounds like something's fairly seriously wrong here.
No content really. Just started integrating perch into the design and inserting filler content to make sure it works correctly.
I take it just do a reinstall of Perch.
I would drop the database tables and do a fresh install. Keep a close eye for any errors either on the page on in the log.
The reinstall worked. Thanks for the help.
I have come across another problem with my assets that was stated in this thread. Any new image assets I upload are again not displaying a preview thumbnail in the Assets page or panel. In addition to that the upload field does not display the file that is chosen but "Select File To Upload" instead. That new chosen asset also displays just fine on the front end. However, I looked in the database and the asset is being recorded and the file is successfully processed to the resources folder.
I do want to mention prior to this I did upload 2 assets to make sure everything worked after the reinstall. Those 2 assets display as expected. I don't know what could of happened to cause the problem. I was just working with my HTML templates when it stopped working after I updated.
Do you have any idea why Perch would suddenly stop displaying previews for new assets and show them as the chosen file for the field even when it seems to be recorded every where else?
Perch is a set of deterministic code, so it won't suddenly do anything different - it something has changed then it's in the environment. Have you checked the basics like available disk space?
I checked the environment and nothing has changed there either from what I can tell. Disk space 500mb used of 100 gb is a non issue and the same with bandwidth. All the sites I have are not big and don't draw a lot of traffic.
I turned on debug and didn't notice any errors reported from Perch. It's just odd how the assets work initially as expected then new assets don't show previews but are written to and read from the database, show up on the front-end, and processed to the server yet don't show up in the field they were inserted nor display a preview. Something is amiss somewhere and I'm not sure where to look. I have only a basic understand of programming and servers. So troubleshooting on my own is difficult.
What's changed between when it was working and now?
I was working on some of my templates. The field that I was trying to upload through didn't have a label so I added one for clarity. Initially I used the same value for the label as I did the id. After my last post I tried changing the label and even id and tried uploading again, but still had the same result.
I didn't write or upload any php that was out of the ordinary either.