Thread tagged as: Problem, Runway

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?


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
Keith Winter

Keith Winter 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can we see the offending template?

Hi Drew It actually happens on 2, both very similar.

<perch:repeater id="content-panel-top" label="Top Panel" max="4">


        <div class="col-md-12">
            <div class="panel-box-full">
                <div class="row">

                    <perch:if exists="page-image">
                        <div class="col-xs-12 col-md-4 pull-right">
                            <div class="img-holder bg-img eh-2" style='background-image:url(<perch:content type="image" id="page-image" label="Image" width="310" suppress="false" required="false" order="3" />)'></div>
                    <perch:else />
                        <div class="col-xs-12 col-md-4 pull-right">
                            <div class="img-holder bg-img-none eh-2"></div>

                    <div class="col-xs-12 col-md-8 pull-left eh-2">
                        <div class="text-wrap">
                            <h2><perch:content id="Header" type="text" label="Header" required="true" title="true" order="1" /></h2>
                            <perch:content id="Text" type="textarea" label="Text" required="true" title="false" markdown="true" editor="markitup" size="l" order="2" help="Full width single row text region with image on right" />



<perch:content type="image" id="page-image" label="Image" width="1920" suppress="true" />
<perch:content type="image" id="page-image" label="Image" width="800" suppress="true" />
<perch:content type="image" id="page-image" label="Image" width="650" suppress="true" />
<perch:content type="image" id="page-image" label="Image" width="480" suppress="true" />


Drew McLellan

Drew McLellan 2638 points
Perch Support

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

Rachel Andrew

Rachel Andrew 394 points
Perch Support

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

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, it'll clean up after you.