Unicode slugs - Support

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
oizumi
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 12, 2010 4:57 am

Re: Unicode slugs - Support

Post by oizumi » Mon Aug 30, 2010 12:45 pm

Good news. I changed from Windows server to Linux and now everything is working great!

Thanks for this amazing plugin...

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Tue Aug 31, 2010 5:37 pm

Please type here the Japanese characters that don't show OK for you.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

sadremm
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Sep 13, 2010 5:50 pm

Re: Unicode slugs - Support

Post by sadremm » Tue Sep 14, 2010 11:13 am

Hello,
Need help
I have my test hosting running on windows 2003 server + apache
joomla 1.5.15
joomfish
How to configure slug plugin to work with joomfish ?
Thank You in advance .

zonhal
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sat May 30, 2009 12:42 pm

Re: Unicode slugs - Support

Post by zonhal » Mon Oct 25, 2010 6:47 am

Hi:
I wanted to know if the plugin will work in HEBREW sites? will the alias be in hebrew??

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Thu Oct 28, 2010 10:54 am

zonhal wrote:Hi:
I wanted to know if the plugin will work in HEBREW sites? will the alias be in hebrew??
Yes. Just test.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

zonhal
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Sat May 30, 2009 12:42 pm

Re: Unicode slugs - Support

Post by zonhal » Thu Oct 28, 2010 12:44 pm

works, THANKS!!!

PierreB
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Tue Sep 21, 2010 2:39 pm

Re: Unicode slugs - Support

Post by PierreB » Fri Nov 05, 2010 11:44 am

infograf

Thank you very much for this great extension.

Unfortunately like others, I have come across problems when editing articles in the front-end...

Editing articles works when that article is in the frontpage, so no unicode-nonlatin characters are present in the url, just the name of the domain (in latin characters)

I get the 404 error when I try to edit an article from inside a section or category in the front-end, that is when unicode non-latin characters (greek in my case) are present in the url when I click the edit icon in the front end.

I found the patch that must be applied, but I could not figure out how to install the "utf8_base64_encode_decode.patch" file.
I browsed this thread and I saw that you had offered a compressed archive of files/folders for one to upload to their joomla install directory.

But I found an error in that archive
in the "components" folder you have a second folder, "com_contents", whereas the correct folder would have to be "com_content"

Also, this compressed pack also includes a file in a place which - according to the code within the .patch file - should not be there, i.e. the "icon.php" file in the "components" folder, whereas it should be only (?) in the "components/com_content/helpers" folder.

Could you please check that archive for both errors (or possible others) and verify that all that needs to be installed gets installed in the right place?

The above error might result in people trying out the patch but reporting that it is not working, whereas the fix might be to correct the target folder.

Please verify....your work is much appreciated and we are very grateful.

PierreB
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Tue Sep 21, 2010 2:39 pm

Re: Unicode slugs - Support

Post by PierreB » Fri Nov 05, 2010 1:39 pm

I report that I copied "controller.php", "icon.php" and "string.php" files in the appropriate places (did not copy "icon.php" in the "components" folder, as is found in the compressed archive) and the problem of editing/saving from the front-end has been solved...

The files do work!! Thank you very much!!!

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Fri Nov 05, 2010 3:37 pm

Great

Indeed this hack needs being redone.
the patch was OK

Will look if it is still up-to-date though since I released it.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

PierreB
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Tue Sep 21, 2010 2:39 pm

Re: Unicode slugs - Support

Post by PierreB » Fri Nov 05, 2010 4:10 pm

Great, thank you very much...

...one more thing...I don't want to take advantage of your good will, but I would appreciate if you could tell us how that *.patch file is installed.

I have googled it, yet I have found no instruction on how to use and apply "*.patch" files...

Cheers.


EDIT

Wait, I think I got it...I thought there was an automatic way to apply the patch, but it seems the "*.patch" file just points you to the changes, the lines in the code that must be changed...

Here is the link that explains how to read a .patch file
http://docs.joomla.org/Learn_more_about_patch_files

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Fri Nov 05, 2010 4:54 pm

There is indeed a way to apply a patch and it is using eclipse or another svn client.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

PierreB
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 152
Joined: Tue Sep 21, 2010 2:39 pm

Re: Unicode slugs - Support

Post by PierreB » Fri Nov 05, 2010 5:28 pm

hmm no idea what those are...will try to look into it.

If, however you make any changes to the patch, it would be great if these were offered also in the format of ready folders/files

The manual way (cutting/pasting code from the .patch file) is indeed very time consuming

turgitec
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed May 19, 2010 8:47 pm

Re: Unicode slugs - Support

Post by turgitec » Thu Nov 11, 2010 11:07 pm

hi infograf768,
sorry for my english and thank a lot for the plugin!!!

I have problem with the these characters:
"מ" and "א"

When an alias contain one of this characters i get 404 error page.

this happends only on windows servers (with xampp if it matters), on linux its work fine.

i can't move to linux server, is there any solution for this on windows server?

with all greetings!
yehuda

ledieuanh
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Nov 30, 2010 10:07 am
Location: Berlin
Contact:

Re: Unicode slugs - Support

Post by ledieuanh » Thu Dec 09, 2010 7:24 am

It doesn´t work well with Vietnamese :( PLease have support for this language

Thanks a lot

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Thu Dec 09, 2010 2:31 pm

Indeed, there may be issues on Windows with some unicode glyphs.

We are solving this issue in 1.6 but it would require a hack to be solved on 1.5 as this is due to a php bug.

Will see if this could be implemented in a next 1.5 release
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

turgitec
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed May 19, 2010 8:47 pm

Re: Unicode slugs - Support

Post by turgitec » Thu Dec 09, 2010 2:49 pm

infograf768 wrote:Indeed, there may be issues on Windows with some unicode glyphs.

We are solving this issue in 1.6 but it would require a hack to be solved on 1.5 as this is due to a php bug.

Will see if this could be implemented in a next 1.5 release
Thanks!!!

ledieuanh
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Nov 30, 2010 10:07 am
Location: Berlin
Contact:

Re: Unicode slugs - Support

Post by ledieuanh » Fri Dec 10, 2010 7:00 am

Thanks for Your questions, but Component and mod of 1.6 comatible with 1.5???

ledieuanh
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Nov 30, 2010 10:07 am
Location: Berlin
Contact:

Re: Unicode slugs - Support

Post by ledieuanh » Sun Dec 12, 2010 12:38 pm

Thanks for this plugin, it works good on hosteurope.de

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Mon Dec 13, 2010 4:44 pm

ledieuanh wrote:Thanks for Your questions, but Component and mod of 1.6 comatible with 1.5???
This plugin is no more necessary in 1.6
We implemented the functionnality in core. :)
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

turgitec
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed May 19, 2010 8:47 pm

Re: Unicode slugs - Support

Post by turgitec » Mon Dec 13, 2010 5:20 pm

wow! this is good news!!! :)

mwPeaknet
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Dec 28, 2010 11:01 pm

Re: Unicode slugs - Support

Post by mwPeaknet » Tue Dec 28, 2010 11:09 pm

Hello

I'm running a fresh install of Joomla v1.5.22. When enabeling this plugin I get the follow ing error:

Fatal error: Cannot redeclare class jfilteroutput in /xxxx/xxxx/vhtdocs/www.testsite.com/plugins/system/unicode ... output.php on line 24

I read some previous posts about clashes with other plugins but no other extra plugins have been installed. I have installed the K2 component:

http://extensions.joomla.org/extensions ... I7fQ%3D%3D

but scanning all of the files this does not contain any references to 'class JFilterOutput'.

Can you think of any other reasons for this error?


Cheers
Martin

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Wed Dec 29, 2010 7:44 am

You may have to contact K2 devs.
I see in their code (K2_v2.4.1) that they take into account unicodeslug plugin if enabled:

if(JPluginHelper::isEnabled('system', 'unicodeslug'))
$this->alias = JFilterOutput::stringURLSafe($this->alias);
else {

Also I would do a grep on the full site to see if the class is redeclared somewhere.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

mwPeaknet
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Dec 28, 2010 11:01 pm

Re: Unicode slugs - Support

Post by mwPeaknet » Wed Dec 29, 2010 2:27 pm

Thanks for the quick response infograf768.

To start with I uninstalled both the unicode slug and K2 then reinstalled just the Unicode slug and as soon as I enabled it the same problem occured?

Any ideas? I will also follow your other instructions and see what they may turn up.


Cheers
Martin

mwPeaknet
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Dec 28, 2010 11:01 pm

Re: Unicode slugs - Support

Post by mwPeaknet » Wed Dec 29, 2010 3:50 pm

I've done a complete search of the site and this has turned up nothing apart from the 2 instances:

/libraries/joomla/filter/filteroutput.php
/plugins/system/unicodeslug/filteroutput.php

This to me suggests that the error happens because of the declaration in the first file. Should JFilterOutput in unicodeslug be extending the original declaration rather than being called JFilterOutput?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Wed Dec 29, 2010 4:14 pm

mwPeaknet wrote:Should JFilterOutput in unicodeslug be extending the original declaration rather than being called JFilterOutput?
Nope. The full class has to be overriden as otherwise core would have to be hacked and in this case it would be easier to add a new function.
You are the first to get this error and I have honestly no idea why.
Could you reorder the system plugins and make sure unicodeslug loads first?
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

mwPeaknet
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Dec 28, 2010 11:01 pm

Re: Unicode slugs - Support

Post by mwPeaknet » Wed Dec 29, 2010 5:07 pm

Hello

Checked the plugin page and the unicode slug is set at 0 in the order for the system plugins.

I have run get_called_class() at the bottom of administrator/index.php, the output is below.

As you can see JFilterOutput is declared by the system and then later on it attempts to declare it again from the unicode slug - ive renamed the one in unicode slug as JFilterOutput_kill to highlight it.

Does this shed any light on the issue?

Array
(
[0] => stdClass
[1] => __PHP_Incomplete_Class
[2] => Directory
[3] => jloader
[4] => jobject
[5] => jrequest
[6] => jresponse
[7] => jfactory
[8] => jversion
[9] => jerror
[10] => jexception
[11] => jarrayhelper
[12] => jfilterinput
[13] => jfilteroutput
[14] => jroute
[15] => jtext
[16] => jconfig
[17] => jmenu
[18] => juser
[19] => jregistry
[20] => jregistryformat
[21] => jelement
[22] => jparameter
[23] => juri
[24] => jhtml
[25] => jutility
[26] => jobserver
[27] => jevent
[28] => jobservable
[29] => jdispatcher
[30] => jlanguage
[31] => jstring
[32] => jadministratorhelper
[33] => jtoolbarhelper
[34] => jsubmenuhelper
[35] => jtoolbar
[36] => jbutton
[37] => japplication
[38] => japplicationhelper
[39] => jadministrator
[40] => jcomponenthelper
[41] => jframeworkconfig
[42] => jsession
[43] => jsessionstorage
[44] => jsessionstoragedatabase
[45] => jdatabase
[46] => jtable
[47] => jdatabasemysql
[48] => jpath
[49] => jtablesession
[50] => jregistryformatini
[51] => jfolder
[52] => jpluginhelper
[53] => jplugin
[54] => plgsystemunicodeslug
[55] => plgsystemsef
[56] => plgsystemdebug
[57] => jsimplexml
[58] => jsimplexmlelement
[59] => plgsystemremember
[60] => jfilteroutput_kill
[61] => jdocument
[62] => jdocumentrenderer
[63] => jdocumenthtml
[64] => jmodulehelper
[65] => jhtmlbehavior
[66] => gacl
[67] => gacl_api
[68] => jauthorization
[69] => jcontroller
[70] => pluginscontroller
[71] => jmodel
[72] => jview
[73] => pluginsviewplugins
[74] => jpagination
[75] => jpaginationobject
[76] => jhtmlselect
[77] => jhtmlgrid
[78] => jhtmlimage
[79] => jrouter
[80] => jrouteradministrator
[81] => jhtmlform
[82] => jdocumentrenderercomponent
[83] => jdocumentrenderermessage
[84] => jdocumentrenderermodules
[85] => jdocumentrenderermodule
[86] => jadminsubmenu
[87] => jbuttonstandard
[88] => jbuttonhelp
[89] => jhelp
[90] => modmenuhelper
[91] => jtree
[92] => jnode
[93] => jadmincssmenu
[94] => jmenunode
[95] => menushelper
[96] => jdocumentrendererhead
)

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Thu Dec 30, 2010 5:10 am

Sorry, no idea.

As I said, it's the first time I hear about this issue since the plugin was made available.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

behzadbusiness
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 11, 2011 7:07 am

url problem

Post by behzadbusiness » Sat Jun 11, 2011 7:11 am

hi
thanks for your good extention
i'm using it but i have one problem , in the admin panel it works i mean when i type
ویژه های من
it change to
ویژه-های-من
but when i go to my website (www.behzadn.ir) it doesn't work and show the link with date like this
http://www.behzadn.ir/index.php/1390-02 ... 39-34.html

now what can i do?

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Unicode slugs - Support

Post by infograf768 » Sat Jun 11, 2011 3:59 pm

Is the alias saved as

ویژه-های-من
?[/right]

Please post a screen capture of the editing of a menu item.

Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

behzadbusiness
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 11, 2011 7:07 am

Re: Unicode slugs - Support

Post by behzadbusiness » Sun Jun 12, 2011 5:33 am

hi
it's ok , sorry i forgot to change alias for section and category :-[


Locked

Return to “Extensions for Joomla! 1.5”