Forum
Odd image select upload field showing in region edit screen
Hi I have an odd 'Select or upload an image' field present in a Region edit screen. It seems to have no origin in the template.
I have recreated both the page and the region content templates but it persists.
The page has a repeater block with an image add field.
This 'extra' unwanted 'image select/upload' is outside the repeater block in admin but has the same id as the 'image select field' in the repeater edit block.
Any ideas how I can remove?
Thanks
SELECT u.*, r.* FROM sqhc_users u, sqhc_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='561bb83c53b25b60c2243480ead43a9a' LIMIT 1
UPDATE sqhc_users SET userHash='3880ef86cb8c6ba45128b4f4238c20e6' WHERE userID='1'
[39] SELECT p.privKey FROM sqhc_user_privileges p
[25] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM sqhc_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
[3] SELECT collectionID, collectionKey, collectionEditRoles FROM sqhc_collections WHERE collectionInAppMenu=1 ORDER BY collectionOrder ASC
[1] SELECT * FROM sqhc_content_regions WHERE regionID=199 LIMIT 1
[1] SELECT * FROM sqhc_pages WHERE pageID='69' LIMIT 1
[1] SELECT * FROM sqhc_content_items WHERE regionID=199 AND itemRev=4 ORDER BY itemOrder ASC
[1] SELECT * FROM sqhc_content_items WHERE regionID=199 AND itemRev=4 ORDER BY itemOrder ASC
Using template: /templates/content/content_panel_bottom.html
Form not posted or did not validate
Queries: 10
Memory: 4.9355
Diagnostic report -
Perch Runway: 2.8.34, PHP: 5.6.25, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_blog (5.0), perch_forms (1.8.3), collection_6 (2.8.34), collection_8 (2.8.34), collection_7 (2.8.34)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', 'overlay_form_submission', );
PERCH_LOGINPATH: /site-admin
PERCH_PATH: /Applications/MAMP/htdocs/sqhc/site-admin
PERCH_CORE: /Applications/MAMP/htdocs/sqhc/site-admin/core
PERCH_RESFILEPATH: /Applications/MAMP/htdocs/sqhc/site-admin/resources
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
HTTP_HOST: sqhc:8888
DOCUMENT_ROOT: /Applications/MAMP/htdocs/sqhc
REQUEST_URI: /site-admin/core/settings/diagnostics/
SCRIPT_NAME: /site-admin/core/settings/diagnostics/index.php
Can we see the offending template?
Hi Drew It actually happens on 2, both very similar.
Thanks
It will be the first of those (illegally named)
page-image
image tags at the bottom of the template.Ah ok of course.
Had also forgotten the rule regarding ids only using underscores.
I have used the same named id elsewhere in site without issue. Would you advise I go through and re-name page-image to page_image or is it safe to leave as is if not causing a problem?
Many thanks Keith
I would suggest renaming them as changes in the future to the template engine might cause unwanted issues.
Thanks for the advice. Best way to do this? If I simply rename the field in the html templates and then re-select the image for each page will Runway clean up after me? Keith
Yes, it'll clean up after you.