Issues with public pages

Matthijs

Well-known member
I have problems with displaying public pages. This used to work fine.
Is something changed in version 12.4.1?

I set $username_public_user
I have an activated page
I set permissions (see image below)

But if I open Dadabik, I get this error (but if I click on menu Vloot it works fine):

1738877506995.png


Permissions:

1738877492332.png

Your current DaDaBIK version​

You are using DaDaBIK version 12.4.1-Aveto enterprise, installed on 15-12-2024 (installation code: 18828644e443ac0e33), the latest version of DaDaBIK is 12.5-Aveto released on 14-01-2025

You are not running the last release of DaDaBIK, the release you are running might have bugs and security holes, see the official change log for further information. You can upgrade DaDaBIK here.

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 8.2.27

mysql version: 10.6.20-MariaDB

Web server: Apache/2

Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0
 

Matthijs

Well-known member
I did some further investigation and found that on mobile it works fine. So it looks like it has to do with something on my desktop/browser and not with Dadabik. Will look further.
 

Matthijs

Well-known member
Just upgraded to 12.5-Aveto enterprise. Same problem again. Clearing cache does not help ...

I did change $dadabik_session_name after the upgrade.
 

Matthijs

Well-known member
After deleting browser history, cookies en cache in Edge, problem solved again.
But this is annoying, since I can not ask our site visitors to do that ...
 

eugenio

Administrator
Staff member
When you upgrade dadabik, to be sure to use the latest JS code and therefore be sure that everything is working as expected, you have to clear the browser cache (this is explained in the ugprade page), however, starting from next version, this will likely no longer be true.

The issue you have, however, doesn't seem related to this. Are you sure you left
$always_refresh_permissions = 1
?
 

Matthijs

Well-known member
When you upgrade dadabik, to be sure to use the latest JS code and therefore be sure that everything is working as expected, you have to clear the browser cache (this is explained in the ugprade page), however, starting from next version, this will likely no longer be true.

The issue you have, however, doesn't seem related to this. Are you sure you left
$always_refresh_permissions = 1
?
Hi Eugenio, thanks,

I did not set $always_refresh_permissions in config_custom.php.

But I think I understand a bit what is causing this.

I have a Wordpress website and use Dadabik using the wrapper.

For logged-in users, the Home page is displayed. All fine.

But for public users, I do not want to display the menu, but just directly a page where new users can register. Therefore I have a table for new users which only has Create as table level permission. This because new members may submit their data, but not modify afterwards.

To show directly the create form to new users, I used this wrapper:
[dadabik_wrapper url=[URL]https://www.mydomain.nl/dadabik/index.php?function=show_insert_form&tablename=mslb_new_don[/URL]]

Since I do not want want Home to be displayed, I set:

1.png

For some reason, this triggers the error, but only in Edge. And after clearing the browser, it works ok.
 

eugenio

Administrator
Staff member
For some reason the user was redirected to homepage I think, maybe it was saved in the session and when you deleted the session cookie it stopped doing that.
 
Top