Register step not going further

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14311

Hi,

I have the following checkout workflow:
cart_coupon,login,address,shipping,payment,confirm_cart_coupon_status_fields,end

I can add a product to my cart, click next.
Now I fill in the login form. When I click next the password-field and verifypassword-field are blanked out (and the password-field is now preset with a cookie value I think, the other one left blank). And I stay on this step.
No message or something.

This is what I see in my shoppingcart:
Notice: Trying to get property of non-object in /var/www/html/administrator/components/com_hikashop/classes/currency.php on line 1497
Name Qty Price
Mini ball labret jewelled Gauge: 1,2 length:9 15,00 € remove product
Total 15,00 €


And these are debugmessages shown on my storefront:
Profile Information
Application afterLoad: 0.000 seconds, 0.21 MB
Application afterInitialise: 0.064 seconds, 2.10 MB
Application afterRoute: 0.075 seconds, 2.51 MB
Application afterDispatch: 0.240 seconds, 6.54 MB
Application afterRender: 0.343 seconds, 7.93 MB
Memory Usage
8399760
27 queries logged

1.
SELECT *
FROM jos_session
WHERE session_id = 'p5mtm1fglt166aae5pdrd9bft4'
2.
DELETE
FROM jos_session
WHERE ( time < '1302861468' )
3.
SELECT *
FROM jos_session
WHERE session_id = 'p5mtm1fglt166aae5pdrd9bft4'
4.
UPDATE `jos_session`
SET `time`='1302862368',`userid`='0',`usertype`='',`username`='',`gid`='0',`guest`='1',`client_id`='0',`data`='__default|a:8:{s:15:\"session.counter\";i:19;s:19:\"session.timer.start\";i:1302861920;s:18:\"session.timer.last\";i:1302862276;s:17:\"session.timer.now\";i:1302862276;s:22:\"session.client.browser\";s:81:\"Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2) Gecko/20100115 Firefox/3.6\";s:8:\"registry\";O:9:\"JRegistry\":3:{s:17:\"_defaultNameSpace\";s:7:\"session\";s:9:\"_registry\";a:2:{s:7:\"session\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}s:12:\"com_hikashop\";a:1:{s:4:\"data\";O:8:\"stdClass\":9:{s:11:\"currency_id\";i:1;s:7:\"zone_id\";s:2:\"21\";s:12:\"ssl_redirect\";i:0;s:49:\"product_hikashop_category_information_module_26_2\";O:8:\"stdClass\":1:{s:10:\"limitstart\";i:0;}s:50:\"product_hikashop_category_information_module_26_11\";O:8:\"stdClass\":1:{s:10:\"limitstart\";i:0;}s:7:\"cart_id\";i:19;s:15:\"shipping_method\";i:0;s:11:\"shipping_id\";i:0;s:13:\"shipping_data\";i:0;}}}s:7:\"_errors\";a:0:{}}s:4:\"user\";O:5:\"JUser\":20:{s:2:\"id\";s:1:\"0\";s:4:\"name\";s:8:\"frederik\";s:8:\"username\";s:3:\"fre\";s:5:\"email\";s:27:\"sandy_verfaille@hotmail.com\";s:8:\"password\";s:1:\"f\";s:14:\"password_clear\";s:0:\"\";s:8:\"usertype\";N;s:5:\"block\";N;s:9:\"sendEmail\";i:0;s:3:\"gid\";s:1:\"0\";s:12:\"registerDate\";N;s:13:\"lastvisitDate\";N;s:10:\"activation\";N;s:6:\"params\";N;s:3:\"aid\";i:0;s:5:\"guest\";i:1;s:7:\"_params\";O:10:\"JParameter\":7:{s:4:\"_raw\";s:0:\"\";s:4:\"_xml\";N;s:9:\"_elements\";a:0:{}s:12:\"_elementPath\";a:1:{i:0;s:53:\"/var/www/html/libraries/joomla/html/parameter/element\";}s:17:\"_defaultNameSpace\";s:8:\"_default\";s:9:\"_registry\";a:1:{s:8:\"_default\";a:1:{s:4:\"data\";O:8:\"stdClass\":0:{}}}s:7:\"_errors\";a:0:{}}s:9:\"_errorMsg\";N;s:7:\"_errors\";a:0:{}s:9:\"password2\";s:1:\"f\";}s:13:\"session.token\";s:32:\"9c0af9bc944852dd983dde754db1b8f5\";}hikashop_register_data|O:8:\"stdClass\":7:{s:4:\"name\";s:8:\"frederik\";s:8:\"username\";s:3:\"fre\";s:5:\"email\";s:27:\"sandy_verfaille@hotmail.com\";s:8:\"password\";s:1:\"f\";s:9:\"password2\";s:1:\"f\";s:2:\"id\";s:1:\"0\";s:3:\"gid\";s:1:\"0\";}hikashop_user_data|N;hikashop_address_data|O:8:\"stdClass\":9:{s:13:\"address_title\";s:2:\"Mr\";s:17:\"address_firstname\";s:5:\"freek\";s:16:\"address_lastname\";s:2:\"dd\";s:14:\"address_street\";s:4:\"swet\";s:17:\"address_post_code\";s:4:\"8800\";s:12:\"address_city\";s:3:\"iuh\";s:17:\"address_telephone\";s:10:\"0456444444\";s:13:\"address_state\";s:25:\"state_West_Vlaanderen_643\";s:15:\"address_country\";s:18:\"country_Belgium_21\";}'
WHERE session_id='p5mtm1fglt166aae5pdrd9bft4'
5.
SELECT *
FROM jos_components
WHERE parent = 0
6.
SELECT folder AS type, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
7.
SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
8.
SELECT *
FROM jos_hikashop_config
9.
SELECT a.*
FROM jos_hikashop_cart AS a
WHERE a.cart_id = 19
ORDER BY a.cart_modified DESC
LIMIT 1
10.
SELECT b.*,c.*
FROM jos_hikashop_cart_product AS b
LEFT JOIN jos_hikashop_product AS c
ON b.product_id=c.product_id
WHERE b.cart_id = 19
AND b.product_id > 0
ORDER BY c.product_parent_id ASC,b.cart_product_modified ASC
11.
SELECT *
FROM jos_hikashop_field AS a
WHERE a.`field_published` = 1
AND a.`field_frontcomp` = 1
AND a.field_table='register'
ORDER BY a.`field_ordering` ASC
12.
SELECT *
FROM jos_hikashop_field AS a
WHERE a.`field_published` = 1
AND a.`field_frontcomp` = 1
AND a.field_table='user'
ORDER BY a.`field_ordering` ASC
13.
SELECT *
FROM jos_hikashop_field AS a
WHERE a.`field_published` = 1
AND a.`field_frontcomp` = 1
AND a.field_table='address'
ORDER BY a.`field_ordering` ASC
14.
SELECT name
FROM jos_core_acl_aro_groups
WHERE id = 0
15.
SELECT id
FROM jos_core_acl_aro_groups
WHERE name='Registered'
16.
SELECT id
FROM jos_users
WHERE username = 'fre'
AND id != 0
17.
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 26)
ORDER BY menuid DESC
LIMIT 0, 1
18.
SELECT *
FROM jos_menu
WHERE id = '26'
LIMIT 1
19.
SELECT *
FROM jos_modules
WHERE id IN (26);
20.
SELECT a.*
FROM jos_hikashop_zone AS a
WHERE a.zone_type IN ('country')
AND a.zone_published=1
ORDER BY a.zone_name_english ASC
21.
SELECT a.*
FROM jos_hikashop_zone AS a
WHERE a.zone_type IN ('country')
AND a.zone_published=1
ORDER BY a.zone_name_english ASC
22.
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 26 OR mm.menuid = 0 )
ORDER BY position, ordering
23.
SELECT b.*,c.*
FROM jos_hikashop_cart_product AS b
LEFT JOIN jos_hikashop_product AS c
ON b.product_id=c.product_id
WHERE b.cart_id = 19
AND b.product_id > 0
ORDER BY c.product_parent_id ASC,b.cart_product_modified ASC
24.
SELECT currency_id
FROM jos_hikashop_currency
WHERE currency_published=1 OR currency_id = 1
25.
SELECT *
FROM jos_hikashop_price
WHERE price_currency_id IN (1)
AND price_product_id IN (1317)
ORDER BY price_value DESC
26.
SELECT *
FROM jos_hikashop_currency
WHERE currency_id IN (1)
27.
SELECT *
FROM jos_hikashop_discount
WHERE discount_type='discount'
AND discount_published=1
AND ( discount_quota>discount_used_times OR discount_quota=0 )
AND discount_start < 1302862368
AND ( discount_end > 1302862368 OR discount_end = 0 )
AND ( discount_product_id IN (1317) OR discount_product_id=0 )
AND discount_zone_id IN (0,21)
AND ( discount_flat_amount!=0 OR discount_percent_amount!=0 )

Language Files Loaded

* /var/www/html/language/en-GB/en-GB.ini 1
* /var/www/html/language/en-GB/en-GB.plg_system_debug.ini 1
* /var/www/html/language/en-GB/en-GB.com_hikashop.ini 1
* /var/www/html/language/en-GB/en-GB.com_user.ini 1
* /var/www/html/language/en-GB/en-GB.tpl_decayed.ini
* /var/www/html/language/en-GB/en-GB.mod_mainmenu.ini 1
* /var/www/html/language/en-GB/en-GB.mod_hikashop_cart.ini

Untranslated Strings Diagnostic

None

Untranslated Strings Designer

None








What is going wrong?

Thx,
Sandy

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14314

Hi,

Could you give a link to your website so that we can have a look at the problem ?

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14318

Link is: www.inksane.be

you can chose a product form the menu 'webshop > piercing webshop'

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14350

Please edit the file administrator/components/com_hikashop/classes/user.php and change the line:
if(empty($addressData)){

to:
if(!empty($addressData)){

That will save the user address when the user register and should solve the problem.

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14360

That line is not present in user.php (ignoring cases and whitespaces)..

What linenumber do you mean?

The only similar thing is :
if(!empty($addressData->address_vat)){
$vat = hikashop::get('helper.vat');


this is where i found user.php
/var/www/html/administrator/components/com_hikashop/classes

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14367

It should be on line 443:
if(empty($addressData)){
Unless you don't have the version 1.4.9 version of that file...

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14376

This is line 442-444:

$addressClass = hikashop::get('class.address');
$this->address_id = $addressClass->save($addressData);
if($simplified!=2){

Apparently I have an other version?

Any idea on what to do now?

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14378

Please download again the install package on our website and install it over your current version. That should fix the problem automatically.

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14379

I just installed the latest version I found on your site, that is 1.4.8.

It doesn't solve the problem.

When I search for that line in user.php I can't find it either, and line 443 is just a closing bracket..

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14381

And when I use the standard checkout workflow (login_address_shipping_payment_confirm_coupon_cart_status_fields,end), then I have the same problem.
A register button under the adress fields, which does nothing.

And there is also no other button available to go to the 'end' step.


But I always see this message: Notice: Trying to get property of non-object in /var/www/html/administrator/components/com_hikashop/classes/currency.php on line 1491
Maybe this has something to do with it?

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14382

If you still can't find the good code on line 443 of that file, it means that joomla wasn't able to overwrite the files of HikaShop and that you still have the old files. You can look in the install package in the file back/classes/user.php and you will have the lien I'm talking about.
So the problem is apparently an access right issue during the install process which prevents joomla from overwriting the files. You could try to rename both administrator/components/com_hikashop and components/com_hikashop folders to something else via FTP before trying to reinstall so that joomla will be able to recreate these folders during the installation process.

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14383

when I download the latest version of hika shop, and i check this file:
back/classes/user.php, then indeed I see this "if(!empty($addressData)){" on line 443

Then I remove my administrator/components/com_hikashop and components/com_hikashop

I reinstall hikashop through the backoffice 'install/uninstall', everythin looks fine.

No I download the user.php from administrator/components/com_hikashop/classes, en I search for that line in the file, then I do find it, but on line 836.

I'm getting confused now.

And the problem is not solved anyway. Still doin' nothing but a refresh after 'register' button is clicked.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14384

Could you post the file with the line 836 ?
As there are less than 500 lines in that file (as you saw in the package), I'm surprised that you find it on line 836...



It's normal that the problem isn't solved if you don't have the good files installed.

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14404

this is the file

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14405

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14406

This should be the file:

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14407

I changed it from php to txt

File Attachment:

File Name: user.txt
File Size:21 KB

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14410

Ok. So you have the correct file. It's just that your operating system (or FTP layer or something like that) is adding an additional return carriage on each line of the files.

So that means that the problem is not about the address not being saved but something else. Could you provide us with an FTP and backend access to your website so that we can trace the problem and fix it ?
You can use our contact form to send us the information in private.

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

  • Posts: 31
  • Thank you received: 0
12 years 11 months ago #14415

ok, thank you, information is send

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 11 months ago #14435

Hi,

We got your information and looked at the problem. The checkout is actually working properly now.
We corrected the notice on the currency.php and we will include that in HikaShop.

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

Time to create page: 0.097 seconds
Powered by Kunena Forum