Giter Site home page Giter Site logo

Comments (5)

tobiasfabian avatar tobiasfabian commented on May 29, 2024 2

This issue is fixed in 1.6.0.beta-1

from merx.

raphdurrer avatar raphdurrer commented on May 29, 2024

OK... i just found out it is just for this special PHP Version. After changing to PHP8 it seems to work fine again.

from merx.

hroma avatar hroma commented on May 29, 2024

Hi,

I also get "Failed to load resource: the server responded with a status of 500 (Internal Server Error)" with php 8.0.3.

Fatal error: Wagnerwagner\Merx\ProductList::__set(): Return type must be void when declared in C:\test\site\plugins\merx\src\productList.php on line 82

{"status":"error","exception":"Whoops\Exception\ErrorException","code":64,"message":"Wagnerwagner\Merx\ProductList::__set(): Return type must be void when declared","details":null,"file":"\test\site\plugins\merx\src\productList.php","line":82}

from merx.

hroma avatar hroma commented on May 29, 2024

Also tested with PHP Version 7.3.10. With this version I get:

Argument 2 passed to Kirby\Cms\App::trigger() must be of the type array, object given, called in Z:\web_dev\base\bs.com\site\plugins\merx\src\cart.php on line 22

from merx.

jaro-io avatar jaro-io commented on May 29, 2024

hey lovely @wagnerwagner team,
thank you so much for your hard work on this beautiful plugin! 🀍 ✨

it's strange but when trying to add products to the cart, i am seeing the same error from above with php 8.0.14 on kirby 3.6.1.1. can you please check that?

thanks!
☺️

Whoops\Exception\ErrorException thrown with message "Wagnerwagner\Merx\ProductList::__set(): Return type must be void when declared"

Stacktrace:
#2 Whoops\Exception\ErrorException in /site/plugins/merx/src/ProductList.php:83
#1 Whoops\Run:handleError in /kirby/vendor/filp/whoops/src/Whoops/Run.php:486
#0 Whoops\Run:handleShutdown in [internal]:0

EDIT: @klauswagner i though commit 65a2c26 was already live, but it looks like it's not? i just manually changed that in my code and now it works like a charm!

from merx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.