Hi,
I use W3 Total Cache on my page.
I activated the checkbox and was prompted to add the W3TC_DYNAMIC_SECURITY definition to my config file. After doing that I got a fatal error on my site. So I undid both, solved the problem and reactivated the checkbox. Unfortunately now I do not get the prompt with the W3TC_DYNAMIC_SECURITY definition anymore and I did not keep a copy when I deleted it from the config file.
How can I get a new code for the security definition?
Regards,
Brigitta
To get the example code again you enable the caching checkbox.
Or you can follow the setup guide here to configure the cache which includes instructions for the hash as well.
https://ajdg.solutions/support/adrotate-manuals/caching-support/
The fatal error is probably related to a mistake you made with adding the code, but without seeing it I can’t tell you what went wrong.
Thank you for your reply.
The fatal error occurred before I could add the code.
[21-Apr-2023 16:50:39 UTC] PHP Fatal error: Uncaught Error: Undefined constant “W3TC_DYNAMIC_SECURITY” in /www/htdocs/w01d8e91/galopponlinetest.de/wp-content/plugins/adrotate-pro/adrotate-output.php:316
When I added some random code manually I did not get the error whe enabeling the checkbox but the code was wrong and I could not get a new one. Somehow today I could remove the wrong code and recheck caching without error, something I tried before. So now it works. Possibly the page was called in between checking the box and adding the code causing the error.
The checkbox does not cause the issue, adding the code might if you do it wrong.
You can see if the
W3TC_DYNAMIC_SECURITY
has been defined properly by going to the Settings > Misc tab in the AdRotate Pro menu. If it isn’t there will be a warning.