- Posts: 57
- Thank you received: 5
PHP Notice
12 years 4 months ago #155856
by Hristov
PHP Notice was created by Hristov
-- url of the page with the problem -- : localhost
-- HikaShop version -- :2.3.1
-- Joomla version --
.3.0
-- PHP version -- : 5.3
-- Browser(s) name and version -- : XXXXX x.x.x
Hello hika team,
I am currently messing around with hikashop 2.3.1, in the sense of just trying out some options. No code modifications, no custom plugin shenanigans etc.
Environment is clean joomla 3.3 install with only hikashop business 2.3.1 installed and the t3 template framework.
In the hika configuration, "Login & registration" is set to:
Login: no
Display: all in one
registration: guest
confirm mail field: yes
ask address on registration:no
Case = oder product ->checkout-> enter existing email -> confirm existing email-> click next
The system correctly outputs "error:email address already used", however I always have error reporting on and the following notice follows:
( ! ) Notice: Trying to get property of non-object in
\wamp\www\J3.3\administrator\components\com_hikashop\classes\cart.php on line 279
Call Stack
# Time Memory Function Location
1 0.0003 691232 {main}( ) ..\index.php:0
2 0.0375 5331744 JApplicationCms->execute( ) ..\index.php:40
3 0.0375 5331744 JApplicationSite->doExecute( ) ..\cms.php:255
4 0.1350 18509040 JApplicationSite->dispatch( ) ..\site.php:224
5 0.1374 18587600 JComponentHelper::renderComponent( ) ..\site.php:178
6 0.1409 18600624 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.1412 18694520 require_once( '
\wamp\www\J3.3\components\com_hikashop\hikashop.php' ) ..\helper.php:352
8 0.1444 18905864 hikashopController->execute( ) ..\hikashop.php:77
9 0.1444 18905864 JControllerLegacy->execute( ) ..\helper.php:1384
10 0.1444 18905944 checkoutController->step( ) ..\legacy.php:722
11 0.4707 29136760 checkoutController->after_cart( ) ..\checkout.php:337
12 0.4708 29138792 hikashopCartClass->update( ) ..\checkout.php:481
Kind regards,
Drago.
-- HikaShop version -- :2.3.1
-- Joomla version --
.3.0-- PHP version -- : 5.3
-- Browser(s) name and version -- : XXXXX x.x.x
Hello hika team,
I am currently messing around with hikashop 2.3.1, in the sense of just trying out some options. No code modifications, no custom plugin shenanigans etc.
Environment is clean joomla 3.3 install with only hikashop business 2.3.1 installed and the t3 template framework.
In the hika configuration, "Login & registration" is set to:
Login: no
Display: all in one
registration: guest
confirm mail field: yes
ask address on registration:no
Case = oder product ->checkout-> enter existing email -> confirm existing email-> click next
The system correctly outputs "error:email address already used", however I always have error reporting on and the following notice follows:
( ! ) Notice: Trying to get property of non-object in
\wamp\www\J3.3\administrator\components\com_hikashop\classes\cart.php on line 279Call Stack
# Time Memory Function Location
1 0.0003 691232 {main}( ) ..\index.php:0
2 0.0375 5331744 JApplicationCms->execute( ) ..\index.php:40
3 0.0375 5331744 JApplicationSite->doExecute( ) ..\cms.php:255
4 0.1350 18509040 JApplicationSite->dispatch( ) ..\site.php:224
5 0.1374 18587600 JComponentHelper::renderComponent( ) ..\site.php:178
6 0.1409 18600624 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.1412 18694520 require_once( '
\wamp\www\J3.3\components\com_hikashop\hikashop.php' ) ..\helper.php:3528 0.1444 18905864 hikashopController->execute( ) ..\hikashop.php:77
9 0.1444 18905864 JControllerLegacy->execute( ) ..\helper.php:1384
10 0.1444 18905944 checkoutController->step( ) ..\legacy.php:722
11 0.4707 29136760 checkoutController->after_cart( ) ..\checkout.php:337
12 0.4708 29138792 hikashopCartClass->update( ) ..\checkout.php:481
Kind regards,
Drago.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
12 years 4 months ago #155869
by Mohamed Thelji
Replied by Mohamed Thelji on topic PHP Notice
Hello Drago,
Can you download the last Hikashop version through our website, install it and test it again ?
Thanks.
Can you download the last Hikashop version through our website, install it and test it again ?
Thanks.
Please Log in or Create an account to join the conversation.
12 years 4 months ago - 12 years 4 months ago #156022
by Hristov
Replied by Hristov on topic PHP Notice
EDIT - The error is only present if the checkout process is set like this:
Step1
Login
Address
Cart
Payment
Fields
Staus
If cart is moved to step 2 then no errors.
Hi Mohamed,
Here is what it reports now,
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Trying to get property of non-object in
\wamp\www\J3.3\administrator\components\com_hikashop\classes\cart.php on line 279
Call Stack
# Time Memory Function Location
1 0.0003 691336 {main}( ) ..\index.php:0
2 0.0452 5527832 JApplicationCms->execute( ) ..\index.php:40
3 0.0452 5527832 JApplicationSite->doExecute( ) ..\cms.php:255
4 0.1380 18703016 JApplicationSite->dispatch( ) ..\site.php:224
5 0.1405 18781576 JComponentHelper::renderComponent( ) ..\site.php:178
6 0.1436 18794552 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.1439 18888536 require_once( '
\wamp\www\J3.3\components\com_hikashop\hikashop.php' ) ..\helper.php:352
8 0.1469 19099912 hikashopController->execute( ) ..\hikashop.php:77
9 0.1470 19099912 JControllerLegacy->execute( ) ..\helper.php:1384
10 0.1470 19099992 checkoutController->step( ) ..\legacy.php:722
11 0.2583 29330024 checkoutController->after_cart( ) ..\checkout.php:337
12 0.2584 29332056 hikashopCartClass->update( ) ..\checkout.php:481
Step1
Login
Address
Cart
Payment
Fields
Staus
If cart is moved to step 2 then no errors.
Hi Mohamed,
Here is what it reports now,
( ! ) SCREAM: Error suppression ignored for
( ! ) Notice: Trying to get property of non-object in
\wamp\www\J3.3\administrator\components\com_hikashop\classes\cart.php on line 279Call Stack
# Time Memory Function Location
1 0.0003 691336 {main}( ) ..\index.php:0
2 0.0452 5527832 JApplicationCms->execute( ) ..\index.php:40
3 0.0452 5527832 JApplicationSite->doExecute( ) ..\cms.php:255
4 0.1380 18703016 JApplicationSite->dispatch( ) ..\site.php:224
5 0.1405 18781576 JComponentHelper::renderComponent( ) ..\site.php:178
6 0.1436 18794552 JComponentHelper::executeComponent( ) ..\helper.php:332
7 0.1439 18888536 require_once( '
\wamp\www\J3.3\components\com_hikashop\hikashop.php' ) ..\helper.php:3528 0.1469 19099912 hikashopController->execute( ) ..\hikashop.php:77
9 0.1470 19099912 JControllerLegacy->execute( ) ..\helper.php:1384
10 0.1470 19099992 checkoutController->step( ) ..\legacy.php:722
11 0.2583 29330024 checkoutController->after_cart( ) ..\checkout.php:337
12 0.2584 29332056 hikashopCartClass->update( ) ..\checkout.php:481
Last edit: 12 years 4 months ago by Hristov.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #156023
by Xavier
Replied by Xavier on topic PHP Notice
Hi,
Could you give us the corresponding code line in that file ?
It seems that I don't have the same version than you.
Could you give us the corresponding code line in that file ?
It seems that I don't have the same version than you.
Please Log in or Create an account to join the conversation.
12 years 4 months ago #156117
by Hristov
Replied by Hristov on topic PHP Notice
Hi,
Here it is
Here it is
Code:
if(!$app->isAdmin() && !empty($cartInfo->cart_id) && $currUser->user_cms_id != $cartInfo->user_id && $session->getId() != $cartInfo->session_id)
return false;
Please Log in or Create an account to join the conversation.
12 years 4 months ago #156146
by nicolas
Replied by nicolas on topic PHP Notice
Change that code to:
and that should avoid the error message.
Code:
if(!$app->isAdmin() && !empty($cartInfo->cart_id) && @$currUser->user_cms_id != @$cartInfo->user_id && $session->getId() != @$cartInfo->session_id)
return false;
Please Log in or Create an account to join the conversation.
Time to create page: 0.239 seconds