Redirect Following Login - Question | JoomShaper

Redirect Following Login

LG

Lorna Guttormson

Template 10 months 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.

0
4 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 10 months ago #177429

Hi Lorona,

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

0
LG
Lorna Guttormson
Accepted Answer
10 months ago #177580

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.

0
LG
Lorna Guttormson
Accepted Answer
10 months ago #177582

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.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 10 months ago #177650

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.

0