• Home
  • Get help
  • Ask a question
Last post 11 hours 41 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67911
All time tickets 10496
All time avg. posts per day 20

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.

#1335 – Problem with a weird kind of urls

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, 06 November 2015 19:04 UTC
pedroazuram
Hi !

I've bought and installed your extensions and it is working almost OK. I have 2 problems :

1. I have a kind a URL that are being "a little bit SEfied" but not fully, and i'm not able to manage thel through administrator.
Here you have an exemple :
http://www.xxxx.com/fr/vmvendor?userid=5973&view=vendorprofile
Normal non SEF URL is :
index.php?option=com_vmvendor&view=vendorprofile&userid=5973&Itemid=&lang=en

I would like to be able to manually edit those urls so to make it :
http://www.xxxx.com/ondrejadamek

but when I search in your SEF url manager the userid I have nothing.

I have tried to manually make the SEF url from the noral non SEF url, but it does not works. (any change is reflected).


2. I have a audio player that read audio files. Audio URLs are stored in dB and transfered in base64 encoding for a minimal protection.
The player is not longer working:
http://www.xxxx.com/catalogue/vocal-music/estravagario-detail

Please help me with this two issues.

Many thanks, and congrats for this great extension !

Best regards,

Pedro
Friday, 06 November 2015 19:06 UTC
pedroazuram
the access codes are

http://www.xxxx.com/administrator?r3lations

user : xxxx
pass: xxxx

Thanks !
Friday, 06 November 2015 19:24 UTC
wb_weeblr
Hi

[EDIT] good that added credentials to the site:

Also, SEF URLS are disabled in Joomla configuration, which is not correct and should be fixed. This is why you have this big orange warning on sh404SEF control panel, that you probably closed. this misconfiguration may explain why your player is not working.

You cannot have another SEF extension on the site. So you have to uninstall Artio or sh404SEF, but cannot have both installed at the same time.

1 - I don't know what this vmvendor component is, but sh404SEF doesnt have a plugin for it and so we probably use its router.php file to build URLs. Th developers of the router.php file have chosen to leave some parts of the URL as query vars (the part after the ?) and there's little that can be done to change that, aside from writing a plugin to support vmvendor component.


I would like to be able to manually edit those urls so to make it :

http://www.xxxx.com/ondrejadamek



but when I search in your SEF url manager the userid I have nothing.

It's 100% normal that the URL is not in the URL manager. What you find there is /vmvendor, ie only what's called the path (before the ?).

If a URL is not present in the URL manager, you can simply add it by using the "New" button in the URL manager. Just make sure to read the tooltips to enter the correct data (ie no / at the beginning, etc)

2. I have an audio player that read audio files. Audio URLs are stored in dB and transferred in base64 encoding for a minimal protection.

The player is not longer working:

http://www.xxxx.com/catalogue/vocal-music/estravagario-detail


This is because the player is not requesting the correct URL for the mp3 file.

It requests something like images/stories/virtuemart/product/13262.150822.215509_Estravagario_sample.mp3
that is a relative URL and of course it fails because the browser turns that into http://www.xxxx.com/catalogue/vocal-music/images/stories/virtuemart/product/13262.150822.215509_Estravagario_sample.mp3

Where do you setup the address of the file to load in your player? can you fix the link?

Rgds
 
Friday, 06 November 2015 19:43 UTC
pedroazuram
Hi, thank you very much for your answer. I have unistalled joomSEF.
1. Yes I would like to add manually it but what I can use as "nonSEF url" ?
If I use
index.php?option=com_vmvendor&view=vendorprofile&userid=5973&Itemid=&lang=fr
It does not change anything.

If I try tà use vmvendor?userid=5973&view=vendorprofile
it says it is not possible as it must bgin by "index.php".


2. When sh404SEF is off it works perfect, I dont understand very well the problem.
In the plugin file that manages the audio player files urls are given like this :
$subcarpeta = 'images/stories/virtuemart/product/';
$mp3= $live_site.$subcarpeta.urldecode($mp3file->file_url);
After that, it encodes that in base64


Many thanks !
pedro
Friday, 06 November 2015 19:45 UTC
pedroazuram
here a printscreen of a recently added URL that does not reflect in the website.
Friday, 06 November 2015 19:49 UTC
wb_weeblr
Hi

2 - It works with sh404SEF and Joomla SEF On?

$mp3= $live_site.$subcarpeta.urldecode($mp3file->file_url);
That should be OK, but what is the value of $live_site?

If looks like $live_site is empty. If it was correct (ie the real live site URL, it would work;

1 -
If I try tà use vmvendor?userid=5973&view=vendorprofile

it says it is not possible as it must bgin by "index.php".

Yes, you must use a non-sef URL, index.php?option=comxxxx

If I use

index.php?option=com_vmvendor&view=vendorprofile&userid=5973&Itemid=&lang=fr

It does not change anything.

You have to know what the full non-sef is. The best way to do that is to :

- disable sh404SEF
- disable Joomla SEF

All links on the site are going to be non-sef (index.php?option=com_xxx...). Navigate to the page, and look up the real full link you want to replace.

Rgds
 
Friday, 06 November 2015 20:09 UTC
pedroazuram
Hi !

The add of URLs is working OK. It was maby a conflict with joomSEF. Sorry for that.

The problem with the audio player is still not working.

Is as it took at the $live_site a part of the SEF url. How can this be fixed ?

many thanks !!
pedro
Friday, 06 November 2015 20:19 UTC
pedroazuram
Hi !
I removed $live_site from the path and it works OK with sh404SEF off .
but it still dont work when I turn it on. (it includes somehow a part of the SEF url)
How can we fixe that ?

many thanks,
pedro
Friday, 06 November 2015 20:23 UTC
wb_weeblr
Hi

I removed $live_site from the path and it works OK with sh404SEF off .
You mean with sh404SEF Off and Joomla SEF ON? what's the page URL in that case, with Joomla SEF on?

but it still dont work when I turn it on. (it includes somehow a part of the SEF url)
Which part? what's the value of this variable, $live_site?

The actual code should be:
$mp3= JUri::base(true).$subcarpeta.urldecode($mp3file->file_url);


Rgds
 
Friday, 06 November 2015 20:49 UTC
pedroazuram
Hi ! thanks.

If I use your code (or even if I remove everything before $subcarpeta). It works OK when sh404SEF off and Joomla SEF off.

URL in that case is : http://www.xxxx.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=172&virtuemart_category_id=21&lang=en


If I turn sh404SEF on Or even joomla sef on now that your component is installed it does not work.

The url is : http://www.xxxx.com/catalogue/instrument-electronics/brujeria-detail

It searches the audio at
/catalogue/instrument-electronics/images/stories/virtuemart/product/93.110503.164207_BrujeriaV1_sample.mp3

So it adds a part of the SEF Url i dont know why.


I attach to you a printscreen of the code defining the mp3.

many thanks

pedro

Saturday, 07 November 2015 09:33 UTC
wb_weeblr
Hi

even joomla sef on now that your component is installed it does not work.


This has nothing to do with sh404SEF. Please remove sh404SEF, or just disable it. Then enable Joomla SEF and you will see you have the same problem.

It's a simple bug in your code and I already provided a valid fix, which is the standard way of doing things in Joomla (you should always create links to assets (images, css, js, etc) using JUri::base().

Rgds
 
Saturday, 07 November 2015 12:55 UTC
pedroazuram
Yes great ! thank you very much. I used JUri::base() and it works perfetc now!! thank you very much

I have a last bug. :(

It concerns the main menu in the french and spahish languages. In particular the "catalogue" item.

When I activate shSEF404 and I click (in french or spanish) on catalogue (or catalogo). It takes me to the home page. It is not even reported a s a 404 redirection is just redirected. I have tried pruging urls, and actually the first time I click on it it, it works OK and it creates the /fr/catalogue URL. But after the first time, each time I click on catlogue, it goes to homepage.

Do you know how can this be resolved ?
many thanks, best regards,

Oh yes, there is another minor issue : since I installed your component, I had to enter twice admin credentials in order to get in as admin... But this is deffinitevely not as important as the other problem.
best,

pedro

Monday, 09 November 2015 12:22 UTC
wb_weeblr
Hi

since I installed your component, I had to enter twice admin credentials in order to get in as admin.
Nope. sh404SEF is simply not running in the admin. So you'll have to look elsewhere for this one!

When I activate shSEF404 and I click (in french or spanish) on catalogue (or catalogo). It takes me to the home page. It is not even reported a s a 404 redirection is just redirected. I have tried pruging urls, and actually the first time I click on it it, it works OK and it creates the /fr/catalogue URL. But after the first time, each time I click on catlogue, it goes to homepage.



Do you know how can this be resolved ?
I don't see anything like that. The Catagog links on the main menu changes with the language correctly (of course, I had to disable entirely all your caching, as you were just seeing stored results instead of the real page content).

Rgds


 
Monday, 09 November 2015 12:55 UTC
pedroazuram
Hi !
thanks ! OK for the admin. I just have to pay attention to be in www so it works OK.

Actually hen you wrote me the URL optimization of your component was not enabled. The urls was Joomla sef defaut ones. It was indeed working OK, but i'd really like to take advantage of the URL optimisation capabilities of your component.

When I enable it I do have the problem concerning the "catalogue" menu in main menu en french and in spanish. When I click on it, im being redirected to /fr if I'm in french and to /es if i'm in spanish.

Please let me know how can this be fixed. Thank you very much, I hope you had a nice weekend,
best,

pedro





Monday, 09 November 2015 14:14 UTC
wb_weeblr
Hi

thanks ! OK for the admin. I just have to pay attention to be in www so it works OK.
Yes. www and not-www are two entirely different websites. You cannot switch from one to the other. It's exactly as if you were logging to the admin at weeblr.com and at Joomla.org. One is different from the other.
Note that your .htaccess file should make sure you only access the right, you shouldn't have to pay attention to it.

Actually hen you wrote me the URL optimization of your component was not enabled
No, I logged in, checked all the settings and ran all my test with sh404SEF enabled (been doing this for a few years, not that easily fooled ;) ).

When I click on it, im being redirected to /fr if I'm in french and to /es if i'm in spanish.
That's not what's happening to me.

I think you were trumped by the fact you had enabled caching at all angles: modules, and most importantly page cache. After I disabled all that, all started to work very fine.

Rgds
 
Monday, 09 November 2015 16:02 UTC
pedroazuram
Hi thank you for the information about htaccess and administrator, I will apply it.

Concerning the menu problem. Please try now.
http://www.xxxx.com/fr/

to click catalogue... It redirects to homepage (in frech) and not to catalogue. :(
It is a really silly but very annoying issue.

I've turned off all caching and it still makes that problem. I have tried from several computers and several places and it makes the same bug...

please help. Many thanks and congratulations for this great extension !

best regards,

pedro
Monday, 09 November 2015 16:24 UTC
wb_weeblr
Hi

I can see that now. WHat's happening is that for some reasons the (almost) sameVirtuemart URL gets a totally different SEF URL:

fr/
index.php?option=com_virtuemart&Itemid=872&categorylayout=0&lang=fr&productsublayout=0&showcategory=0&showproducts=1&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=0

Catalogue
index.php?option=com_virtuemart&Itemid=872&categorylayout=0&lang=fr&limitstart=0&productsublayout=0&showcategory=0&showproducts=1&view=category&virtuemart_category_id=0&virtuemart_manufacturer_id=0


This is new, so I'll have to take a backup of the site to install on my local machine, to be able to step through the PHP code. Shouldn't be long after that. Is it ok?

Rgds
 
Monday, 09 November 2015 17:12 UTC
pedroazuram
Hi,

yes please !
Thanks,

pedro
Tuesday, 10 November 2015 02:27 UTC
pedroazuram
Hi ive made a backup without superfluous media files for you. you can find it at the akeeba back up manager.
many thanks,
please let me know,
rgds
pedro
Tuesday, 10 November 2015 19:06 UTC
pedroazuram
Hi,

I was just passing by to ask if you have some news for me.

many thanks for your help,
best regards,

pedro
Wednesday, 11 November 2015 15:12 UTC
wb_weeblr
Hi

Not yet sorry. For some reasons, I have multiple users with similarly complex issues, requiring taking a backup and debugging locally, so that's taking all my time and I have to process the requests in chronological order. I am downloading your backup now, and will revert shortly.

Rgds
 
Thursday, 12 November 2015 14:11 UTC
wb_weeblr
Hi

This is happening very simply because the Catalogo (Spanish) or Catalogue (French) URLs are registered with, respectively, the /es/ and /fr/ URLs. They are there as duplicates.
For instance, here is a screenshot of the Spanish one:


I suspect at some point in time, you had them as home page for those languages, but never purged URLs or deleted them after moving them out of the "Home" position, so the URLs stayed in the database.

Fix is simply to delete those URLs, for instance selecting them ( /fr/ and /es/) and clicking on "Delete with duplicates)

Rgds
 
Thursday, 12 November 2015 15:43 UTC
pedroazuram
Hi, thanks for your answer.
I erased the url with dupplicates, but it recreated as dupplicates. I attach the print screen of just before erasing, and after erasing. I never used the catalog page as homepage, and I have purged URLs many times rying to solve this issue...
Is there any way to "say to your component" do unlink premanently those 2 urls and to never again link them as duplicates ?
many thanks,
best regards,
pedro



Thursday, 12 November 2015 17:13 UTC
wb_weeblr
Hi

Yes, I saw that. Spent the last hour stepping through the code of your site. Though I don't know yet how this happens, I have identified that this is happening because of you autologinip plugin.
When disabled, the problem doesn't happen.

I have now to understand exactly why the URL is overriden that way.

Rgds
 
Thursday, 12 November 2015 17:24 UTC
wb_weeblr
False alarm, that's not it. Still working on it.
Rgds
 
Thursday, 12 November 2015 23:56 UTC
pedroazuram
Hi, I have another problem.
When using your SEF url optimisation, My virtuemart cart (i'm using a 3rd party extension) no longuer works.
First of all it directs to the home page with the cart "module" below (but as we dont see it is really weird). And most of all it makes some ajax calls when one enters zip codes or things like that and it never ends those ajax calls. If I turn your URL optimisation off, it works fine..
please let me know,

many thanks for your help. If for this 2nd issue, as it happens with a 3rd party extension, i have to pay some fee, I'd be OK, please let me know.

Best regards,

pedro
Friday, 13 November 2015 02:25 UTC
pedroazuram
Hi, an update of this issue of the virtuemart checkout.

So yes, when I click add to cart and then "show cart" it redirects to homepage and the cart is below so normally we dont see it if we dont scroll, but, I thing nobody will ever scroll down.

- the problem with the ajax responses not being well finished happens also with "normal" joomla SEF, so, it has not much to do with your component.
I have contacted the developer of that "onepage checkout" extension, so they will hopefully help us at least with the ajax issue.

Please let me know, asap for the "catalogue" problem and for this cart redirection problem.
best
pedro
Friday, 13 November 2015 08:33 UTC
wb_weeblr
Hi

Yes, spent most of yesterday on your site. I think I understand now what's happening. It originates from the mod_accessbyip. At some point, the module Jroute() the 'index.php' URL (instead of providing a full non-sef URL. That's a convention which normally should returns the current page URL. It works fine normally with sh404SEF, except when the page is a Virtuemart page (for very complicated and internal reasons)
Finding that this was happening was really hard, and that's why it took so long. I have made some changes to account for this situation (you can download it from this page).

I installed it on the site, cleaned up some bad URLs and it looks better.

As for the link to cart content displaying as if it was the home page, this is due to the lack of Itemid in the link created in the module. I'm not sure why that doesn't happen also with Joomla SEF, I'll try to look into it this morning.

Rgds
 
Friday, 13 November 2015 09:40 UTC
wb_weeblr
Hi

I have found a workaround for the lack of Itemid in the cart view. I have installed that new version on your site.

Please test further.

Rgds
 
Wednesday, 18 November 2015 08:14 UTC
pedroazuram
Hi ! thank you very much ! I hope you are going ok.

Sorry for the delay in this answer Ive had diffcult days.

Its working pretty good !

I have seen that the "originally weird" URLS that made object of this ticket, are not longer being resolved.
for exemple : http://www.xxxx.com/fr/vmvendor?userid=6046&view=vendorprofile

It takes me to the homepage, and also other functions that worked OK before last changes concerning that component (vmvendor) are also redirecting to the home. For example in this page : http://www.xxxx.com/paulmefano If you manipulate the "categories" filter under the "composer peicest tab. It will redirect to the homepage.

Best regards,

pedro

Wednesday, 18 November 2015 11:35 UTC
wb_weeblr
Hi

It takes me to the homepage
Nope, it triggers a 404 error page (as you haven't setup any specific Itemid for the error page, it's displayed using the homepage templates and modules).

It's normal to get a 404 as the /vmvendor is not found in the URL manager.

It all comes down to the com_vmvendor not being consistent with Itemids (it doesn't compute an Itemid for the links it builds).

This is why you had to create some incorrect custom links:

AlainLouvier -> index.php?option=com_vmvendor&lang=en&userid=6011&view=vendorprofile

where the Itemid = nothing.

This causes the issue with sh404sef, because it cannot find an Itemid at all.
Initially, I tried to fix com_vmvendor by properly using the correct Itemid, but it's getting too big, there are too many changes to make, and after all, this is not my extension.

So I'm looking into adding a workaround for this, a special case for extensions which don't use Itemid. It's actually really easy, but I need to test in multiple situations so that it doesn't introduce problem with well-behaved extensions.

I'll get back to you soon

Rgds
 
Wednesday, 18 November 2015 11:58 UTC
wb_weeblr
Hi

So I have made a version with that workaround. You can download it from this page. Please test again and let me know.

Note that those URLs (/fr/vmvendor?userid=6046&view=vendorprofile) simply should not exist. Currently, all links to say, Alain Louvier page resolves to /AlainLouvier, as per the custom URLs you created - which have "&Itemid=" in them, as com_vmvendor builds its non-sef.

Rgds
 
Thursday, 19 November 2015 11:51 UTC
pedroazuram
Hi !

I'm having a quite silly problem now.

Users logout is not working. I have instead a 404 ( i have not yet configured it).


So when i click on logout it does not logout instead it goes to that page.

Bad karma: we can't find that page!

You asked for http://www.xxxx.com/en/, but despite our computers looking very hard, we could not find it. What happened ?

the link you clicked to arrive here has a typo in it
or somehow we removed that page, or gave it another name
or, quite unlikely for sure, maybe you typed it yourself and there was a little mistake ?


Many thanks

pedro
Thursday, 19 November 2015 11:54 UTC
wb_weeblr
Hi

If this is on another site, as it seems, please close this ticket, and open another one with all appropriate details.

Rgds
 
Thursday, 19 November 2015 11:58 UTC
pedroazuram
Hi . Oh sorry. It is the same site, i have duplicated it in order to test a few things.

www.xxxx.com/en

Users logout is not working. I have instead a 404 ( i have not yet configured it).

So when i click on logout it does not logout instead it goes to that page.

Bad karma: we can't find that page!

You asked for http://www.xxxx.com/en/, but despite our computers looking very hard, we could not find it. What happened ?

the link you clicked to arrive here has a typo in it
or somehow we removed that page, or gave it another name
or, quite unlikely for sure, maybe you typed it yourself and there was a little mistake ?


Many thanks

pedro
Thursday, 19 November 2015 13:44 UTC
wb_weeblr
Hi

This is once again one of those special cases, and a consequence of all those changes I made recently to the Multilingual + Virtuemart handling. Please download a fixed version from this page.

While testing on my local copy of your site, I noticed the behavior is not entirely right. If you're on the, say, /fr/ page and you log in using the "My account" button, you log in alright, but you're redirected to the English home page. Same from spanish (haven't tried from other pages).
I haven't found what's causing this, but I did check the behavior was the same with sh404SEF disabled, so it's something in your log in module setup probably, maybe not the right return URL?

Rgds
 
Thursday, 19 November 2015 15:38 UTC
pedroazuram
Hi thank you very much. Yes, it could maybe be something with my custom log module. I will check that out.

Thank you very much,

best
pedro
Thursday, 19 November 2015 15:50 UTC
wb_weeblr
ahh, it's a custom module. I was wondering why we never had that problem! Yes, might have to do with that. I'll have to check with standard Joomla now.

Rgds
 
Monday, 23 November 2015 14:43 UTC
pedroazuram
Hi,
After all this fixes I can upgrade ? or it will undo some "custom" fixes ?

thanks,

pedro
Monday, 23 November 2015 14:45 UTC
wb_weeblr
Hi

No, this release contains all the changes you already have. The version you installed was the "current" development version. We always add to the current dev version.

Rgds
 
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.