WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Cannot delete pages
  • Print
Pages: [1] 2   Go Down

Author Topic: Cannot delete pages  (Read 21494 times)

Offline Topiax

  • Posts: 28
Cannot delete pages
« on: November 16, 2020, 07:47:18 PM »
Hi,

using WB 2.13.0 r1 & PHP 7.2, I can not delete pages in "Modify or Delete Pages".

Clicking on the "trashbin" has no action. Is this a bug or is it result of misconfiguration somewhere?

How can this be solved?
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #1 on: November 16, 2020, 08:16:18 PM »
Hi, PHP 7.2 is outdated.
On the download page PHP 7.3 or higher is recommended.
I can't see problems with deleting pages.
Logged
https://onkel-franky.de

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #2 on: November 16, 2020, 08:29:48 PM »
Quote from: dbs on November 16, 2020, 08:16:18 PM
Hi, PHP 7.2 is outdated.
On the download page PHP 7.3 or higher is recommended.
Ok. Changed PHP to 7.4 but it didn't help.

I still cannot delete some unnecessary pages, neither logged in as Administrator nor Activated user.
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #3 on: November 16, 2020, 09:10:49 PM »
Was this a new install or a update?
Upload and unzip or upload file by file?
Logged
https://onkel-franky.de

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #4 on: November 17, 2020, 08:04:54 AM »
Quote from: dbs on November 16, 2020, 09:10:49 PM
Was this a new install or a update?
Upload and unzip or upload file by file?

It is a new install. The WebsiteBaker-2_13_0.zip file uploaded and extracted on the server side, not "file by file". Installed on the server thereafter.

Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • EFG MG
Re: Cannot delete pages
« Reply #5 on: November 17, 2020, 09:14:42 AM »
Are there any messages in the ErrorLog?

I have just tested this.

Page created--> text in--> saved.
Page 1. times deleted--> success message--> page remains visible in the page tree for reactivation
Page deleted 2. times --> success message --> page also disappeared from the page tree
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Cannot delete pages
« Reply #6 on: November 17, 2020, 11:15:57 AM »
Please have a look in Webmaster Tool (Web-Console). I my point you have a Javascript error so script stops loading completly

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #7 on: November 17, 2020, 11:34:09 AM »
Quote from: hgs on November 17, 2020, 09:14:42 AM
Are there any messages in the ErrorLog?

Error log (fraction):
Quote
[16-Nov-2020 19:22:59 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 01:15:53 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 01:15:56 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 07:22:41 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 07:24:04 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!"
Logged

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #8 on: November 17, 2020, 11:39:12 AM »
Quote from: Luisehahne on November 17, 2020, 11:15:57 AM
Please have a look in Webmaster Tool (Web-Console). I my point you have a Javascript error so script stops loading completly

Dietmar

Web COnsole message:
Quote
Uncaught ReferenceError: confirm_link is not defined

Yes. This might be a Javascript problem. Is it in my browser or in WB settings?
« Last Edit: November 17, 2020, 11:56:34 AM by Topiax »
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • EFG MG
Re: Cannot delete pages
« Reply #9 on: November 17, 2020, 02:21:48 PM »
Quote from: Topiax on November 17, 2020, 11:34:09 AM
Quote from: hgs on November 17, 2020, 09:14:42 AM
Are there any messages in the ErrorLog?

Error log (fraction):
Quote
[16-Nov-2020 19:22:59 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 01:15:53 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 01:15:56 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 07:22:41 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!
[17-Nov-2020 07:24:04 UTC] show_menu2 error: $aOptions is invalid. No flags supplied!"
These messages come from the template and are not responsible for the behavior.
I would say that template comes from Austria :)
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #10 on: November 17, 2020, 07:52:18 PM »
Quote from: Luisehahne on November 17, 2020, 11:15:57 AM
Please have a look in Webmaster Tool (Web-Console). I my point you have a Javascript error so script stops loading completly

Dietmar

Web console output:
Quote
index.php:835 Uncaught ReferenceError: confirm_link is not defined at HTMLAnchorElement.o nclick (index.php:835)

Code fron index.php:835:
Quote
<a onclick="confirm_link('Are you sure you want to delete the selected page (and all of its sub-pages)?','https://xxxx.xxxx.fi/admin/pages/delete.php?page_id=be85276994044544');" title="Delete">

Code from /modules/output_filter/js/LoadOnFly.js:
Quote
};
var confirm_link = function (message, url) { //  class="alert rounded"
  if (confirm(message)) location.href = url;

Still fail to delete pages at Admin.
Logged

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #11 on: November 18, 2020, 09:34:25 AM »
Quote from: Topiax on November 17, 2020, 07:52:18 PM
Quote from: Luisehahne on November 17, 2020, 11:15:57 AM
Please have a look in Webmaster Tool (Web-Console). I my point you have a Javascript error so script stops loading completly
Dietmar



Code from https://xxx.xxxxxxx.fi/admin/pages/index.php
Quote
<a onclick="confirm_link('Are you sure you want to delete the selected page (and all of its sub-pages)?','https://xxxx.xxxx.fi/admin/pages/delete.php?page_id=be85276994044544');" title="Delete">

This is from the HTML code of the admin page (as seen in my browser). Opening this url-link separately in the browser will delete the page concerned as is desired.
The wastebin icon on the admin page does not work however, nor contain any link other than that of the very image.



Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #12 on: November 18, 2020, 10:25:46 AM »
You tried also other browsers?
Which browser do you use?
Logged
https://onkel-franky.de

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Cannot delete pages
« Reply #13 on: November 18, 2020, 11:59:52 AM »
Hi,

seems to be a cache issue or not all files are uploaded
e.g.
Code from /modules/output_filter/js/LoadOnFly.js: (will be removed in the next package)
Quote
    };
    var confirm_link = function (message, url) { //  class="alert rounded"
      if (confirm(message)) location.href = url;

will not be loaded, we load http://mydomain.local/wb/include/jquery/LoadOnFly.js

confirm_link is set in /templates/FeaultDheme/templates/footer.htt and switch form javascript confirm alert to sweetalert2 confirm dialog

need access to your webspace and installation, so i can help

Dietmar
« Last Edit: November 18, 2020, 12:06:01 PM by Luisehahne »
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline jonathanw

  • Posts: 4
Re: Cannot delete pages
« Reply #14 on: November 18, 2020, 02:23:16 PM »
I'm having the same issues, tried with three installations now and on two different domains. Same issue persists. Also tried in firefox and chrome.

When I load the admin I get this error:
SyntaxError: missing } after property list index.php:694:25 note: { opened at line 692, column 18

And I get the following error when pressing the delete icon:
ReferenceError: confirm_link is not defined index.php:1:1
onclick https://xxxx.xx/admin/pages/index.php:1:1
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #15 on: November 18, 2020, 03:57:13 PM »
Thx for reporting.
Who is your hoster?
Logged
https://onkel-franky.de

Offline Luisehahne

  • WebsiteBaker Org e.V.
  • **
  • Posts: 4548
  • Gender: Male
Re: Cannot delete pages
« Reply #16 on: November 18, 2020, 04:30:46 PM »
Quote from: jonathanw on November 18, 2020, 02:23:16 PM
When I load the admin I get this error:
SyntaxError: missing } after property list index.php:694:25 note: { opened at line 692, column 18
Which index.php in which folder??

Dietmar
Logged
Note: Once the code has been generated, it is easy to debug. It's not a bug, it's a feature!

Offline Topiax

  • Posts: 28
Re: Cannot delete pages
« Reply #17 on: November 18, 2020, 05:29:09 PM »
Quote from: dbs on November 18, 2020, 10:25:46 AM
You tried also other browsers?
Which browser do you use?

I use Chromium 87.0.4280.66  and Brave  1.16.76 (Chromium: 86.0.4240.198). Also tried  Chrome 86.0.4240.183 and Firefox 82.0. It seems that this problem persists regardless the browser.
Logged

Offline jonathanw

  • Posts: 4
Re: Cannot delete pages
« Reply #18 on: November 19, 2020, 10:18:17 AM »
Quote from: Luisehahne on November 18, 2020, 04:30:46 PM
Quote from: jonathanw on November 18, 2020, 02:23:16 PM
When I load the admin I get this error:
SyntaxError: missing } after property list index.php:694:25 note: { opened at line 692, column 18
Which index.php in which folder??

Dietmar
admin/pages/index.php

The highl-lighted code is this:

  var confirm_link = function (message, url) {
        swal.fire({
          title: message,
          html: 'You won't be able to revert this!',

I'm thinking it might be related to the ' in "won't"
Logged

Offline jonathanw

  • Posts: 4
Re: Cannot delete pages
« Reply #19 on: November 19, 2020, 10:22:11 AM »
Quote from: dbs on November 18, 2020, 03:57:13 PM
Thx for reporting.
Who is your hoster?
A small local company
Running php 7.4.12 as FPM application apache
« Last Edit: November 19, 2020, 10:32:13 AM by jonathanw »
Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #20 on: November 19, 2020, 10:58:14 AM »
Can confirm, with backend language english this js-error occours.
Quote
I'm thinking it might be related to the ' in "won't"
Right.  (Y)
Logged
https://onkel-franky.de

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1883
    • EFG MG
Re: Cannot delete pages
« Reply #21 on: November 19, 2020, 11:05:11 AM »
Thanks for testing

So we get a stable 2.13

Keep it up!
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline jonathanw

  • Posts: 4
Re: Cannot delete pages
« Reply #22 on: November 19, 2020, 11:07:56 AM »
Quote from: dbs on November 19, 2020, 10:58:14 AM
Can confirm, with backend language english this js-error occours.
Quote
I'm thinking it might be related to the ' in "won't"
Right.  (Y)
Cool. My first issue I ever had with WB, love this CMS:)
Do you have a time horizon on an update?
Logged

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: Cannot delete pages
« Reply #23 on: November 19, 2020, 01:48:26 PM »
It looks like before Christmas...   8-)
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

Offline dbs

  • Betatester
  • **
  • Posts: 8914
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Cannot delete pages
« Reply #24 on: November 19, 2020, 03:58:21 PM »
Please download again from the wiki and do a upgrade.
Logged
https://onkel-franky.de

  • Print
Pages: [1] 2   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Cannot delete pages
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2