Forum

Thread tagged as: Question, Problem

Struggling to create new regions on my hosting environment

Hi there,

On our new hosting environment we can't create new region anymore. e.g on my master page if I add <?php perch_content('Intro'); ?> and reload the page the region doesn't appear in the control panel.

The hosting company is struggling with it because there is no error logs on the server so they are struggling to debug it. Can you see anything with this?

Here is my DEBUG message

Time    Δ   Debug Message
0.0205  0   [178] SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate FROM perch2_pages p LEFT JOIN perch2_page_routes pr ON p.pageID=pr.pageID ORDER BY pr.routeOrder ASC, p.pagePath ASC
0.0297  0.0091  Matched page: /club/contact-centre/competition, so not using routes.
0.0297  0.0001  Using master page: /templates/pages/cm_form.php
0.0317  0.002   [1] SELECT * FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.0343  0.0027  Using template: /templates/pages/attributes/seo.html
0.0346  0.0003  [nil] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='First Team' AND (regionPage='/club/contact-centre/competition' OR regionPage='*')
0.0361  0.0015  No matching content regions found. Check region name (First Team) and page path options.
0.0361  0   [nil] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE idx.regionID IS NULL AND ((idx.indexKey='slug' AND idx.indexValue='')) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval ASC LIMIT 0, 1
0.0377  0.0015  Using template: /templates/content/squad/team_detail_desc.html
0.0378  0.0002  Using template: /templates/pages/attributes/tracking_code.html
0.038   0.0002  [13] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageDepth >=0 AND pageDepth<=1 ORDER BY pageTreePosition ASC
0.0407  0.0027  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.0419  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.0435  0.0015  [13] Using template: /templates/navigation/mobile-navigation.html
0.0445  0.001   [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/tickets' OR pageSortPath='/tickets' LIMIT 1
0.0459  0.0014  [10] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-002%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.0481  0.0022  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.0493  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.0505  0.0012  [9] Using template: /templates/navigation/nav_item.html
0.0513  0.0007  [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='Spotlights' AND (regionPage='/club/contact-centre/competition' OR regionPage='*')
0.0531  0.0019  [1] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/tickets%'))
0.0547  0.0016  [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('589') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.0584  0.0037  [1] Using template: /templates/content/spotlights.html
0.0603  0.0019  [1] SELECT setID FROM perch2_category_sets WHERE setSlug='blog' LIMIT 1
0.0617  0.0014  [10] SELECT main.* , COALESCE(cc.countValue,0) AS `count.blog.post` FROM perch2_categories main LEFT OUTER JOIN perch2_category_counts cc ON cc.catID=main.catID WHERE 1=1 AND setID=4 AND (cc.countType='blog.post' OR cc.countType IS NULL) AND cc.countValue > 0 ORDER BY catTreePosition ASC
0.0649  0.0032  [38] SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0
0.0674  0.0025  [10] Using template: /templates/blog/category_page_dropdown.html
0.0683  0.0009  [1] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/news%'))
0.0698  0.0015  [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('227') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.0734  0.0036  [1] Using template: /templates/content/spotlights.html
0.0737  0.0003  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/tv' OR pageSortPath='/tv' LIMIT 1
0.0753  0.0015  [2] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-004%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.0772  0.0019  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.0785  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.08    0.0015  [1] Using template: /templates/navigation/nav_item.html
0.0802  0.0002  [1] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/tv%'))
0.0817  0.0015  [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('227') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.0854  0.0036  [1] Using template: /templates/content/spotlights.html
0.0858  0.0004  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/fixtures' OR pageSortPath='/fixtures' LIMIT 1
0.0873  0.0015  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-008%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.0896  0.0023  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.0916  0.0019  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.0939  0.0023  [8] Using template: /templates/navigation/nav_item.html
0.0951  0.0012  [1] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/fixtures%'))
0.0981  0.003   [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('589') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.1026  0.0046  [1] Using template: /templates/content/spotlights.html
0.1032  0.0005  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/teams' OR pageSortPath='/teams' LIMIT 1
0.1059  0.0027  [10] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-009%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.1082  0.0023  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.1096  0.0015  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.1113  0.0016  [9] Using template: /templates/navigation/nav_item.html
0.1124  0.0012  [3] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/teams%'))
0.1141  0.0017  [2] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('589', '454', '455') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.1197  0.0056  [2] Using template: /templates/content/spotlights.html
0.1205  0.0008  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/club' OR pageSortPath='/club' LIMIT 1
0.122   0.0015  [11] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-010%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.1246  0.0026  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.126   0.0014  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.1275  0.0015  [10] Using template: /templates/navigation/nav_item.html
0.1289  0.0014  [2] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/club%'))
0.1307  0.0018  [2] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('589', '227') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.136   0.0053  [2] Using template: /templates/content/spotlights.html
0.1368  0.0008  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/visit' OR pageSortPath='/visit' LIMIT 1
0.1384  0.0016  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-011%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.1407  0.0023  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.142   0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.1435  0.0015  [8] Using template: /templates/navigation/nav_item.html
0.1447  0.0012  [3] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/visit%'))
0.1468  0.0022  [2] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('589', '457', '458') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.1522  0.0054  [2] Using template: /templates/content/spotlights.html
0.153   0.0008  [1] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/business%'))
0.1546  0.0015  [1] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('459') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.1576  0.0031  [1] Using template: /templates/content/spotlights.html
0.1581  0.0005  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/community-education' OR pageSortPath='/community-education' LIMIT 1
0.1596  0.0014  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-013%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.1623  0.0027  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.1636  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.1669  0.0033  [8] Using template: /templates/navigation/nav_item.html
0.1683  0.0013  [2] SELECT idx.itemID FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND ((idx.indexKey='_category' AND idx.indexValue LIKE 'spotlights/community-education%'))
0.17    0.0018  [2] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='dateTime' WHERE ((idx.regionID=541 AND idx.itemRev=124)) AND idx.itemID IN ('462', '461') AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval DESC LIMIT 0, 2
0.1744  0.0044  [2] Using template: /templates/content/spotlights.html
0.1752  0.0008  Using template: /templates/search/search-form.html
0.1754  0.0002  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' OR pageSortPath='/club/contact-centre/competition' LIMIT 1
0.1771  0.0017  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pageTreePosition='000-010' LIMIT 1
0.1785  0.0014  [11] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-010%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
0.1812  0.0027  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
0.1826  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
0.1842  0.0017  [1] Using template: /templates/navigation/page_subsection.html
0.1881  0.0039  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' OR pageSortPath='/club/contact-centre/competition' LIMIT 1
0.1903  0.0023  [2] SELECT * FROM perch2_pages WHERE pageHidden=0 AND pageNew=0 AND pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition
0.1926  0.0023  [2] Using template: /templates/navigation/breadcrumbs.html
0.1931  0.0005  [7] SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/club/contact-centre/competition' OR regionPage='*' ORDER BY regionPage DESC
0.1955  0.0024  [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='Page Body' AND (regionPage='/club/contact-centre/competition' OR regionPage='*')
0.197   0.0016  [nil] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=839 AND idx.itemRev=0)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval ASC
0.2085  0.0114  Using template: /templates/content/text_block.html
0.2088  0.0004  [3] SELECT SQL_CALC_FOUND_ROWS DISTINCT tbl.* FROM ( SELECT idx.itemID, main.*, idx2.indexValue as sortval FROM perch2_blog_index idx JOIN perch2_blog_posts main ON idx.itemID=main.postID AND idx.itemKey='postID' JOIN perch2_blog_index idx2 ON idx.itemID=idx2.itemID AND idx.itemKey='postID' AND idx2.indexKey='postDateTime' WHERE 1=1 AND idx.itemID=idx2.itemID AND idx.itemKey=idx2.itemKey GROUP BY idx.itemID, idx2.indexValue, postID ) as tbl WHERE (postStatus='Published' AND postDateTime<='2016-10-28 16:45:00' ) GROUP BY itemID, sortval ORDER BY sortval DESC LIMIT 0, 3
3.0836  2.8748  [1] SELECT FOUND_ROWS() AS `count`
3.0857  0.002   [3] Using template: /templates/blog/sidebar_post_in_list.html
3.0863  0.0007  [1] SELECT * FROM perch2_blog_sections ORDER BY sectionTitle ASC
3.088   0.0017  [1] SELECT * FROM perch2_blogs ORDER BY blogTitle ASC
3.0905  0.0025  [1] SELECT regionID, regionTemplate, regionPage, regionRev AS rev FROM perch2_content_regions WHERE regionKey='Special Features' AND (regionPage='/special-features' OR regionPage='*')
3.0923  0.0017  [10] SELECT * FROM ( SELECT idx.itemID, c.regionID, idx.pageID, c.itemJSON, idx2.indexValue as sortval FROM perch2_content_index idx JOIN perch2_content_items c ON idx.itemID=c.itemID AND idx.itemRev=c.itemRev AND idx.regionID=c.regionID JOIN perch2_content_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE ((idx.regionID=397 AND idx.itemRev=197)) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, pageID, itemJSON, sortval ORDER BY sortval ASC
3.1161  0.0238  [10] Using template: /templates/content/special_features.html
3.1192  0.0031  [1] SELECT collectionID, collectionTemplate FROM perch2_collections WHERE collectionKey='Partners'
3.1211  0.0019  [26] SELECT * FROM ( SELECT idx.itemID, ci.collectionID, ci.itemJSON, idx2.indexValue as sortval FROM perch2_collection_index idx JOIN perch2_collection_items ci ON idx.itemID=ci.itemID AND idx.itemRev=ci.itemRev AND idx.collectionID=ci.collectionID JOIN perch2_collection_revisions cr ON idx.itemID=cr.itemID AND idx.itemRev=cr.itemRev AND idx.collectionID=ci.collectionID JOIN perch2_collection_index idx2 ON idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev AND idx2.indexKey='_order' WHERE (idx.collectionID=4) AND idx.itemID=idx2.itemID AND idx.itemRev=idx2.itemRev ) as tbl GROUP BY itemID, itemJSON, sortval ORDER BY sortval ASC
3.1323  0.0112  [26] Using template: /templates/content/partners.html
3.1346  0.0023  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/tickets' OR pageSortPath='/tickets' LIMIT 1
3.1366  0.0021  [10] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-002%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1388  0.0022  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.14    0.0012  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1427  0.0027  [1] Using template: /templates/navigation/footer_item.html
3.1445  0.0018  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/club' OR pageSortPath='/club' LIMIT 1
3.1459  0.0015  [11] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-010%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1483  0.0024  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.1497  0.0014  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1515  0.0018  [1] Using template: /templates/navigation/footer_item.html
3.1538  0.0023  [1] SELECT setID FROM perch2_category_sets WHERE setSlug='blog' LIMIT 1
3.1557  0.0019  [10] SELECT main.* , COALESCE(cc.countValue,0) AS `count.blog.post` FROM perch2_categories main LEFT OUTER JOIN perch2_category_counts cc ON cc.catID=main.catID WHERE 1=1 AND setID=4 AND (cc.countType='blog.post' OR cc.countType IS NULL) AND cc.countValue > 0 ORDER BY catTreePosition ASC
3.1581  0.0024  [10] Using template: /templates/blog/category_footer_link.html
3.1588  0.0007  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/community-education' OR pageSortPath='/community-education' LIMIT 1
3.1602  0.0014  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-013%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1628  0.0026  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.1641  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1655  0.0014  [1] Using template: /templates/navigation/footer_item.html
3.1672  0.0017  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/fixtures' OR pageSortPath='/fixtures' LIMIT 1
3.1687  0.0014  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-008%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1709  0.0022  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.1731  0.0023  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1746  0.0015  [1] Using template: /templates/navigation/footer_item.html
3.1762  0.0016  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/business-club' OR pageSortPath='/business-club' LIMIT 1
3.1777  0.0014  [5] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-022%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1801  0.0024  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.1822  0.0022  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1838  0.0015  [1] Using template: /templates/navigation/footer_item.html
3.1854  0.0017  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/teams' OR pageSortPath='/teams' LIMIT 1
3.1873  0.0019  [10] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-009%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1895  0.0022  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.1908  0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.1925  0.0018  [1] Using template: /templates/navigation/footer_item.html
3.1955  0.0029  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/visit' OR pageSortPath='/visit' LIMIT 1
3.197   0.0015  [9] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-011%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.1992  0.0022  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.2003  0.0011  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.2017  0.0014  [1] Using template: /templates/navigation/footer_item.html
3.2043  0.0026  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/tv' OR pageSortPath='/tv' LIMIT 1
3.2059  0.0015  [2] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-004%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.2077  0.0019  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.209   0.0013  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.2103  0.0013  [1] Using template: /templates/navigation/footer_item.html
3.2111  0.0008  [1] SELECT pageID, pageParentID, pageDepth, pageTreePosition FROM perch2_pages WHERE pagePath='/store' OR pageSortPath='/store' LIMIT 1
3.2126  0.0015  [1] SELECT * FROM perch2_pages WHERE pageNew=0 AND pageHidden=0 AND pageTreePosition LIKE '000-005%' AND pageDepth >=1 AND pageDepth<=2 ORDER BY pageTreePosition ASC
3.2146  0.0019  [1] SELECT pageTreePosition FROM perch2_pages WHERE pagePath='/club/contact-centre/competition' LIMIT 1
3.2158  0.0012  [3] SELECT pageID FROM perch2_pages WHERE pageTreePosition IN ('000-010-008-012', '000-010-008', '000-010', '000') ORDER BY pageTreePosition DESC
3.2174  0.0016  [1] Using template: /templates/navigation/footer_item.html
3.2179  0.0005  Request time: 3.2179
3.2179  0   Process time: 3.217
3.2179  0   Memory: 3.6032

Also here is the Diagnostic report

PERCH INFORMATION

Perch Runway: 2.8.29
Production mode: Development (10)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), perch_forms (1.8.3), perch_gallery (2.8.6)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (17), perch2_blog_comments (0), perch2_blog_index (270223), perch2_blog_posts (11591), perch2_blog_posts_to_tags (4107), perch2_blog_sections (1), perch2_blog_tags (862), perch2_blogs (1), perch2_categories (19), perch2_category_counts (10), perch2_category_sets (2), perch2_collection_index (424), perch2_collection_items (103), perch2_collection_revisions (32), perch2_collections (2), perch2_content_index (36629), perch2_content_items (4029), perch2_content_regions (274), perch2_forms (25), perch2_forms_responses (4615), perch2_gallery_albums (74), perch2_gallery_image_versions (14200), perch2_gallery_images (1420), perch2_kraken_jobs (0), perch2_navigation (0), perch2_navigation_pages (1), perch2_page_routes (54), perch2_page_templates (92), perch2_pages (166), perch2_resource_log (27778), perch2_resource_tags (362), perch2_resources (11597), perch2_resources_to_tags (1067), perch2_scheduled_tasks (1), perch2_settings (42), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (1), perch2_twitter_tweets (399), perch2_user_passwords (2), perch2_user_privileges (45), perch2_user_role_privileges (15), perch2_user_roles (2), perch2_users (18)
Users: 18
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_blog',
        'ftc_html_helper',
        'ftc_sport_radar',
        'perch_gallery',
        'perch_forms',
        'ftc_kaltura',
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: fedbf7f60add9ef5e7ed2cdc53ec2a1c
L1: 36a56a90021366a6d13248c6cf9b2c78
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #a91b32
content_singlePageEdit: 0
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.7.2: done
headerScheme: dark
latest_version: 2.8.15
on_sale_version: 2.8.32
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 1
logoPath: /admin/resources/wigan_logo_smaller.png
perch_blog_update: 5.0.1
perch_blog_post_url: /news/{postSlug}
update_2.7.4: done
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key: 9b661c5390d1
perch_blog_max_spam_days: 1
perch_blog_comment_notify: 0
update_2.7.10: done
perch_twitter_update: 3.5
update_2.8.4: done
perch_gallery_update: 2.8.5
perch_gallery_bucket_mode: dynamic
perch_gallery_bucket: gallery
perch_gallery_basicUpload: 0
update_runway_2.8.8: done
update_runway_2.8.10: done
update_runway_2.8.11: done
update_runway_2.8.12: done
update_runway_2.8.13: done
update_runway_2.8.17: done
update_runway_2.8.21: done
update_runway_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /var/www/html/wiganwar/staging/public_html
PERCH_SCHEDULE_SECRET: HNa1wYd6qg2mEsBS
PERCH_DB_USERNAME: wiganwar_runway
PERCH_DB_SERVER: 87.117.230.251
PERCH_DB_DATABASE: wiganwar_runway
PERCH_DB_PREFIX: perch2_
PERCH_PRODUCTION_MODE: 10
PERCH_EMAIL_FROM: chris@fishtankcreative.co.uk
PERCH_EMAIL_FROM_NAME: Chris Gorrod
PERCH_LOGINPATH: /admin
PERCH_PATH: /var/www/html/wiganwar/staging/public_html/admin
PERCH_CORE: /var/www/html/wiganwar/staging/public_html/admin/core
PERCH_RESFILEPATH: /var/www/html/wiganwar/staging/public_html/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/London
PERCH_CLEAN_RESOURCES:
PERCH_RUNWAY: 1
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/html/wiganwar/staging/public_html/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 7.0.11
Zend: 3.0.0
OS: Linux
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: 241ae00989d1995ffcbbf63d579943635faf9972 $
MySQL server: 5.5.5-10.1.18-MariaDB
Free disk space: 23.33 GB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, gmp, SPL, iconv, intl, json, mbstring, mcrypt, session, standard, mysqlnd, PDO, pdo_mysql, Phar, posix, pspell, Reflection, mysqli, shmop, SimpleXML, snmp, soap, sockets, exif, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, apache2handler
GD: Yes
ImageMagick: No
PHP max upload size: 512M
PHP max form post size: 512M
PHP memory limit: 512M
Total max uploadable file size: 512M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
UNIQUE_ID: WBN0TkSuRaz3zCCHFTKRvwAAAAc
HTTP_HOST: wiganwarriors.com
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.28 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://wiganwarriors.com/admin/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,fr;q=0.6
HTTP_COOKIE: cb-enabled=accepted; cmsa=1; _gat=1; _ga=GA1.2.1859064619.1476260663; PHPSESSID=d5s9trn7o1coou19f55k3cmoa7
HTTP_X_FORWARDED_PORT: 80
HTTP_X_FORWARDED_FOR: 86.2.230.214
HTTP_CONNECTION: close
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
SERVER_SOFTWARE: Apache
SERVER_NAME: wiganwarriors.com
SERVER_ADDR: 87.117.252.147
SERVER_PORT: 80
REMOTE_ADDR: 87.117.230.251
DOCUMENT_ROOT: /var/www/html/wiganwar/staging/public_html/
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /var/www/html/wiganwar/staging/public_html/
SERVER_ADMIN: bp@bwf.co
SCRIPT_FILENAME: /var/www/html/wiganwar/staging/public_html/admin/core/settings/diagnostics/index.php
REMOTE_PORT: 43345
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1477669966.461
REQUEST_TIME: 1477669966

This is my last reply from the hosting company

I am not getting anywhere with this I'm afraid. Can I ask you to debug this with perch as I cannot find anything in the standard logs to indicate what is going wrong. I am hoping perch will be have a debugger switch that could be used to show an error. With an error to work from, I should be able to resolve it for you. At the moment, there is nothing to go on and I am stabbing in the dark, so to speak.

Thanks so much for your help

Fishtank Creative

Fishtank Creative 2 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't see Intro anywhere in that debug. Are you sure you're editing the right master page?

Sorry this is in a cluster set up. I think the page hadn't replicated across all servers.

I only have a screenshot of the new DEBUG message, maybe you could see something from this

You may need to open this image in a new tab to see it in full quality.

DEBUG Message

Thanks for this

Drew McLellan

Drew McLellan 2638 points
Perch Support

You see the errors in red?

I've passed this onto the hosting company.

This is what the hosting company have said

Then here is the problem. The new setup has slave databases. These are not writeable and can only be read from. The issue you are facing is that perch is requiring you to visit the page to populate the information to the database. This would be fine in a singular instance but you are now on a clustered mysql setup so the databases cannot be written to unless you are on the master server.

Is there anything you can advise on perch working on a clustered environment with multiple DB servers, One master (DB writes) and 4 slaves (DB Reads)?

Thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

You need to make sure that whenever you write to the database you're doing on the master. That's going to be critical for apps like Blog and Forms which write data from the front end, and obviously for any control panel use.

So the problem we face is on some master pages there are perch regions so when the client creates a new page or in this specific case changes the master page on a page the regions are not being generated due to them (the client) being on one of the 4 read only slaves.

Here is more of what the hosting company have said

The new setup offsets the MySQL load using 'read-only' slaves. Unless you are on the master web server, you cannot insert into the database. I was not aware that perch CMS required you to visit a page you create first in order to propagated the regions to the admin CMS. I thought this would all be done via the admin panel of your site and I was wrong in this assumption. Unfortunately the best fix is for editors to use the host file edit.

I'm not sure what to do here.

This is a follow up from our hosting company.

I apologise for the frustrations here. This appears to me to be a limitation of perch in a clustered environment whereby you need to visit a page to propagate to a database. In a singular database server set up this is fine but as you are on a balanced solution it is causing the issue.

In order to cope with a read heavy environment as you know we deployed a master DB servers that people write to and a number of read only slave databases that people read from (ie. people visiting the website). As perch requires you to visit a web page to propagate the regions to the database we need to set the editor's computers doing this to load from the Master Database - I've spoken to the team and we can see no way around this as Perch requires a page to be visited before the regions can be propagated to the database so you need to load that page from the master web. We did not know about this requirement of Perch so unfortunately could not have foreseen this, we're not developers so are learning perch as we go along here.

If [client] have a dedicated IP we can add that to the load balancer so they always get access to the Master web as you need to make sure whenever you write to the database you write to the master DB (and the master web always accesses the master db). However if they were editing on the move this would be an issue as if their IP changed it would not go to the Master by default. This is a limitation of this setup and there is nothing we can do about that I'm afraid.

Unfortunately this will happen using Perch in a clustered environment like this so [client] will need to work around it if they want to run their Perch website on such a setup.

Can you advise anything here to the hosting company or to us to get some sort of solution other than getting the clients IP address on the load balancer?

Thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

You'll have the same issue with Blog comments and Forms too.

Can you set up a different URL for administration that always hits your master?

But we seem to be facing issues when generating regions when we refresh the new page the regions don't get created due to the front end being on one of the slaves.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, I understand the problem. If you have a different URL for admin then the new pages will be loaded on that URL and the regions will be created.

Are there any negatives / problems with having a different URL?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Not from my point of view.

This is the process our hosting company has suggested to get this working

The process to assign a subdomain for the admin section is fairly straight-forward. We first need to identify what subdomain to use, from a security standpoint I'd recommend avoiding the obvious choices such as admin.domainname.com.

Then you'll need to point the A record for that subdomain to XX.XXX.XXX.XXX and once that's done we'll begin working on moving the Perch admin files to that subdomain.

What do we need to do to get this working on a sub domain. I take it we would need to change the config and config.local files. How would you go about this?

Thanks

Drew McLellan

Drew McLellan 2638 points
Perch Support

No, you shouldn't need to change anything. Leave the Perch folder where it is, just point the new domain to the same location as the main one. So

 secret-admin.domainname.com/perch