PrestaShop / PrestaShop/ps_googleanalytics
Fatal error
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 41
- Forks
- 66
- Avg merge
- 9h 41m
- Merged PRs (30d)
- 2
Description
Prerequisites
- I understand and accept the project's code of conduct.
- I have already searched in existing issues and found no previous report of this bug.
Describe the bug and add attachments
Error appears in product page
Fatal error: Uncaught Error: Cannot use object of type Product as array in /home/zoshop/domains/zzzzzzzz.lt/public_html/modules/ps_googleanalytics/classes/Wrapper/ProductWrapper.php:136 Stack trace: #0 /home/zoshop/domains/zzzzzzzz.lt/public_html/modules/ps_googleanalytics/classes/Hook/HookDisplayFooterProduct.php(62): PrestaShop\Module\Ps_Googleanalytics\Wrapper\ProductWrapper->prepareItemFromProduct() #1 /home/zoshop/domains/zzzzzzzz.ltt/public_html/modules/ps_googleanalytics/ps_googleanalytics.php(120): PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayFooterProduct->run() #2 /home/zoshop/domains/zzzzzzzz.lt/public_html/classes/Hook.php(1083): Ps_Googleanalytics->hookDisplayFooterProduct() #3 /home/zoshop/domains/zzzzzzzz.lt/public_html/classes/Hook.php(421): HookCore::coreCallHook() #4 /home/zoshop/domains/zzzzzzzz.lt/public_html/classes/Hook.php(989): HookCore::callHookOn() #5 /home/zoshop/domains/zzzzzzzz.lt/public_html/config/smarty.config.inc.php(201): HookCore::exec() #6 /home/zoshop/domains/zzzzzzzz.lt/public in /home/zoshop/domains/zzzzzzzz.lt/public_html/modules/ps_googleanalytics/classes/Wrapper/ProductWrapper.php on line 136
Steps to reproduce
After update to 5.0.3
Expected behavior
No response
Actual Result
No response
PrestaShop version where the bug happens
8.2.4
Module version where the bug happens
5.0.3
PHP version(s) where the bug happened
No response
Your company or customer's name goes here (if applicable).
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at modules/ps_googleanalytics/classes/Wrapper/ProductWrapper.php:136 and trace the product data passed from HookDisplayFooterProduct.php:62 and ps_googleanalytics.php:120. Reproduce the product-page failure after updating to module 5.0.3, then verify that the fatal error no longer occurs for PrestaShop 8.2.4.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- analytics, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100