What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello again. In the bootcamp I'm on "Content & Search - Personalized Catalog Page - Challenge".
Hello again. In the bootcamp I'm on "Content & Search - Personalized Catalog Page - Challenge". I've just finished creating all the code for #2 and when I navigate to http://www.de.b2b-demo-shop.local/de/personalized-product/12 I get:
YVES Exception
Error - Call to a member function search() on null
in /data/shop/development/current/src/Pyz/Client/PersonalizedProduct/PersonalizedProductClient.php (25)
Url:/de/personalized-product/12
Trace:
#0 /data/shop/development/current/src/Pyz/Yves/PersonalizedProduct/Controller/IndexController.php(15): Pyz\Client\PersonalizedProduct\PersonalizedProductClient->getPersonalizedProducts(12) #1 /data/shop/development/current/vendor/symfony/http-kernel/HttpKernel.php(146): Pyz\Yves\PersonalizedProduct\Controller\IndexController->indexAction(12) #2 /data/shop/development/current/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #3 /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(122): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #4 /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php(103): Spryker\Shared\Application\Application->handle(Object(Symfony\Component\HttpFoundation\Request)) #5 /data/shop/development/current/public/Yves/index.php(22): Spryker\Shared\Application\Application->run() #6 {main}
Does anyone know why I might be getting that and what I can do to fix it? Thanks in advance.
Comments
-
First things that would come to my mind:
1. Try to doconsole cache:empty-all
and if it works, please let us know, maybe we need to correct the tutorial
2. Please double-check if you haven’t made any typos in class/folder names. Important is the key-case, too0 -
🤔
0 -
in the example code the
search()
method is not called in the line that is stated in the above exception0 -
can you share screenshots of the code you created, @U01A958FBGQ?
0 -
@UKJSE6T47, @UJN2JRU4F, Thanks for the replies. It was a typo in my code and it is working now. I have run into another issue but will post a new message for it. Thanks again.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random