Skip to main content

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

More
13 years 10 months ago - 13 years 10 months ago #75497 by milanwehrmann
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_hikashop/classes/user.php on line 497

What can I do?

Thanks for your comments!!!

Milan
Last edit: 13 years 10 months ago by milanwehrmann.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75500 by nicolas
Hi,

Change the line:
$user->set('registerDate', $date->toMySQL());

to:
$user->set('registerDate', $date->toSql());

in the file administrator/components/com_hikashop/classes/user.php via FTP and that should solve the problem.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago - 13 years 10 months ago #75504 by milanwehrmann
Hi, Thank you for your help:

After this change, I get this Error-Message:

Fatal error: Call to undefined method JUtility::getHash() in /home/www/web355/html/Joomla/administrator/components/com_hikashop/classes/user.php on line 505

and the Browser-URL is: joomla.milanwehrmann.ch/Joomla/index.php...out/step/step-1.html

Thanks
Last edit: 13 years 10 months ago by milanwehrmann.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75506 by nicolas
Change the line:
$user->set('activation', JUtility::getHash( JUserHelper::genRandomPassword()) );

to:
$user->set('activation', JApplication::getHash( JUserHelper::genRandomPassword()) );

in the file administrator/components/com_hikashop/classes/user.php via FTP and that should solve the problem.
The following user(s) said Thank You: milanwehrmann

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75508 by milanwehrmann
Yes that was the solution of this error. Thank You.

But the next Error is, if I join the activation-link in the activation-e-mail:

Fatal error: Call to undefined method JModel::addIncludePath() in /home/www/web355/html/Joomla/components/com_hikashop/controllers/checkout.php on line 96

Thank you for your help!!!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75511 by nicolas
Change the line:
JModel::addIncludePath(HIKASHOP_ROOT . DS . 'components' . DS . 'com_users' . DS . 'models');

to:
JModelLegacy::addIncludePath(HIKASHOP_ROOT . DS . 'components' . DS . 'com_users' . DS . 'models');

in the file components/com_hikashop/controllers/checkout.php via FTP and that should solve the problem.
The following user(s) said Thank You: milanwehrmann

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75517 by milanwehrmann
Thank you!! It works!

My next problem is this:

Nachricht:
No payment methods found
Keine Liefermethode gewählt (in English: No delivery methods found.)

But in the configuration, I have a payment method (bank transfer) and 2 delivery methods (manual shipping).

I like your shop-plugin very much. That is the reason why I want it works. Thank you you help me.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75519 by nicolas
That's because your methods are not configured properly.

Please check that FAQ:
www.hikashop.com/en/support/documentatio...ins-listing.html#faq
The following user(s) said Thank You: milanwehrmann

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75524 by milanwehrmann
This tip was well, but my costumers order from three different countries.

So with a Adress from Danmark it works, because Danmark is my Standard probably. But with Germany or Switzerland, I get this message: "No pay methodes found"

Thank you so much for your help

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75527 by nicolas
You should remove the zone restriction that you configured in your payment method.
The following user(s) said Thank You: milanwehrmann

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75658 by milanwehrmann
Thank you!!

Everything works!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75662 by milanwehrmann
But something others:

If I have indicated in a new visitor every user address data and I click to register, then comes a new site with the message that you have to activate the email-link.
Can I change the place from over my logo to below the logo?

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75664 by nicolas
The messages are displayed by your template. You will have to edit your template's index.php and move the messages zone below your banner area.
I would recommend to contact your template provider for that as it can be a lot different from one template to another.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75679 by milanwehrmann
Okay Thank you, I will look...

another problem after I click on the activation link in the email.

I recieve a error page 404. Why?

Thank you for your support!!!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75680 by milanwehrmann
but if I go back to the shop, the activation was made.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago - 13 years 10 months ago #75863 by nicolas
Try to change the line:
Code:
$this->registerData->activation_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=activate&activation='.$user->get('activation').'&infos='.$vars.'&page='.$page.'&id='.$this->user_id.$url;

to:
Code:
$this->registerData->activation_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=activate&activation='.$user->get('activation').'&infos='.$vars.'&page='.$page.'&id='.$this->user_id.$url.'&lang='.@$_GET['lang'];
in the file administrator/components/com_hikashop/classes/user.php
Last edit: 13 years 10 months ago by nicolas.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75897 by milanwehrmann
Sorry I had to say you that it works with danish (my first language I think), but not with german!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75899 by nicolas
The line wasn't saved properly by the forum. Try again with the code I put in my previous message.

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75915 by milanwehrmann
No, sorry, that's not yet the full solution:
Into the E-Mail are this links:

In the Danish's one:
joomla.milanwehrmann.ch/Joomla/index.php...temid=497&lang=Array

In the German's one:
joomla.milanwehrmann.ch/Joomla/index.php...d=9&Itemid=486&lang=

I miss the Array in the end of the German's one. I think this is the error.

Thank you for your support!!

Please Log in or Create an account to join the conversation.

More
13 years 10 months ago #75919 by nicolas
If you have Array, it means that you're missing the end of the code.
Please make sure that you have @$_GET; at the end of that line.

Please Log in or Create an account to join the conversation.

Time to create page: 0.334 seconds
Powered by Kunena Forum