Forum

Thread tagged as: Problem, Runway, Field-Types

Yes, when I switch it to 'player' it just displays the text. Only 'embed' actually shows the video, but obviously with errors too at the moment.

I do have display debug switched on.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have a width set?

Yeah, it currently looks like this:

<perch:content id="brandpage_video" type="youtube" output="embed" width="1280" height="720"/>

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is it the same for all videos?

I've tried it with a couple and it doesn't change it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is this on a production server, or in development?

Its on my local machine running WAMP.

Not sure if this will help but here's a screenshot and I've also included the debug text too.

https://imgur.com/g36aju0

DEBUG MESSAGE
SELECT P.PAGEPATH, PR.ROUTEPATTERN, PR.ROUTEREGEXP, P.PAGETEMPLATE FROM BRLS_PAGES P LEFT JOIN BRLS_PAGE_ROUTES PR ON P.PAGEID=PR.PAGEID ORDER BY PR.ROUTEORDER ASC, P.PAGEPATH ASC
MATCHED ROUTE: WATCHES/[SLUG:BRAND]
USING MASTER PAGE: \TEMPLATES\PAGES\WATCH\BRAND.PHP
PAGE ARGUMENTS:
ARRAY
(
    [0] => /WATCHES/TUDOR
    [BRAND] => TUDOR
    [1] => TUDOR
)
SELECT COLLECTIONID, COLLECTIONTEMPLATE FROM BRLS_COLLECTIONS WHERE COLLECTIONKEY='BRANDS'
SELECT * FROM ( SELECT IDX.ITEMID, CI.COLLECTIONID, CI.ITEMJSON, IDX2.INDEXVALUE AS SORTVAL FROM BRLS_COLLECTION_INDEX IDX JOIN BRLS_COLLECTION_ITEMS CI ON IDX.ITEMID=CI.ITEMID AND IDX.ITEMREV=CI.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_REVISIONS CR ON IDX.ITEMID=CR.ITEMID AND IDX.ITEMREV=CR.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_INDEX IDX2 ON IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV AND IDX2.INDEXKEY='_ORDER' WHERE (IDX.COLLECTIONID=5) AND ((IDX.INDEXKEY='SLUG' AND IDX.INDEXVALUE='TUDOR')) AND IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV ) AS TBL GROUP BY ITEMID ORDER BY SORTVAL ASC LIMIT 0, 1
USING TEMPLATE: \TEMPLATES\CONTENT\WATCH\BRAND_TITLE.HTML
SELECT * FROM BRLS_PAGES WHERE PAGEPATH='/WATCHES/BRAND' LIMIT 1
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
SELECT COLLECTIONID, COLLECTIONTEMPLATE FROM BRLS_COLLECTIONS WHERE COLLECTIONKEY='BRANDS'
SELECT * FROM ( SELECT IDX.ITEMID, CI.COLLECTIONID, CI.ITEMJSON, IDX2.INDEXVALUE AS SORTVAL FROM BRLS_COLLECTION_INDEX IDX JOIN BRLS_COLLECTION_ITEMS CI ON IDX.ITEMID=CI.ITEMID AND IDX.ITEMREV=CI.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_REVISIONS CR ON IDX.ITEMID=CR.ITEMID AND IDX.ITEMREV=CR.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_INDEX IDX2 ON IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV AND IDX2.INDEXKEY='_ORDER' WHERE (IDX.COLLECTIONID=5) AND IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV ) AS TBL GROUP BY ITEMID ORDER BY SORTVAL ASC
USING TEMPLATE: \TEMPLATES\CONTENT\NAV\WATCHES.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
SELECT COLLECTIONID, COLLECTIONTEMPLATE FROM BRLS_COLLECTIONS WHERE COLLECTIONKEY='JEWELLERYTYPE'
SELECT * FROM ( SELECT IDX.ITEMID, CI.COLLECTIONID, CI.ITEMJSON, IDX2.INDEXVALUE AS SORTVAL FROM BRLS_COLLECTION_INDEX IDX JOIN BRLS_COLLECTION_ITEMS CI ON IDX.ITEMID=CI.ITEMID AND IDX.ITEMREV=CI.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_REVISIONS CR ON IDX.ITEMID=CR.ITEMID AND IDX.ITEMREV=CR.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_INDEX IDX2 ON IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV AND IDX2.INDEXKEY='_ORDER' WHERE (IDX.COLLECTIONID=8) AND IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV ) AS TBL GROUP BY ITEMID ORDER BY SORTVAL ASC
USING TEMPLATE: \TEMPLATES\CONTENT\NAV\JEWELLERY.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
SELECT PAGEID, PAGEPARENTID, PAGEDEPTH, PAGETREEPOSITION FROM BRLS_PAGES WHERE PAGEPATH='/WORKSHOP' OR PAGESORTPATH='/WORKSHOP' LIMIT 1
SELECT * FROM BRLS_PAGES WHERE PAGENEW=0 AND PAGEHIDDEN=0 AND PAGETREEPOSITION LIKE '000-004%' AND PAGEDEPTH >=1 AND PAGEDEPTH<=2 ORDER BY PAGETREEPOSITION ASC
SELECT PAGETREEPOSITION FROM BRLS_PAGES WHERE PAGEPATH='/WATCHES/BRAND' LIMIT 1
SELECT PAGEID FROM BRLS_PAGES WHERE PAGETREEPOSITION IN ('000-002-001', '000-002', '000')
USING TEMPLATE: \TEMPLATES\NAVIGATION\SUBITEMS.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
SELECT PAGEID, PAGEPARENTID, PAGEDEPTH, PAGETREEPOSITION FROM BRLS_PAGES WHERE PAGEPATH='/DISCOVER-BURRELLS' OR PAGESORTPATH='/DISCOVER-BURRELLS' LIMIT 1
SELECT * FROM BRLS_PAGES WHERE PAGENEW=0 AND PAGEHIDDEN=0 AND PAGETREEPOSITION LIKE '000-005%' AND PAGEDEPTH >=1 AND PAGEDEPTH<=2 ORDER BY PAGETREEPOSITION ASC
SELECT PAGETREEPOSITION FROM BRLS_PAGES WHERE PAGEPATH='/WATCHES/BRAND' LIMIT 1
SELECT PAGEID FROM BRLS_PAGES WHERE PAGETREEPOSITION IN ('000-002-001', '000-002', '000')
USING TEMPLATE: \TEMPLATES\NAVIGATION\SUBITEMS.HTML
USING TEMPLATE: \TEMPLATES\PAGES\ATTRIBUTES\DEFAULT.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/SEO.HTML
USING SUB-TEMPLATE: \TEMPLATES\PAGES/ATTRIBUTES/BURRELLS.HTML
SELECT * FROM BRLS_PAGES WHERE PAGENEW=0 AND PAGEHIDDEN=0 AND PAGEDEPTH >=0 AND PAGEDEPTH<=1 ORDER BY PAGETREEPOSITION ASC
SELECT PAGETREEPOSITION FROM BRLS_PAGES WHERE PAGEPATH='/WATCHES/BRAND' LIMIT 1
SELECT PAGEID FROM BRLS_PAGES WHERE PAGETREEPOSITION IN ('000-002-001', '000-002', '000')
USING TEMPLATE: \TEMPLATES\NAVIGATION\SUBITEMS.HTML
SELECT * FROM ( SELECT IDX.ITEMID, CI.COLLECTIONID, CI.ITEMJSON, IDX2.INDEXVALUE AS SORTVAL FROM BRLS_COLLECTION_INDEX IDX JOIN BRLS_COLLECTION_ITEMS CI ON IDX.ITEMID=CI.ITEMID AND IDX.ITEMREV=CI.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_REVISIONS CR ON IDX.ITEMID=CR.ITEMID AND IDX.ITEMREV=CR.ITEMREV AND IDX.COLLECTIONID=CI.COLLECTIONID JOIN BRLS_COLLECTION_INDEX IDX2 ON IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV AND IDX2.INDEXKEY='_ORDER' WHERE (IDX.COLLECTIONID=5) AND ((IDX.INDEXKEY='SLUG' AND IDX.INDEXVALUE='TUDOR')) AND IDX.ITEMID=IDX2.ITEMID AND IDX.ITEMREV=IDX2.ITEMREV ) AS TBL GROUP BY ITEMID ORDER BY SORTVAL ASC LIMIT 0, 1
USING TEMPLATE: \TEMPLATES\CONTENT\WATCH\BRAND.HTML
SELECT REGIONKEY, REGIONHTML FROM BRLS_CONTENT_REGIONS WHERE REGIONPAGE='/WATCHES/BRAND' OR REGIONPAGE='*' ORDER BY REGIONPAGE DESC
TIME: 0.1774
MEMORY: 4.7291
ARRAY
(
    [TYPE] => 8
    [MESSAGE] => UNDEFINED INDEX: HEIGHT
    [FILE] => E:\WAMP\WWW\PERCH\ADDONS\FIELDTYPES\YOUTUBE\YOUTUBE.CLASS.PHP
    [LINE] => 114
)
Drew McLellan

Drew McLellan 2638 points
Perch Support

How are you displaying the video on the page?

Just using the perch:content link:

<div class="center">

        <p><perch:content id="brandpage_image" /></p>

        <div style="max-width:100%;"><perch:content id="brandpage_video" type="youtube" output="embed" width="1280" height="720"/></div>

</div>

The final source:

<div class="center">

        <p></p>

        <div style="max-width:100%;"><iframe width="1280" height="720" src="https://www.youtube.com/embed/pCClMj-gsog?" frameborder="0" allowfullscreen></iframe></div>

    </div>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is it using a perch_content() region?

I don't believe so, it's pulling it from a Collection.

<section>

        <?php 

            perch_collection('brands',[
                'template' => 'watch/brand.html',
                'filter' => 'slug',
                'match'  => 'eq',
                'value'  => perch_get('brand'),
                'count' => 1
            ]);

        ?>

    </section>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are the template tags for the video the same in both the collection template and watch/brand.html ?

watch/brand.html (the output)

<perch:content id="brandpage_video" type="youtube" output="embed" width="1280" height="720"/>

data/watches/brand.html (the input)

<p><perch:content id="brandpage_video" type="youtube" label="YouTube URL"/></p>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you try adding the same options to the input template?

I've just given that a try and it's not changed it. The input page displays everything ok, loads the video up without any errors.

<p><perch:content id="brandpage_video" type="youtube" label="YouTube URL" output="embed" width="1280" height="720"/></p>
Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you re-save the content item?

I did yes, when out and saved it again too just to make sure.

You'll like this. Not a lot, but you'll like it.

I've put it on the staging server and I don't get the error. Therefore it must be something to do with WAMP. Which tbh, I can ignore.