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
)
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.
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"/>
Is it the same for all videos?
I've tried it with a couple and it doesn't change it.
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
How are you displaying the video on the page?
Just using the perch:content link:
The final source:
Is it using a
perch_content()
region?I don't believe so, it's pulling it from a Collection.
Are the template tags for the video the same in both the collection template and
watch/brand.html
?watch/brand.html (the output)
data/watches/brand.html (the input)
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.
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.