Elxis CMS Forum

Support => Technical support => Topic started by: santiago on October 28, 2007, 23:15:36

Title: fatal error Call to undefined method mosSection::getErrorMsg()
Post by: santiago on October 28, 2007, 23:15:36
Fatal error: Call to undefined method mosSection::getErrorMsg() in /home/xxxxxxyyyyyyy/public_html/dir/administrator/components/com_sections/admin.sections.php on line 613

Hi, I'm developing a bilingual site.
I have created sections and categories; and some must have the same name; when I created categoríes the system didn't allow me to have two categories with the same name.

Well I need it because the categories are city names wich have the same name in english and spanish.
I tried :
  category name:  Cuenca
  title:  Cuenca
  language: english
The system didn't allow it because they had the same name.
I tried:
  category name:  Cuenca english
  title:  Cuenca
  language: english
The system allowed it; but it was not good for me because Cuenca english presented as title of the information on the front end.
Then I tried
category name:  Cuenca
title:  Cuenca english
  language: english
And it worked! 

Now I wanted to do the same thing with sections;
but when I tried the workaround I got this error

Fatal error: Call to undefined method mosSection::getErrorMsg() in /home/xxxxxxyyyyyyy/public_html/dir/administrator/components/com_sections/admin.sections.php on line 613

I came up with a different workaraund wich was:
category name:   Azuay   (with a blank space at the beginning and the end of the word)
title:  Azuay english
  language: english
And it worked! 
I just wanted to tell people about this little bug. May be it is not the right place so the administrator can move it to the right topic.

Regards,
Santiago
Title: Re: fatal error Call to undefined method mosSection::getErrorMsg()
Post by: Ivan Trebješanin on October 29, 2007, 01:05:19
Thank you Santiago for this little briefing, I'm very soon going to need something alike.  :D

PS
I wouldn't call it a bug, though. I believe it is what things are meant to be.
Title: Re: fatal error Call to undefined method mosSection::getErrorMsg()
Post by: santiago on October 29, 2007, 22:25:01
Ivan, I agree.  I would not call bug the fact that you can't name two sections exactly the same.
What I call a little bug is the fact that there is no an alert window with an user friendly message (like what happened with categories) but a system error.

Thanks for your response.
Santiago
Title: Re: fatal error Call to undefined method mosSection::getErrorMsg()
Post by: Ivan Trebješanin on October 30, 2007, 00:38:47
Hopefully, datahell or eliasan are going to read this post... :)
Title: Re: fatal error Call to undefined method mosSection::getErrorMsg()
Post by: datahell on October 30, 2007, 07:32:30
I will check it  ;)