• Resolved semplicewebsite

    (@semplicewebsite)


    Good evening, on two very simple websites with the plugin and active consent proof, no consent is recorded in the table.

    How come?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter semplicewebsite

    (@semplicewebsite)

    I would like to specify that the site is located in a subfolder. Obviously in the root there is the htaccess file and index.php appropriately modified. However, I would not like the subfolder to influence The registration of the consent

    Thread Starter semplicewebsite

    (@semplicewebsite)

    I have an update…I did a test and actually by moving the site to the root, the consents are recorded correctly. But what or how do I need to set the plugin so that I can move the site to a subfolder?

    I’ve noticed the same issue, which makes this very similar to my support thread: Ajax URL Issue with Consent Saving

    I believe the problem is that the plugin assumes wp-ajax is located in its default location. However, in a subfolder installation, this is not the case. As a result, the AJAX request used to save data to the database fails.

    Thread Starter semplicewebsite

    (@semplicewebsite)

    Hi! ChatGpt has the solution. You can insert in the .htaccess in the root this string:

    # Reindirizza tutto alla sottocartella "subfolder"
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} !^/subfolder/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /subfolder/$1 [L]
    </IfModule>

    and if that wasn’t enough you can insert in wp-config.php

    define('WP_SITEURL', 'https://yoursite.com/subfolder/');
    define('WP_HOME', 'https://yoursite.com/');
    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/subfolder/');

    define('WP_CONTENT_URL', 'https://yoursite.com/subfolder/wp-content');
    define('WP_PLUGIN_URL', 'https://yoursite.com/subfolder/wp-content/plugins');

    But the first change should be enough. I hope I was helpful! It would be convenient if the plugin itself already offered the possibility of making this change within the backend rather than modifying the code for those who are less familiar.

    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    This has now been fixed in 2.29.

    Thread Starter semplicewebsite

    (@semplicewebsite)

    @jonkastonka thank u so much…

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.