Forum

Thread tagged as: Problem, Runway

View Page does not render in Firefox 52.0.2

When working in the up-to-date version of Firefox and Perch Runway, View Page does not render the page, merely leaves me on the edit page. Everything seems to work fine in Chrome. Has anyone else experienced problems specific to Firefox?

Some of my html files contain an underscore and/or a finishing numeral. Same with some id's. Can this cause a problem?

This is on a dev site, and any number of pages, though not all, present the same problem.

Diaagnostics:


Perch Runway: 3.0.1, PHP: 5.6.28, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO Server OS: Darwin, apache2handler Installed apps: content (3.0.1), assets (3.0.1), categories (3.0.1), perch_blog (5.5), perch_forms (1.9), perch_gallery (2.8.8), perch_shop_orders (1.1), perch_shop_products (1.1), perch_shop (1.1), perch_members (1.6) App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', 'perch_gallery', 'perch_members', 'perch_shop' ); PERCH_LOGINPATH: /perch PERCH_PATH: /Applications/MAMP/htdocs/jr_found/perch PERCH_CORE: /Applications/MAMP/htdocs/jr_found/perch/core PERCH_RESFILEPATH: /Applications/MAMP/htdocs/jr_found/perch/resources Image manipulation: GD PHP limits: Max upload 32M, Max POST 32M, Memory: 128M, Total max file upload: 32M F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7 Resource folder writeable: Yes HTTP_HOST: jr.dev DOCUMENT_ROOT: /Applications/MAMP/htdocs/jr_found REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

Here is a typical template:

<!--Begin grid defined area with horizontal row announce, 1 image, and text-->
<div class="announcegrid announcehorrow1">
      <div class="rowannounce">
        <h2><perch:content type="text" id="rowannouncehor" label="This text is a label for the text and image(s) grouped together" html="true" title="true"/>
        </h2>
      </div>
        <!--Begin written content here-->
        <div class="announcetxt">
          <h2><perch:content type="text" id="announcetxthead" label="Headline for the text area." /></h2>
            <perch:content type="textarea" id="announcetxt" label="Body text to describe this section" size="m" markdown="true" editor="markitup" />
        </div>
        <!--End written content-->      
          <!--Begin single image-->
          <div class="announceimg1"><!--Add detail image-->
              <img  src="<perch:content type="image" id="announceimg1" label="Detail image" />" alt="<perch:content type="text" id="altdetimg1" label="Description" help="alternative description for screen reader etc." title="true" bucket="images" />" />
          </div><!--End single image-->                 
</div>
  <!--End grid defined area with row announce, 1 Image, and text-->

Here is the debug on the edit page having clicked View Page in Firefox- remaining on the edit page:

Debug Message - Perch Runway 3.0.1
[1] SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='a43563577b29810e3ca56796ae51d65e' LIMIT 1
UPDATE perch2_users SET userHash='65c73a382f3c9a1b1b0b5740bcb87991' WHERE userID='1'
[77] SELECT p.privKey FROM perch2_user_privileges p
[19] SELECT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID ASC
[13] SELECT itemValue FROM perch2_menu_items WHERE itemType='app'
[1] SELECT * FROM perch2_content_regions WHERE regionID=123 LIMIT 1
UPDATE perch2_content_regions SET regionMultiple='1', regionSearchable='1', regionTemplate='rowannouncehor.html', regionKey='Hor Announce- 1 Label and 1 Image', regionEditRoles='*' WHERE regionID='123'
UPDATE perch2_content_regions SET regionOptions='{\"edit_mode\":\"singlepage\",\"searchURL\":\"\",\"title_delimit\":\"\",\"adminOnly\":0,\"addToTop\":\"0\",\"limit\":\"\",\"column_ids\":[],\"sortOrder\":\"ASC\",\"sortField\":\"\"}' WHERE regionID='123'
[1] SELECT * FROM perch2_content_items c WHERE c.regionID=123 AND c.itemRev=3 ORDER BY c.itemOrder ASC
[1] Using template: /templates/content/rowannouncehor.html
UPDATE perch2_content_regions SET regionHTML='<!--Begin grid defined area with horizontal row announce, 1 image, and text-->\n<div class=\"announcegrid announcehorrow1\">\n <div class=\"rowannounce\">\n <h2>\n </h2>\n </div>\n <!--Begin written content here-->\n <div class=\"announcetxt\">\n <h2>Mosaic for a hearth</h2>\n <p>Body text to describe mosaic</p>\n </div>\n <!--End written content--> \n <!--Begin single image-->\n <div class=\"announceimg1\"><!--Add detail image-->\n <img src=\"/perch/resources/imggold512316.jpg\" alt=\"\" />\n </div><!--End single image--> \n</div>\n <!--End grid defined area with row announce, 1 Image, and text-->\n\n', regionRev='3', regionLatestRev='3' WHERE regionID='123'
[1] SELECT MIN(itemRev) FROM perch2_content_items WHERE regionID=123
DELETE FROM perch2_content_index WHERE regionID=123 AND itemRev<0
[1] SELECT * FROM perch2_content_items WHERE regionID=123 AND itemRev=3 ORDER BY itemOrder ASC
DELETE FROM perch2_content_index WHERE regionID=123 AND itemRev=3
Using template: /templates/content/rowannouncehor.html
INSERT INTO perch2_content_index (itemID, regionID, pageID, itemRev, indexKey, indexValue) VALUES (104,123,36,3,'announcetxthead','Mosaic for a hearth'),(104,123,36,3,'announcetxt','Body text to describe mosaic'),(104,123,36,3,'announceimg1','/perch/resources/imggold512316.jpg'),(104,123,36,3,'altdetimg1',''),(104,123,36,3,'_id',104),(104,123,36,3,'_order','1000')
[1] OPTIMIZE TABLE perch2_content_index
Setting alert: Successfully updated (success)
[2] SELECT * FROM perch2_user_roles ORDER BY roleTitle ASC
[1] SELECT * FROM perch2_menu_items WHERE itemActive=1 AND itemType='menu' AND parentID=0 ORDER BY itemOrder ASC LIMIT 0, 1
[8] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=1 ORDER BY mi.itemOrder ASC
[1] SELECT itemTitle FROM perch2_menu_items WHERE itemType='app' AND itemValue='content' LIMIT 1
[1] SELECT * FROM perch2_menu_items WHERE itemActive=1 AND itemType='menu' AND parentID=0 ORDER BY itemOrder ASC LIMIT 1, 10
[2] SELECT mi.*, p.privKey FROM perch2_menu_items mi LEFT JOIN perch2_user_privileges p ON mi.privID=p.privID WHERE mi.itemActive=1 AND mi.parentID=2 ORDER BY mi.itemOrder ASC
File: /core/apps/content/modes/region.options.post.php
Using template: /templates/content/rowannouncehor.html
Queries: 28
Memory: 5.7188

The template above is one Region in a page, and working from the same Region and going to View Page in Chrome renders the page:

Debug Message - Perch Runway 3.0.1
[1] SELECT * FROM perch2_pages WHERE pagePath='/announcerow.php' LIMIT 1
[14] SELECT regionKey, regionHTML FROM perch2_content_regions WHERE regionPage='/announcerow.php' OR regionPage='*' ORDER BY regionPage DESC
John Rose

John Rose 6 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are you talking about the link on the smartbar?

Yes, this happens at View Page on the Smartbar (I didn't know it was called that, but now I feel smarter). If I simply enter the page, in this case:

jr.dev/announcerow.php

the page renders as expected.

Drew McLellan

Drew McLellan 2638 points
Perch Support

So you're saying the rendered link is different for different browsers? That sounds really unusual - I can't think of anything that would cause that.

What are the two different links you get?

No, the rendered link is the same in all browsers.

The quirky thing is this: When clicking View Page on the Perch edit page in Firefox, I simply stay on the edit page. In other browsers (Safari, Opera, Chrome) the behavior is as expected- the page is viewed.

I am already working around this, and I'll check in if I gain any additional insights, and we'll see if others experience anything similar.

Another quirky thing on my end, if I make the edit page unusually large, the View Page button disappears.

Congratulations on your 3.0 release. I am, frankly, in awe of you (Drew) and Rachel.

Drew McLellan

Drew McLellan 2638 points
Perch Support

The link opens a new window. Do you have anything enabled in your browser that might prevent that happening?

It turns out I had a browser hijack by something called hp.myway. Investigating that, I learned that I'm not the only one.

I am sorry to have taken your time. Hopefully I'll know better next time.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Well, I'm glad that the end of your problems is near.