I have the code: $uri = JUri::getInstance(); $router = JRouter::getInstance('site'); $vars = $router->parse($uri); I'm wanting to parse the uri out at the module's backend (Just the module I'm writing myself.). But when I installed the module and clung to the module for editing, it led me to the blank page, and in the address bar I saw a lot of /index.php/en/index.php/en... it popped up a lot. That is I test with 3.9.x. With 3.8.x it says "Allow memory .....". I'm using php 7.2.12.

  • I replaced $router = JRouter::getInstance('site'); with $router = JRouter::getInstance('administrator'); and the module is now running normally. Are there two different ways? Thank you – NotToday Dec 5 at 10:34
  • Yes, site and administrator are the two halves of the Joomla beast. administrator refers to the "backend". – mickmackusa Dec 5 at 10:35
  • If you have resolved your issue, you may post your solution as an answer. If you still have something that you need support with, please edit your question once again to isolate where you would like help. – mickmackusa Dec 5 at 10:36
  • @mickmackusa thank you! – NotToday Dec 5 at 11:24
up vote 0 down vote accepted

[SOLVED] change site to administrator

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.