thank you for your support !
why I regularly receive this type of error ?
Uncaught Error: Call to a member function add() on null in /………../wp-content/plugins/autologin-links/autologin-links.php:295
WordPress version 6.6.2
Extension actuelle : Autologin Links (version 1.12.0)
PHP version 8.2.23
My website scan shows Autologin Links as an installed but abandoned plugin. I cannot delete it because it does not appear on my list of installed plugins. But if I try to install it now, the screen says it is already active. How can I uninstall it?
]]>Hi Paul,
With WP version 6.2.3 it still works but is it also still maintained with updates and support? It would be very nice if it is!
]]>hi!
Your auto login plugin is really great! It really helps me a lot.
I found this topic from 6 years ago but the code provided by @ngrudev no longer seems to work.
//generate autologin links for registeret users
function generateRandomString($length = 60) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}
add_action( 'user_register', 'myplugin_registration_save', 10, 1 );
function myplugin_registration_save( $user_id , $length ) {
$meta_key = "pkg_autologin_code";
$timestampz=time();
$tokenparta = generateRandomString();
$key = $timestampz*3 . $tokenparta;
update_user_meta( $user_id, $meta_key, $key );
}
Would it be possible to have a version of the code that works?
You should make a paid version to reward yourself for your efforts and offer some additional features.
]]>We have installed Auto login plugin on website.
When we active this plugin then in users listing we get auto login links But when we hit that link in browser then auto login functionality not working.
We are using word press 6.1.1 version.
Kindly Assist us to resolve this issue.
Hi
I am trying to autologin a user through a iframe on an external site. The external site has a membership on my site and wants to offer my services (membersite with fitness-videos) through an iframe on their site.
When the link with the autologin are loading in the iframe it loses won’t gain access and gets logged out.
Somebody who knows what causes this problem?
]]>how can i put auto link creation button on woocommerce orders
]]>I use plugin called “Sessions” witch allow to limit active sessions.
For example, only 2 users can access a portal page.
Unfortunately, when I use autologin links, there is no session limitation.
I can’t restrict sessions if users use autologin links instead of user/password pair.
]]>Hello, do the autologin links expire? For example after certain time, or after the single use? It would be great for improving security.
]]>Hello,
Awesome Plugin! It does almost everything I need to do upon installation and activation.
However, there is one item I need help with.
Could you provide any code or guidance in automatically generating and saving the Autologin Link when a new user account is created in WordPress.
Please advise. I appreciate any and all help in this matter as this is a very important function I need for the site I am working on. Thanks!
]]>Hello,
Is it possible to configure a source URL where the autologin request has to come from?
Kind regards,
Oscar
]]>Hi – I have a use case (password protected FAQ) for which I’d like to automatically generate links via wp-cli.
Do you have a suggestions for the wp-cli <-> autologin-links shim?
It looks like a call to pkg_autologin_generate_code() followed by the wp_usermetadata update is all that’s needed?
If you think this is helpful, I’m happy to submit a PR.
TIA,
]]>Hello, I have template workreap, where I can use automatic generate emails.
I want to the email use your link after their Email Settings variables
%freelancer_link% — To display the link of freelancer page.
Could you help me some code or something, how can I use your code to the email?
Thank you
]]>Hello,
I have successfully been using this plugin to meet my client’s needs. One challenge I have been having is that I am unable to redirect users that login to the site via the autolink to a specific page.
Is this a issue for most users, or is it something I am only experiencing? If page redirection on login is working for others, can someone please provide me with guidance on how they did it?
Much appreciated,
~Adam
After updating this plugin to the latest version, we met such issue:
With a fresh start server, the site works normally, and then after browsing a few pages randomly, the site became slow and eventually crashed due to apache2 consumed all memory.
After some digging, I temporarily fixed it by changing if (!is_admin()) {
to if (!is_admin() && false) {
on line 606 of autologin-links.php – the old version of the code.
There are about 64k users on the site, that’s probably the reason it crashes the server.
The server runs with 4vCPUs and 7G RAM, with apache2 + php7.3.
Hello, I am going to create a new website and I would like to be able to import the users and their autologin link, how could I do it?
]]>I just discovered an unwanted behaviour on a multisite installation.
I run a network with serveral sites on different subdomains. Each site has an autologin user with autologin code who should only be able to access his primary blog.
But when I use a user’s autologin code on another site, I’m logged in on that site, too.
Can you please add an additional check, whether a user has access to a specific site on the network?
]]>I have set up a user and created a link, posted it on another website page but I just get:
Sorry…
We couldn’t find what you were looking for. Please try again or return to the homepage
It does seem to log me in, but I don’t go to the homepage for some reason.
]]>this plugin is still active and under development?
]]>Hello,
Can you please tell me how I can give another user role the capabilities to generate autolinks for other users? I don’t want them to be an administrator but I want them to have this function. I can’t find it in the capabilities list with the edit user roles plugin.
Thank you.
]]>Hi,
in terms of the auto login URL and its token – is there a method that we can add for a destination URL in the Querystring. A feature that allows the plugin to authenticate you but then send you to the destination via a secondary target variable.
Presently my links send me to the root homepage – ideally id like to authenticate a user and send them to specific pages
Thanks
]]>Why not add a sleep() command in here to add a few seconds delay?
// Add error texts
switch ($secureMsg) {
case 'invalid_login_code':
$errors->add("invalid_autologin_link", __("Invalid autologin link.", PKG_AUTOLOGIN_LANGUAGE_DOMAIN));
break;
}
]]>
Dear all,
I’ve also faced the issue which was reported already that the auto-login didn’t work on Chrome but it did in incognito mode.
When deactivating security plugins, in particular iTheme Security, the issue was resolved.
Hope that helps clarify the cause.
Kind regards
Mike
Thanks for sharing your experience and creating this sweet quicker for autologin. It’s working for me but unfortunately I am getting this error –
—–>>
Fatal error: Cannot redeclare fuse_url_with_site_url() (previously declared in /xxxx/plugins/autologin-links/autologin-links.php:625) in /xxxx/plugins/autologin-links/autologin-links.php on line 625
—–>>
It is corrupting css of front page when logged in but without login it’s showing correctly. So I think, we need to correct this asap since I shared using autologin links with my clients. Thanks!
Hi,
I need to generate autologin links to protected pages in an autoresponder drip.
The autoresponder drip can send the following:
https://mysite/day1/?autologin_code=ABC123
https://mysite/day2/?autologin_code=ABC123
https://mysite/day3/?autologin_code=ABC123
My membership site generates the emails already and I need to send the correct autologin_code that corresponds to the email address that the drip is going to.
Is there a [token] or shortcode for the autologin_code?
Please advise.
]]>Hey,
I’m wondering if it’s possible to use this plugin just to let guest login automatically into password protected content like pages or posts?
]]>Hi,
I have used this plugin of yours:?https://www.ads-software.com/plugins/autologin-links/. When I tried Installing it it shows me activation failed, I refreshed the page it was activated but it was not generating links so I tried to delete it it then show message: “Deletion Failed:{with some json here}”. I refreshed the page againit was deleted. But after that my site Media is not getting loaded in admin panel. Loader keeps spinning but nothing shows up. Kindly look into this ASAP! Is there any data I need to delete from database or any folder permission you have changed via plugin or anything else?
]]>Hello, I love your plugin, but there’s a small issue. I see this has been talked about in the support forum, but without any announced resolution as of today.
I didn’t see anybody mention this, but the 2nd login does work for me; I just have to do a refresh (F5 in Chrome.) This works out better than 2 other similar plugins (WP Auto Login & Temporary Login Without Password) because these other 2 plugins require more than a refresh – they require cache to be cleared also.
So I love Autologin Links – but is there something I can do to make it a better experience for the user’s 2nd login? I tried adding location.reload(true) immediately after my code for the login link, but that doesn’t work.
]]>Hello. Is anyone aware if it is possible to generate dynamic links for newsletters with this plugin?
I have a newsletter list with 3 fields. Email, Username and password. Can i use this plugin in some way to generate a auto login url for the entire list?
Something like https://www.mywebsite.com/autologin{username}{password}/products/id=2321
The link then takes the users to my site, logs them in and redirects them to the desired page.
If anyone know how to do this please let me know.
I am also willing to pay for this feature.
Best Regards.
Jonathan
]]>Hello all,
So our users are for the most part getting through, but a small percentage of folks have been getting the login page instead. I have been trying to troubleshoot with them, but its been challenging either due to their technical experience, or them responding. However, I have one user who has tested on 4 different machines all in IE and has been unable to get through, he tested on Chrome and was able to get in. Possible cacheing issues, but anyone experience issues with just IE?
Thanks!
Chad
]]>