WebsiteBaker Support (2.13.x) > Modules

Guestbook problem after upgrade

<< < (4/6) > >>

sternchen8875:

--- Quote from: RonR on February 27, 2025, 02:50:58 PM ---What would be the recomended setting for Store $_SERVER-Array: in the settings section of the module?

--- End quote ---

if this option is activated, the guestbook save the complete $_SERVER-Array, a lot of datas, here a list of all indices -> https://www.php.net/manual/en/reserved.variables.server.php

May be, any of this indices are good to know, like REMOTE_ADDR - IP from the visitor - but on the other side, you get a lot of trouble with GDPR, if you store this datas for a longer time

recommendation (from my view) - dont use it

RonR:
Thanks, I will leave it off then,

Will continue to look for a fix for this 403.
Chrome, developer mode: Console:
Uncaught ReferenceError: WB_REL is not defined at at gstbk_add.php?sid=22&pid=22&add=42:158:17

Url says: guestbook/gstbk_add.php?sid=22&pid=22&add=42
.
Could that be a cause, and how to fix?

 

RonR:
2 things here:
1. the WB_rel not defined.
2.  url different than what devconsole says gstbk_add.php?sid=23&pid=23&add=64:158:17

sternchen8875:
to #1
comes from the file captcha.php. The job is: load fontawesome.css. We've to fix it there, has nothing to do with the guestbook module

to #2
these are line and char-number

to the problem: i think, it needs the three different target-pages like my description, so that you know, what case is it. i get this 403 only, if i click a link in my browser history, but there, i know, i have no add-ID submitted
I've never seen this error, when i click on the link "Add a new entry to the guestbook"

Build three (hidden) pages, type = wysiwyg, call it number 1, number2, number3, add this filename in the wysiwyg-content, see this pages in the frontend, copy the link and add it as header(Location) target in gstbk_add.php

the try it again and you see, where you are with the error

RonR:
Ok, we forget the WB-REL for now.

I already changed the 3 destinations to header('Location: '.WB_URL.'/index.php'); exit();
so I should not get a 403 to /pages/ anymore.

But I still get 403's , I managed to reproduce the 403 error also on jacobi22 guestbook

Firefox devconsole: SyntaxError: Element.querySelect orAll: '*,:x' is not a valid selector
I am starting to think this is a jquery script error which stops even before a destination is handled.

Element.querySelect orAll is aslo one line below the WB_REL in the script.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version