[Résolu] Problème de connexion page login custom avec call Ajax
Ce sujet est résolu. Voici une description du problème et de la solution.
Problem: The client was experiencing issues with custom login functionality on two pages after installing WPML. The login worked fine when WPML was deactivated. The issue was related to Ajax calls to admin-ajax.php for user authentication.
Solution: We reviewed the custom code used for the login process and identified an issue with the
hook. According to the WordPress developer documentation, the second parameter should be
$user
, not
$user->ID
. We recommended updating the action hook to
do_action('wp_login', $user->user_login, $user)
to resolve the problem.
If you're experiencing this issue, we recommend you try updating the action hook as described above. However, this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket with us.
Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.
Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.
Serait-ce possible de faire autrement qu'avec Duplicator ?
Le site faisant plus de 500mb, il m'est demandé de souscrire à la version pro.
Or si possible, j'aimerais éviter de payer 40$.
Je peux vous faire une copie de la BDD et des fichiers si vous souhaitez.