So. I made the decision to remake these question for clarification.
- Wordpress plugin according to an MVC architecture.
- You are able to register customers.
- A person have to activate their account.
When one clicks the hyperlink in the email the user recieve they arrive at the correct page, get no php errors. However the account has already been triggered. That's everything works just like the page is first tell you but no output, then tell you again which is displayed towards the user.
I've through var_dump, echo and print_r() determined the account is triggered before my wordpress plugin is even initialized, so its no problem during my code..
Within the cause of the wordpress plugin:
$controller = new Controller()
$get_handleris instanced in
The handler triggers
$_GET['activation_key']is placed and never empty string
But so far as i can tell this code operates two times, for no no reason.
I recieve 2 messages, wich is added into _SESSION until displayed.
The very first saying the account is triggered, the 2nd stating that the account has already been triggered.
Is how wordpress always will it? It is possible to deal with? Why I do not have this issue elsewhere on the website? Can there be any Wordpress hooks which are run two times?
Appears like its only if klicking the hyperlink in the mail, thus opening a brand new tab. Basically reload the tab everything works fine. I am using gmail, does gmail run the page before showing it?
Appears like i happened upon an answer.
There is a slash missing. A SLASH!
This link is correct:
This link triggers dual messages: