• Home
  • Get help
  • Ask a question
Last post 4 min ago
Posts last week 141
Average response time last week 4 hours 42 min
All time posts 67801
All time tickets 10476
All time avg. posts per day 21
All time avg response time 3 hours 53 min last_week_start: 2024-04-14 00:00:00 last_week_end: 2024-04-20 23:59:59 last_week_raw_avg_resp: 16950.2000 last_week_raw_avg_resp_to_time: 4 hours 42 min

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#7407 – Regarding URL generation

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 25 September 2020 05:31 UTC
localcms

Hi , would like to know why did the plugin does not generate the url when it is outside index.php . any suggest anything can make the urlk be generated.

i have file on root call demo.php

in it  i have the following.

 

<?php 
define( '_JEXEC', 1 );
define( 'JPATH_BASE', getcwd().'/' );
require_once(JPATH_BASE . '/includes/defines.php');
require_once(JPATH_BASE . '/includes/framework.php');
require_once(JPATH_BASE.'/helpers/helper.php');
$app = JFactory::getApplication('site');
$user = JFactory::getUser();
$data = new stdClass();
$input = JFactory::getApplication()->input; 

// then from here i tried to generate the link for mu component does it not seem to generate properly.

echo JRoute::_('index.php?option=com_media&view=hello&task=hello&code=')
// supposingly from the plugin it will generate /media/hello/ however it show as /component/media/?view=hello&task=hello

not sure how to rectify this. need help

 

 

Friday, 25 September 2020 06:57 UTC
wb_weeblr

Hi

We do not provide support for any such usage outside of normal Joomla usage so I can't go real deep here. I can comment however that you are not initializing the app so I suspect no plugin or extensions are loaded and therefore sh404SEF is not loaded at all.

Even if you do that, you have to be sure to load that file over http (ie from a browser or an http client, not by executing the php file from the command line or a cron job) or else Joomla routing layer will not be loaded and some bits needed for routing (RootURL, BaseUrl, etc) won't be present.

Best regards

Yannick Gaultier

weeblr.com / @weeblr

 

 
Monday, 26 October 2020 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.