fusio icon indicating copy to clipboard operation
fusio copied to clipboard

Different in interface webhoook.php and webhookinterface.php

Open Hicks59 opened this issue 3 years ago • 4 comments

Hi all,

I don't kown if this issue si same see by other guy (i have used a search tools xD), after and installation on wamp environnement, i have a stack trace on http://localhost/fusio/public/ (see in log_error.log attached).

The fix is simple, in vendor\fusio\impl\src\Service\Payment\Webhook.php, i have added this var on method paid.

line 88 before: public function paid(string $customerId, int $amountPaid, string $invoiceId): void afeter: public function paid(string $customerId, int $amountPaid, string $invoiceId, \DateTimeImmutable $periodStart, \DateTimeImmutable $periodEnd): void

Good Day all (or night) !

Env: windows 10 apache: 2.4.51 php: 8.1.0 mysql: 8.0.27

log_error.log

Hicks59 avatar Oct 01 '22 21:10 Hicks59

Hi @Hicks59, so this is an API change which will be implemented in the next 3.3.0 version. Could you check which versions of the fusio/impl and fusio/engine are installed? Both packages should be at the latest version: fusio/impl = v6.3.1 fusio/engine = v5.3 You can simply use the composer info command to get the latest version. If both packages are up-to-date then you should not get this problem.

chriskapp avatar Oct 02 '22 08:10 chriskapp

Hi @chriskapp

i m up to date

brick/math 0.10.2 Arbitrary-precision arithmetic library composer/package-versions-deprecated 1.11.99.5 Composer plugin that provides efficient querying for installed package versions (no runtime IO) doctrine/cache 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, mem...
doctrine/dbal 2.13.9 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations v1.0.0 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations o...
doctrine/event-manager 1.1.2 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/lexer 1.2.3 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers. doctrine/migrations 2.3.5 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (DBAL) for v...
dragonmantank/cron-expression v3.3.2 CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due egulias/email-validator 3.2.1 A library for validating emails against several RFCs firebase/php-jwt v5.5.1 A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec. friendsofphp/proxy-manager-lts v1.0.12 Adding support for a wider range of PHP versions to ocramius/proxy-manager fusio/adapter-cli v5.0.0 Provides a connection to execute cli command fusio/adapter-fcgi v5.0.0 Adapter to call a FastCGI endpoint fusio/adapter-file v5.1.0 Adapter to serve static files fusio/adapter-graphql v5.0.2 Provides a connection to send GraphQL queries fusio/adapter-http v5.0.5 Provides a connection to send and retrieve HTTP messages fusio/adapter-php v5.0.1 Write the endpoint logic in simple PHP files fusio/adapter-smtp v5.0.1 Provides a connection to send mails fusio/adapter-soap v5.0.0 Provides a connection to call SOAP endpoints fusio/adapter-sql v5.1.8 Provides actions and connections to work with relational databases fusio/adapter-util v5.1.0 Provides several utility actions fusio/cli v1.0.0 Fusio CLI fusio/engine v5.3.0 Abstract definition of the Fusio system fusio/impl v6.3.0 Fusio implementation fusio/model v1.4.0 Fusio generated models guzzlehttp/guzzle 7.5.0 Guzzle is a PHP HTTP client library guzzlehttp/promises 1.5.2 Guzzle promises library guzzlehttp/psr7 2.4.1 PSR-7 message implementation that also provides common utility methods hollodotme/fast-cgi-client v3.1.7 A PHP fast CGI client to send requests (a)synchronously to PHP-FPM. laminas/laminas-code 4.7.0 Extensions to the PHP Reflection API, static code scanning, and code generation league/flysystem 2.5.0 File storage abstraction for PHP league/mime-type-detection 1.11.0 Mime-type detection for Flysystem monolog/monolog 2.8.0 Sends your logs to files, sockets, inboxes, databases and various web services nikic/php-parser v4.15.1 A PHP parser written in PHP packaged/thrift 0.15.0 Apache Thrift phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure phpdocumentor/type-resolver 1.6.1 A PSR-5 based resolver of Class names, Types and Structural Element Names psr/cache 3.0.0 Common interface for caching libraries psr/container 2.0.2 Common Container Interface (PHP FIG PSR-11) psr/event-dispatcher 1.0.0 Standard interfaces for event handling. psr/http-client 1.0.1 Common interface for HTTP clients psr/http-factory 1.0.1 Common interfaces for PSR-7 HTTP message factories psr/http-message 1.0.1 Common interface for HTTP messages psr/log 2.0.0 Common interface for logging libraries psr/simple-cache 3.0.0 Common interfaces for simple caching psx/api v4.3.3 Parse and generate API specification formats psx/cloudevents v1.0.1 Produce and consume cloud events psx/data v4.0.5 Data processing library to read and write POPOs in different formats psx/datetime v2.0.2 Date and time implementations which only accept RFC3339 formats psx/dependency v2.0.2 Simple and fast DI container psx/engine v1.0.0 Engine to support multiple web server types psx/framework v6.1.0 Engine of the PSX framework psx/http v3.0.4 Mutable HTTP model and HTTP client implementation psx/json v2.0.1 Read and transform JSON documents through JSON-Patch/Pointer psx/model v4.0.1 Model classes based on open data specifications psx/oauth2 v3.0.2 Oauth2 consumer psx/openssl v2.0.1 OpenSsl wrapper library psx/record v2.0.3 Data HashMap implementation psx/sandbox v0.3.1 PHP sandbox to execute a safe subset of the PHP programming language psx/schema v4.2.5 Parse and generate data schema formats psx/sql v3.1.5 Build complex data structures from relational databases psx/uri v2.0.1 URI, URL and URN value objects psx/validate v2.0.0 Validate data through a filter system ralouphie/getallheaders 3.0.3 A polyfill for getallheaders. ramsey/collection 1.2.2 A PHP library for representing and manipulating collections. ramsey/uuid 4.5.1 A PHP library for generating and working with universally unique identifiers (UUIDs). symfony/cache v6.1.5 Provides extended PSR-6, PSR-16 (and tags) implementations symfony/cache-contracts v3.1.1 Generic abstractions related to caching symfony/console v5.4.13 Eases the creation of beautiful and testable command line interfaces symfony/deprecation-contracts v3.1.1 A generic function and convention to trigger deprecation notices symfony/dotenv v6.1.0 Registers environment variables from a .env file symfony/event-dispatcher v6.1.0 Provides tools that allow your application components to communicate with each other by dispatching events and liste... symfony/event-dispatcher-contracts v3.1.1 Generic abstractions related to dispatching event symfony/filesystem v6.1.5 Provides basic utilities for the filesystem symfony/mailer v6.1.5 Helps sending emails symfony/mime v6.1.5 Allows manipulating MIME messages symfony/polyfill-ctype v1.26.0 Symfony polyfill for ctype functions symfony/polyfill-intl-grapheme v1.26.0 Symfony polyfill for intl's grapheme_* functions symfony/polyfill-intl-idn v1.26.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions symfony/polyfill-intl-normalizer v1.26.0 Symfony polyfill for intl's Normalizer class and related functions symfony/polyfill-mbstring v1.26.0 Symfony polyfill for the Mbstring extension symfony/polyfill-php72 v1.26.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions symfony/polyfill-php73 v1.26.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions symfony/polyfill-php80 v1.26.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions symfony/polyfill-php81 v1.26.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions symfony/process v6.1.3 Executes commands in sub-processes symfony/property-access v6.1.3 Provides functions to read and write from/to an object or array using a simple string notation symfony/property-info v6.1.3 Extracts information about PHP class' properties using metadata of popular sources symfony/service-contracts v3.1.1 Generic abstractions related to writing services symfony/stopwatch v5.4.13 Provides a way to profile code symfony/string v6.1.5 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unifie...
symfony/var-exporter v6.1.3 Allows exporting any serializable PHP data structure to plain PHP code symfony/yaml v5.4.12 Loads and dumps YAML files twig/twig v3.4.3 Twig, the flexible, fast, and secure template language for PHP webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.

Hicks59 avatar Oct 02 '22 09:10 Hicks59

ok, so you are using fusio/impl v6.3.0 could you install the latest version v6.3.1 this should then also include the fitting code s. https://github.com/apioo/fusio-impl/commit/99ae589ed6ace9f15fee6822ddf175ec67471801

chriskapp avatar Oct 02 '22 15:10 chriskapp

ok good i up this.

Hicks59 avatar Oct 02 '22 17:10 Hicks59