Forum

Thread tagged as: Error

Delete page popup doesn't disappear after pressing delete

Hi Drew / Rachel

I assume this is a bug in Perch 3?

When I go to delete a page (with or without regions included) the full screen confirms deletion windows pops up but when I click delete, the window doesn't disappear.

If I then click on cancel or the close cross, it does go and then I have to refresh the screen to see if the page has been deleted - which is has.

Only a small thing but I can see clients getting confused thinking the page hasn't been deleted or that the system isn't working.

Many thanks -h ope that helps

Glen

Perch: 3.0.4, PHP: 7.0.15, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4), perch_forms (1.9)
App runtimes: <?php $apps_list = [ 'perch_forms', ];
PERCH_LOGINPATH: /cms
PERCH_PATH: /home/kewgrass/5D8FLLB0/htdocs/perch/cms
PERCH_CORE: /home/kewgrass/5D8FLLB0/htdocs/perch/cms/core
PERCH_RESFILEPATH: /home/kewgrass/5D8FLLB0/htdocs/perch/cms/resources
Image manipulation: GD Imagick
PHP limits: Max upload 128M, Max POST 128M, Memory: 256M, Total max file upload: 128M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: dev.kewgrasscare.co.uk
DOCUMENT_ROOT: /home/kewgrass/5D8FLLB0/htdocs/perch/
REQUEST_URI: /cms/core/settings/diagnostics/
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
Glen Piggott

Glen Piggott 0 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Do you see anything in your browser console when this happens?

Glen, have you checked the browser console for js errors. The delete button is a js function. That would be the first place to check.

There is no bug as there are "Many" people using v3 without such errors.

Oops, my reply was happening at the same time ... lol

Great minds...

I do indeed

3.3.ed79f7a54b300ef2b1e6.js:1 
Uncaught TypeError: window.reload is not a function
    at Object.success (3.3.ed79f7a54b300ef2b1e6.js:1)
    at u (vendor.ed79f7a54b300ef2b1e6.js:3)
    at Object.fireWith [as resolveWith] (vendor.ed79f7a54b300ef2b1e6.js:3)
    at n (vendor.ed79f7a54b300ef2b1e6.js:4)
    at XMLHttpRequest.<anonymous> (vendor.ed79f7a54b300ef2b1e6.js:4)

Error code above comes from Chrome - I get the same issue on Firefox too

Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version of Chrome?

Hi Drew,

I'm not in the office today so will confirm but whatever the latest version is as I've got automatic updates switched on

Glen

Chrome = 58.0.3029.110 Firefox = 53.0.3

Borth on Windows 10

Drew McLellan

Drew McLellan 2638 points
Perch Support

This isn't something we've been able to replicate here.

Is other JavaScript working as expected?

I believe so - this is the only error in the browser console.

When I delete regions that work's fine, it's only when I try to delete a page.

I get the same error too on another PC here.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll keep an eye out to see if anyone else experiences the same.

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

I have encountered the same JS error developing a Perch app.

To find what's causing this:

  • Turn on PHP errors
  • Disable Javascript in your browser
  • Try to delete

This should take you to the actual delete page to confirm the action rather than doing so via the pop up. You may see some PHP errors on there.

Hope this helps.

Matt B.

Matt B. 0 points

Same here. Windows 10 Chrome and Edge latest versions.