- Posts: 153
- Thank you received: 13
SOLVED !!! Unhandled exception -PHP Exception - Error hikashop analytics
7 years 8 months ago - 7 years 6 months ago #303396
by naizak
-- HikaShop version -- : 4.0.2 Business
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.1.26
-- Error-message(debug-mod must be tuned on) -- : Unhandled exception - Error
Cannot use object of type stdClass as array
Hi
I’m reporting this error after updating joomla 3.9.1 - 3.9.2 and the last update of hikashop.
I had this error after each new order for last 2 days and for 2 days it didn't communicate with google analytics no data, actually seems working for last order i didn't receive the error yet ,and it seems to re-communicate with analytics
Best regards
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.1.26
-- Error-message(debug-mod must be tuned on) -- : Unhandled exception - Error
Cannot use object of type stdClass as array
Hi
I’m reporting this error after updating joomla 3.9.1 - 3.9.2 and the last update of hikashop.
I had this error after each new order for last 2 days and for 2 days it didn't communicate with google analytics no data, actually seems working for last order i didn't receive the error yet ,and it seems to re-communicate with analytics
Best regards
Code:
A PHP Exception occurred on your site. Here you can find the stack trace:
Exception Type: Error
File: /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashopanalytics/hikashopanalytics.php
Line: 474
Message: Cannot use object of type stdClass as array
#0 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashopanalytics/hikashopanalytics.php(278): plgSystemHikashopanalytics->googleDirectCall(Array, Object(stdClass), Object(stdClass))
#1 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashopanalytics/hikashopanalytics.php(103): plgSystemHikashopanalytics->googleProcess('1998')
#2 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashopanalytics/hikashopanalytics.php(50): plgSystemHikashopanalytics->checkOrder(Object(stdClass), false)
#3 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/joomla/event/event.php(70): plgSystemHikashopanalytics->onAfterOrderUpdate(Object(stdClass), 1)
#4 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#5 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterorderupd...', Array)
#6 /homepages/34/xxxxxxxxxx/htdocs/site/administrator/components/com_hikashop/classes/order.php(463): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterOrderUpd...', Array)
#7 /homepages/34/xxxxxxxxxx/htdocs/site/administrator/components/com_hikashop/helpers/paymentplugin.php(310): hikashopOrderClass->save(Object(stdClass))
#8 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/hikashoppayment/paypal/paypal.php(406): hikashopPaymentPlugin->modifyOrder('1998', 'confirmed', Object(stdClass), Object(stdClass))
#9 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashoppayment/hikashoppayment.php(82): plgHikashoppaymentPaypal->onPaymentNotification(Array)
#10 /homepages/34/xxxxxxxxxx/htdocs/site/plugins/system/hikashoppayment/hikashoppayment.php(40): plgSystemHikashoppayment->processPaymentNotification()
#11 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/joomla/event/event.php(70): plgSystemHikashoppayment->onAfterInitialise()
#12 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#13 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onafterinitiali...', Array)
#14 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/CMSApplication.php(626): Joomla\CMS\Application\BaseApplication->triggerEvent('onAfterInitiali...')
#15 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/SiteApplication.php(686): Joomla\CMS\Application\CMSApplication->initialiseApp(Array)
#16 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/SiteApplication.php(212): Joomla\CMS\Application\SiteApplication->initialiseApp()
#17 /homepages/34/xxxxxxxxxx/htdocs/site/libraries/src/Application/CMSApplication.php(196): Joomla\CMS\Application\SiteApplication->doExecute()
#18 /homepages/34/xxxxxxxxxx/htdocs/site/index.php(49): Joomla\CMS\Application\CMSApplication->execute()
#19 {main}
Request information
GET variables
Array
(
[option] => com_hikashop
[ctrl] => checkout
[task] => notify
[notif_payment] => paypal
[tmpl] => component
[lang] => fr
[Itemid] => 445
)
POST variables
COOKIE variables
Array
(
)
REQUEST variables
SERVER variables
Array
(
[REDIRECT_UNIQUE_ID] => **********************
[REDIRECT_DOCUMENT_ROOT] => /kunden/homepages/34/xxxxxxxxxx/htdocs/site
[REDIRECT_HTTPS] => on
[REDIRECT_HANDLER] => x-mapp-php5.4
[REDIRECT_STATUS] => 200
[UNIQUE_ID] => **********************
[HTTPS] => on
[HTTP_HOST] => """"""""""""""""
[CONTENT_LENGTH] => 1180
[HTTP_ACCEPT] => */*
[CONTENT_TYPE] => application/x-www-form-urlencoded
[HTTP_USER_AGENT] => PayPal IPN ( https://www.paypal.com/ipn )
[HTTP_CORRELATION_ID] => xxxxxxxxxxxx
[PATH] => /bin:/usr/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => """"""""""""""""
[SERVER_ADDR] => xx.xx.xx.xxx
[SERVER_PORT] => 443
[REMOTE_ADDR] => x.x.xx.x
[DOCUMENT_ROOT] => /kunden/homepages/34/xxxxxxxxxx/htdocs/site
[REQUEST_SCHEME] => https
[CONTEXT_PREFIX] => /system-bin/
[CONTEXT_DOCUMENT_ROOT] => /kunden/usr/lib/cgi-bin/
[SERVER_ADMIN] => webmaster@""""""""""""""""
[SCRIPT_FILENAME] => /kunden/homepages/34/xxxxxxxxxx/htdocs/site/index.php
[REMOTE_PORT] => 48436
[REDIRECT_QUERY_STRING] => option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=fr&Itemid=445
[REDIRECT_URL] => /index.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] => option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=fr&Itemid=445
[REQUEST_URI] => /index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=fr&Itemid=445
[SCRIPT_NAME] => /index.php
[STATUS] => 200
[ORIG_PATH_INFO] => /index.php
[ORIG_PATH_TRANSLATED] => /kunden/homepages/34/xxxxxxxxxx/htdocs/site/index.php
[PHP_SELF] => /index.php
[REQUEST_TIME_FLOAT] => 1549186725.1889
[REQUEST_TIME] => 1549186725
[argv] => Array
(
[0] => option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=fr&Itemid=445
)
[argc] => 1
)
Last edit: 7 years 6 months ago by naizak.
Please Log in or Create an account to join the conversation.
7 years 8 months ago #303437
by nicolas
Replied by nicolas on topic Unhandled exception -PHP Exception - Error hikashopanalytics
Hi,
Thank you for your feedback.
I've added a patch so that this error doesn't happen.
Please download again the HikaShop install package on our website and install it on yours and you'll get the patch for that issue.
Thank you for your feedback.
I've added a patch so that this error doesn't happen.
Please download again the HikaShop install package on our website and install it on yours and you'll get the patch for that issue.
The following user(s) said Thank You: naizak
Please Log in or Create an account to join the conversation.
7 years 7 months ago #304427
by naizak
Replied by naizak on topic Unhandled exception -PHP Exception - Error hikashopanalytics
Hi,
I’m having a problem since the last update hikashop , with google analytics.
Analytics dash board refers client transaction source canal: “not set or other”
I tried with google team assistant to solve the problem, they checked the site “ads word + analytics”, they reported that finally : that analytics is implemented 2 time on our site , so that corrupt the data on analytics / canal clients dash with this result on transaction column “not set or other”
Best regards
I’m having a problem since the last update hikashop , with google analytics.
Analytics dash board refers client transaction source canal: “not set or other”
I tried with google team assistant to solve the problem, they checked the site “ads word + analytics”, they reported that finally : that analytics is implemented 2 time on our site , so that corrupt the data on analytics / canal clients dash with this result on transaction column “not set or other”
Best regards
Please Log in or Create an account to join the conversation.
7 years 7 months ago #304428
by nicolas
Replied by nicolas on topic Unhandled exception -PHP Exception - Error hikashopanalytics
Hi,
The Google Analytics plugin can submit the transaction data (orders information) either through Javascript or cURL or both based on how you configured the plugin settings.
If you activate the "Always use direct call (UA)" setting in the plugin, then only the cURL method will be used to transmit the transaction data.
Also, the "Single submission" setting can be activated to dynamically avoid the sending of the cURL data when the javascript data has already been sent and vice-versa.
Note that this is for the ecommerce area.
For the normal google analytics data, the plugin doesn't send any data.
Normally, it's added to the website via a plugin or a modification to the template, or some extension option.
So hard to say. I'm not even sure if the google team assistant is talking about the transaction data or the normal google analytics data.
The Google Analytics plugin can submit the transaction data (orders information) either through Javascript or cURL or both based on how you configured the plugin settings.
If you activate the "Always use direct call (UA)" setting in the plugin, then only the cURL method will be used to transmit the transaction data.
Also, the "Single submission" setting can be activated to dynamically avoid the sending of the cURL data when the javascript data has already been sent and vice-versa.
Note that this is for the ecommerce area.
For the normal google analytics data, the plugin doesn't send any data.
Normally, it's added to the website via a plugin or a modification to the template, or some extension option.
So hard to say. I'm not even sure if the google team assistant is talking about the transaction data or the normal google analytics data.
Please Log in or Create an account to join the conversation.
7 years 7 months ago #304455
by naizak
Replied by naizak on topic Unhandled exception -PHP Exception - Error hikashopanalytics
Thank you for answer and explanation , i'll check it back ..
Please Log in or Create an account to join the conversation.
7 years 6 months ago #304532
by naizak
Replied by naizak on topic Unhandled exception -PHP Exception - Error hikashopanalytics
Finally it seems working for "not set" in Analytics /Acuqistion/ channels/ , i deactivated in the plug-ing :
- use universeal Analytics & Always use direct call (UA)
Best regards
- use universeal Analytics & Always use direct call (UA)
Best regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.294 seconds