Admin side error

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
WarisAli
Posts: 10
Joined: 08 Sep 2022, 05:54

Admin side error

Post by WarisAli » 18 Nov 2022, 06:10

php version : 8.0.18,
Windows : 10,
composer version : 2.2.9,
Laravel Aimeos version : ~2022.10
Elasticsearch 2022.10.x-dev,
ai-site 2022.10.x-dev
I'm getting the below error when I click on product edit button in admin side. Please help me out!
Class Aimeos\MShop\Product\Manager\Site\Elastic contains 2 abstract methods and must therefore be declared abstract or implement the remaining methods (Aimeos\MShop\Common\Manager\Iface::cursor, Aimeos\MShop\Common\Manager\Iface::iterate)

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Admin side error

Post by aimeos » 18 Nov 2022, 07:16

Your versions doesn't seem to fit together. Please run "composer up" to get the lastest version.
If that doesn't help, post the output of "composer show".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
WarisAli
Posts: 10
Joined: 08 Sep 2022, 05:54

Re: Admin side error

Post by WarisAli » 18 Nov 2022, 09:31

aimeos/ai-admin-graphql 2022.10.3 Aimeos Admin GraphQL API extension
aimeos/ai-admin-jqadm 2022.10.3 Aimeos VueJS+Bootstrap admin backend
aimeos/ai-admin-jsonadm 2022.10.1 Aimeos JSON admin API for backend
aimeos/ai-cache 2022.10.1 Cache extension for Aimeos e-commerce solutions
aimeos/ai-client-html 2022.10.3 Aimeos standard HTML frontend
aimeos/ai-client-jsonapi 2022.10.2 Aimeos frontend JSON REST API
aimeos/ai-cms-grapesjs 2022.10.4 Aimeos GrapesJS CMS extension
aimeos/ai-controller-frontend 2022.10.4 Aimeos business controller logic for frontend
aimeos/ai-controller-jobs 2022.10.4 Aimeos job controllers for long running tasks
aimeos/ai-filesystem 2022.10.1 Aimeos file system layer extension
aimeos/ai-laravel 2022.10.3 Laravel adapter for Aimeos e-commerce integration
aimeos/ai-payments 2022.10.3 Payment extension for Aimeos e-commerce solutions
aimeos/aimeos-base 2022.10.2 Aimeos base layer for abstracting from host environments
aimeos/aimeos-core 2022.10.5 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel 2022.10.3 Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects
aimeos/macro 1.0.0 Dynamically extend objects by custom methods
aimeos/map 3.2.0 Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections
aimeos/upscheme 0.8.4 Database schema upgrades made easy
aimeoscom/ai-elastic 2022.10.x-dev c4dc125 Aimeos ElasticSearch integration for #gigacommerce
aimeoscom/ai-mangopay 2022.10.1 Aimeos Mangopay payment integration for shops and marketplaces
aimeoscom/ai-sites 2022.10.x-dev 715da4f Aimeos hierarchical sites extension for market places and complex setups
aimeoscom/ai-stripe-marketplace 2022.10.2 Aimeos ai-stripe-marketplace extension
aimeoscom/ai-theme-berlin 2022.10.1 Aimeos ai-theme-berlin extension
aimeoscom/ai-vatcheck 2022.10.2 Aimeos extension for checking VAT-IDs
aws/aws-crt-php v1.0.2 AWS Common Runtime for PHP
aws/aws-sdk-php 3.245.1 AWS SDK for PHP - Use Amazon Web Services in your PHP project
brick/math 0.10.2 Arbitrary-precision arithmetic library
clue/stream-filter v1.6.0 A simple and modern approach to stream filtering in PHP
dflydev/dot-access-data v3.0.2 Given a deep data structure, access data by dot notation.
doctrine/cache 2.2.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, ap...
doctrine/dbal 3.5.1 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 or selecti...
doctrine/event-manager 1.2.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector 2.0.6 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/p...
doctrine/instantiator 1.4.1 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.3 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
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
elasticsearch/elasticsearch v7.17.1 PHP Client for Elasticsearch
enshrined/svg-sanitize 0.15.4 An SVG sanitizer for PHP
ezimuel/guzzlestreams 3.1.0 Fork of guzzle/streams (abandoned) to be used with elasticsearch-php
ezimuel/ringphp 1.2.1 Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-php
ezyang/htmlpurifier v4.16.0 Standards compliant HTML filter written in PHP
fakerphp/faker v1.20.0 Faker is a PHP library that generates fake data for you.
filp/whoops 2.14.6 php error handling for cool kids
fruitcake/php-cors v1.2.0 Cross-origin resource sharing library for the Symfony HttpFoundation
graham-campbell/result-type v1.1.0 An Implementation Of The Result Type
guzzlehttp/guzzle 7.5.0 Guzzle is a PHP HTTP client library
guzzlehttp/promises 1.5.2 Guzzle promises library
guzzlehttp/psr7 2.4.3 PSR-7 message implementation that also provides common utility methods
hamcrest/hamcrest-php v2.0.1 This is the PHP port of Hamcrest Matchers
intervention/image 2.7.2 Image handling and manipulation library with support for Laravel integration
laminas/laminas-diactoros 2.21.0 PSR HTTP Message implementations
laravel/breeze v1.15.1 Minimal Laravel authentication scaffolding with Blade and Tailwind.
laravel/framework v9.40.1 The Laravel Framework.
laravel/sail v1.16.2 Docker files for running a basic Laravel application.
laravel/sanctum v2.15.1 Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure v1.2.2 Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/tinker v2.7.3 Powerful REPL for the Laravel framework.
lcobucci/clock 2.2.0 Yet another clock abstraction
lcobucci/jwt 4.2.1 A simple library to work with JSON Web Token and JSON Web Signature
league/commonmark 2.3.7 Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)
league/config v1.1.1 Define configuration arrays with strict schemas and access values with dot notation
league/flysystem 3.10.3 File storage abstraction for PHP
league/flysystem-aws-s3-v3 3.10.3 AWS S3 filesystem adapter for Flysystem.
league/mime-type-detection 1.11.0 Mime-type detection for Flysystem
maatwebsite/excel 3.1.44 Supercharged Excel exports and imports in Laravel
maennchen/zipstream-php 2.2.1 ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.
markbaker/complex 3.0.1 PHP Class for working with complex numbers
markbaker/matrix 3.0.0 PHP Class for working with matrices
mockery/mockery 1.5.1 Mockery is a simple yet flexible PHP mock object framework
moneyphp/money v4.0.5 PHP implementation of Fowler's Money pattern
monolog/monolog 2.8.0 Sends your logs to files, sockets, inboxes, databases and various web services
mtdowling/jmespath.php 2.6.1 Declaratively specify how to extract elements from a JSON document
myclabs/deep-copy 1.11.0 Create deep copies (clones) of your objects
myclabs/php-enum 1.8.4 PHP Enum implementation
namshi/jose 7.2.3 JSON Object Signing and Encryption library for PHP.
nesbot/carbon 2.63.0 An API extension for DateTime that supports 281 different languages.
nette/schema v1.2.3 📐 Nette Schema: validating data structures against a given Schema.
nette/utils v3.2.8 🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON e ncoding/decoding, valida...
nikic/php-parser v4.15.2 A PHP parser written in PHP
nunomaduro/collision v6.3.1 Cli error handling for console/command-line PHP applications.
nunomaduro/termwind v1.14.2 Its like Tailwind CSS, but for the console.
nyholm/psr7 1.5.1 A fast PHP7 implementation of PSR-7
omnipay/common v3.2.0 Common components for Omnipay payment processing library
phar-io/manifest 2.0.3 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 3.2.1 Library for handling version information and constraints
php-http/curl-client 2.2.1 PSR-18 and HTTPlug Async client with cURL
php-http/discovery 1.14.3 Finds installed HTTPlug implementations and PSR-7 message factories
php-http/httplug 2.3.0 HTTPlug, the HTTP client abstraction for PHP
php-http/message 1.13.0 HTTP Message related tools
php-http/message-factory v1.0.2 Factory interfaces for PSR-7 HTTP Message
php-http/promise 1.1.0 Promise used for asynchronous HTTP requests
phpoffice/phpspreadsheet 1.25.2 PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
phpoption/phpoption 1.9.0 Option Type for PHP
phpunit/php-code-coverage 9.2.19 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 3.0.6 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker 3.1.1 Invoke callables with a timeout
phpunit/php-text-template 2.0.4 Simple template engine.
phpunit/php-timer 5.0.3 Utility class for timing
phpunit/phpunit 9.5.26 The PHP Unit Testing framework.
predis/predis v1.1.10 Flexible and feature-complete Redis client for PHP and HHVM
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 3.0.0 Common interface for logging libraries
psr/simple-cache 2.0.0 Common interfaces for simple caching
psy/psysh v0.11.9 An interactive shell for modern PHP.
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.6.0 A PHP library for generating and working with universally unique identifiers (UUIDs).
react/promise v2.9.0 A lightweight implementation of CommonJS Promises/A for PHP
sebastian/cli-parser 1.0.1 Library for parsing CLI options
sebastian/code-unit 1.0.8 Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3 Looks up which function or method a line of code belongs to
sebastian/comparator 4.0.8 Provides the functionality to compare PHP values for equality
sebastian/complexity 2.0.2 Library for calculating the complexity of PHP code units
sebastian/diff 4.0.4 Diff implementation
sebastian/environment 5.1.4 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 4.0.5 Provides the functionality to export PHP variables for visualization
sebastian/global-state 5.0.5 Snapshotting of global state
sebastian/lines-of-code 1.0.3 Library for counting the lines of code in PHP source code
sebastian/object-enumerator 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 2.0.4 Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context 4.0.4 Provides functionality to recursively process PHP variables
sebastian/resource-operations 3.0.3 Provides a list of PHP built-in functions that operate on resources
sebastian/type 3.2.0 Collection of value objects that represent the types of the PHP type system
sebastian/version 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects
spatie/backtrace 1.2.1 A better backtrace
spatie/flare-client-php 1.3.1 Send PHP errors to Flare
spatie/ignition 1.4.1 A beautiful error page for PHP applications.
spatie/laravel-ignition 1.6.1 A beautiful error page for Laravel applications.
stella-maris/clock 0.1.6 A pre-release of the proposed PSR-20 Clock-Interface
stripe/stripe-php v7.128.0 Stripe PHP Library
symfony/console v6.0.15 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v6.0.11 Converts CSS selectors to XPath expressions
symfony/deprecation-contracts v3.0.2 A generic function and convention to trigger deprecation notices
symfony/error-handler v6.0.15 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v6.0.9 Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v3.0.2 Generic abstractions related to dispatching event
symfony/finder v6.0.11 Finds files and directories via an intuitive fluent interface
symfony/http-foundation v6.0.15 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v6.0.15 Provides a structured process for converting a Request into a Response
symfony/mailer v6.0.15 Helps sending emails
symfony/mime v6.0.14 Allows manipulating MIME messages
symfony/options-resolver v6.0.3 Provides an improved replacement for the array_replace PHP function
symfony/polyfill-ctype v1.27.0 Symfony polyfill for ctype functions
symfony/polyfill-intl-grapheme v1.27.0 Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn v1.27.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.27.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.27.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.20.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php72 v1.27.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php80 v1.27.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.27.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/polyfill-uuid v1.27.0 Symfony polyfill for uuid functions
symfony/process v6.0.11 Executes commands in sub-processes
symfony/psr-http-message-bridge v2.1.3 PSR HTTP message bridge
symfony/routing v6.0.15 Maps an HTTP request to a set of configuration variables
symfony/service-contracts v3.0.2 Generic abstractions related to writing services
symfony/string v6.0.15 Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation v6.0.14 Provides tools to internationalize your application
symfony/translation-contracts v3.0.2 Generic abstractions related to translation
symfony/uid v6.0.13 Provides an object-oriented API to generate and represent UIDs
symfony/var-dumper v6.0.14 Provides mechanisms for walking through any arbitrary PHP variable
tecnickcom/tcpdf 6.5.0 TCPDF is a PHP class for generating PDF documents and barcodes.
theseer/tokenizer 1.2.1 A small library for converting tokenized PHP source code into XML and potentially other formats
tijsverkoyen/css-to-inline-styles 2.2.5 CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is v...
tymon/jwt-auth dev-develop 014be8d JSON Web Token Authentication for Laravel and Lumen
vlucas/phpdotenv v5.5.0 Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
voku/portable-ascii 2.0.1 Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert 1.11.0 Assertions to validate method input/output with nice error messages.
webonyx/graphql-php v15.0.0-beta.1 A PHP port of GraphQL reference implementation

nos3
Posts: 89
Joined: 01 Sep 2015, 13:26

Re: Admin side error

Post by nos3 » 18 Nov 2022, 10:00

There was a method missing in the ai-sites extension for the ElasticSearch product manager.
This is fixed now, can you please run "composer up" and see if it works now?

User avatar
WarisAli
Posts: 10
Joined: 08 Sep 2022, 05:54

Re: php artisan aimeos:setup

Post by WarisAli » 18 Nov 2022, 10:21

When I run this command php artisan aimeos:setup.
Then it show me the error. Error mention below.
Elasticsearch\Common\Exceptions\ServerErrorResponseException

{"error":{"root_cause":[{"type":"mapper_exception","reason":"the [enabled] parameter can't be updated for the object mapping [catalog]"}],"type":"mapper_exception","reason":"the [enabled] parameter can't be updated for the object mapping [catalog]"},"status":500}

722▕ $exception = new NoDocumentsToGetException($exception->getMessage(), $statusCode, $exception);
723▕ } elseif ($statusCode === 500 && strpos($responseBody, 'NoShardAvailableActionException') !== false) {
724▕ $exception = new NoShardAvailableException($exception->getMessage(), $statusCode, $exception);
725▕ } else {
➜ 726▕ $exception = new ServerErrorResponseException(
727▕ $this->convertBodyToString($responseBody, $statusCode, $exception),
728▕ $statusCode
729▕ );
730▕ }

Elasticsearch\Connections\Connection::process5xxError([])

Elasticsearch\Connections\Connection::Elasticsearch\Connections\{closure}()


Is I'm missing something.
In config/shop.php done these code.

'resource' => [
................
'es' => [
'hosts' => [
'127.0.0.1:9200',
],
'index' => 'aimeos',
'selectorClass' => '\Elasticsearch\ConnectionPool\Selectors\StickyRoundRobinSelector',
'settings' => [
'number_of_shards' => 5, // adapt to your needs
'number_of_replicas' => 0, // adapt to your needs
'max_result_window' => 10000, // maximum number of results retrieved
// 'refresh_interval' => -1, // for initial indexing only
],
// 'norefresh' => false, // for initial indexing only
],

'es-stock' => [
'hosts' => [
'127.0.0.1:9200',
],
'index' => 'aimeos_stock',
'selectorClass' => '\Elasticsearch\ConnectionPool\Selectors\StickyRoundRobinSelector',
'settings' => [
'number_of_shards' => 5, // adapt to your needs
'number_of_replicas' => 0, // adapt to your needs
'max_result_window' => 10000, // maximum number of results retrieved
// 'refresh_interval' => -1, // for initial indexing only
],
// 'norefresh' => false, // for initial indexing only
],
................
],
'mshop' => [
................................
'index' => [
'manager' => [
'name' => 'Elastic',
]
],
'product' => [
'manager' => [
'name' => 'Elastic',
]
],
'stock' => [
'manager' => [
'name' => 'Elastic',
]
]
................................
]

nos3
Posts: 89
Joined: 01 Sep 2015, 13:26

Re: Admin side error

Post by nos3 » 19 Nov 2022, 08:06

Yes, ElasticSearch doesn't allow migrating properties like relational databases. Thus, it requires in many cases recreating the index and re-importing the data. This is only not necessary if you add the new properties to the schema before you insert new data.

The easiest way in production environments is to create a second index with the new schema and use the /_reindex endpoint to migrate the data:

https://stackoverflow.com/questions/251 ... -new-index

Afterwards, switch the index names in the Aimeos configuration.

Post Reply