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

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75497

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: 12 years 2 weeks ago by milanwehrmann.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75500

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75504

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: 12 years 2 weeks ago by milanwehrmann.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75506

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75508

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75511

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75517

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75519

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75524

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75527

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75658

Thank you!!

Everything works!

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

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75662

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?

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75664

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75679

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!!!

Attachments:

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

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75680

but if I go back to the shop, the activation was made.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75863

Try to change the line:

$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:
$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: 12 years 2 weeks ago by nicolas.

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

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75897

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75899

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.

  • Posts: 16
  • Thank you received: 0
12 years 2 weeks ago #75915

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.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
12 years 2 weeks ago #75919

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.089 seconds
Powered by Kunena Forum