[Skip to main content](#vessel-content)

#   user.php - Fatal Error - JDate::toMySQL()

##

- **[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")**
- [![milanwehrmann's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile") Topic Author
- [ Offline](/forum/user/11363-milanwehrmann)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 1 day ago [\#75931](#75931) by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")  Replied by *[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#75931 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

You meen @$_GET; at the end of that line or?

And why Im missing the end of the code?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 1 day ago [\#75935](#75935) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#75935 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

No I mean Code:

@$_GET['lang'];

at the end of the code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")**
- [![milanwehrmann's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile") Topic Author
- [ Offline](/forum/user/11363-milanwehrmann)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 1 day ago -  14 years 1 day ago [\#75944](#75944) by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")  Replied by *[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#75944 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Ok thanks, but it doesnt work in this way, sorry.
This message comes:

Mail-Funktion konnte nicht initialisiert werden! (In English: Mail function could not be initialized!)

But this can be now my server. I would try it later.

Last edit: 14 years 1 day ago by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 1 day ago [\#75947](#75947) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#75947 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

That's indeed an error of your email server.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")**
- [![milanwehrmann's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile") Topic Author
- [ Offline](/forum/user/11363-milanwehrmann)

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 17 hours ago [\#76217](#76217) by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")  Replied by *[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#76217 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Okay I've tried it again. It works with Danish but with German I receive the 404-Error-Page again. But if I click on "Hjemmeside" (What means Webseite or Homepage) then I get the shop with a message I activate correctly the new username...

How I can skip the error page automatically?

Thank you for you help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

13 years 11 months ago [\#76540](#76540) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#76540 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Ok. So what is the URL with the German language ?
I suppose that the lang parameter of the URL of the email is either missing or not correct which is why you're getting the 404 error.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")**
- [![milanwehrmann's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile") Topic Author
- [ Offline](/forum/user/11363-milanwehrmann)

Less More

- Posts: 16
- Thank you received: 0
-
-

13 years 11 months ago [\#76603](#76603) by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")  Replied by *[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")* on topic *[Re: user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#76603 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

German:
[ joomla.milanwehrmann.ch/Joomla/index.php...=14&amp;Itemid=486&amp;lang=](http://joomla.milanwehrmann.ch/Joomla/index.php?option=com_hikashop&ctrl=checkout&task=activate&activation=ff376e5c0366f231fe123a7c59fcc7bc&infos=YToyOntzOjY6InBhc3N3ZCI7czo0OiIxMjM0IjtzOjg6InVzZXJuYW1lIjtzOjc6ImhlcmJlcnQiO30%3D&page=checkout&id=14&Itemid=486&lang=)

Danish:
[ joomla.milanwehrmann.ch/Joomla/index.php...=15&amp;Itemid=497&amp;lang=](http://joomla.milanwehrmann.ch/Joomla/index.php?option=com_hikashop&ctrl=checkout&task=activate&activation=0c2a21f7c079964e20665a74e42b8441&infos=YToyOntzOjY6InBhc3N3ZCI7czo0OiIxMjM0IjtzOjg6InVzZXJuYW1lIjtzOjY6IlNhYWNrZSI7fQ%3D%3D&page=checkout&id=15&Itemid=497&lang=)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#76827](#76827) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#76827 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Hi,

There is no "lang" value in each of your urls.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")**
- [![milanwehrmann's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile") Topic Author
- [ Offline](/forum/user/11363-milanwehrmann)

Less More

- Posts: 16
- Thank you received: 0
-
-

13 years 11 months ago [\#76887](#76887) by [milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")  Replied by *[milanwehrmann](/forum/user/11363-milanwehrmann "View milanwehrmann's Profile")* on topic *[user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#76887 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Yes I see it. But with Danish it works because thats the standard-language. But what can I do that it works also with German?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77097](#77097) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[user.php - Fatal Error - JDate::toMySQL()](/forum/2-general-talk-about-hikashop/75497-user-php-fatal-error-jdate-tomysql?start=20#77097 "Hallo / Hello,  I have a problem. I have the shop on my webpage and if I would Registred a new Adress with Username and Password, Street etc., I get this Error-Message:  Fatal error: Call to undefined method JDate::toMySQL() in /home/www/web355/html/Joomla/administrator/components/com&#95;hikashop/classes/user.php on line 497  What can I do?  Thanks for your comments!!!  Milan")*

Hi,

I think that there is not "lang" parameter in your website, so when you added the language with " &amp;lang='.@_GET; ", the langue never present so the value is empty.
So we need to get the current language with another method.
Maybe with a JRequest. Please replace @_GET by this : Code:

JRequest::getVar('lang', 'de');

Or a more complexe code, by getting the Joomla language object to get the current code.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc1NDk3LXVzZXItcGhwLWZhdGFsLWVycm9yLWpkYXRlLXRvbXlzcWw/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
