Active
Project:
KCFinder integration
Version:
7.x-1.85
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2012 at 14:00 UTC
Updated:
22 Jun 2012 at 14:12 UTC
Note: this bug happens while using i18n module.
Notice : Trying to get property of non-object dans locale_language_url_rewrite_url() (ligne 423 dans /var/www/includes/locale.inc).
This error is generated (twice) each time a form with a Wysiwyg-enabled field is displayed.
This is non-blocking, but fairly annoying for my customers.
Apparently this is caused when calling the url() function with a string parameter for the language ('en', 'fr',...), instead of a language object.
I think this could be easily fixed...
Comments
Comment #1
TarKHaoS commentedActually, in kcfinder.inc.php, the kcfinder_library_path_url() [line 50] can be rewritten as following:
Comment #2
torbasow commentedNo, this line must be:
Because if you have multilingual site with prefixes and argument language is omitted here then default language prefix will be inserted and upload path will be broken. Default language setting must be prevented with that value so we’ll come here (locale.inc):
Sorry for my bad English.
Comment #3
marcof-1 commentedI confirm the issue and the solution proposed by torbasow.
Comment #4
TarKHaoS commentedI confirm that solution #2 works.
This would be great if this fix is applied in next release of the module.