Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 16h 40m 03s
Claim 50% off
Staff replied Templates

Redirect following login

Asked by Lorna Guttormson 1 year ago Last activity 1 year ago

A month ago I asked for help with Redirect after login. (Forum post 35875) I got that working but now I'm trying to get it working on another site and, although they each have the same Joomla, template, same version of SP Page builder, and the same login menus and modules, the new site does not work. I must be missing something but cannot see what. Could someone please have a look and see if this can be resolved?

I did ask about this on Jomla forum but in building the forum post it registered an error on our Pitech template:
[04-Dec-2024 18:09:09 UTC] PHP Deprecated: base64_encode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ottawaoc/ottawaotest.ca/oocj4/templates/pitech/html/com_users/login/default_login.php on line 89. I wouldn't think a deprecation would cause this but thought I should point it out in any case.

4 replies

Paul Frankowski Senior Staff

Hi Lorona,

Just delete mentioned file > templates/pitech/html/com_users/login/default_login.php
and compare results.

Lorna Guttormson Asked this

I am trying to respond but continually just see the spinner . It eventually returns without finishing. If this goes through, I will try again with a shorter note.

Lorna Guttormson Asked this

This was accepted immeditely so I'll continue - until I get all of my note through. It looks like I can't include any code snippets so I'll try to explain without any code included.
This cp 2010 version no longer gives the deprecation warning but it still doesn't work.
I inserted some alert statements into the default_login.php and found that when on line 88 it tried to set the return, the value was not returned- it was an empty string . I inserted another echo to try to see if other params were returned, one was, another wasn't. You can see the echo responses at ottawaotest.ca/oocj4.
It seem this program is not receiving the value of the login_redirect_menuitem that it needs and that perhaps some of the params are not being returned. I also went into the other site and found it does get the value returned correctly.

Now I am stuck as I don't know how to track back to see what program is calling default_login.php and likely providing the value needed. I don't know if this is a problem with the template , the Joomla code or the PageBuilder code but 2 of them belong to joomshaper so hoping you can help.

One other thing I see - this program asks for the menu item or the redirect URL - I recall seeing some module that gave the option of giving a menu item or a URL for redirect. The login module I find now just asks for a menu. This default_login.php seems to think it was the module that offered the 2 choices but I cannot find that module again.

Paul Frankowski Senior Staff

Without overriden module, your Joomla uses/load orginal Joomla Login module, so you have clean core code.

For deeper customizations you need to use addcional redirect extension or hire php developer.

Log in to reply.