user registration working in one server and not working in another
-
hello
i am trying to create user for multisite from php file
the code I have used issession_start(); define('WP_USE_THEMES', false); require_once (dirname (dirname (__FILE__)) . '/ngo/wp-blog-header.php'); require_once (dirname (dirname (__FILE__)) . '/ngo/wp-includes/registration.php'); $org_username=$_SESSION['user_name']; $org_password=$_SESSION['org_password']; $org_email=$_SESSION['org_email']; $user_id = wp_create_user($org_username, $org_password, $org_email) ; unset($_SESSION['org_password']); unset($_SESSION['org_email']); header("location:admin.php");
I have tested this code in one server(live server) and its working fine.
The same project and file on another server(live) is not working.
ISSUE: without entering data in wordpress table it is redirecting the site to home page of multisite network
- The topic ‘user registration working in one server and not working in another’ is closed to new replies.