type error when installing custom aimeos laravel package

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!
agrover23
Posts: 3
Joined: 18 Aug 2023, 08:54

type error when installing custom aimeos laravel package

Post by agrover23 » 18 Aug 2023, 09:47

Laravel Framework: 10.19.0
Aimeos:~2023.07",
php: 8.1
OS: Ubuntu 22.04.1 LTS

Hey Aimeos team,

I am trying to install a custom extension for laravel aimeos on my local machine, and it is showing the following error when I try to access the shop url on local host.

Aimeos\Base\Config\Base::includeFile(): Return value must be of type array, int returned

This wasn't happening before I created the extension

These are the steps I followed to install the extension:
1 create the custom zip extension (istore-platform)
2 extract the zip into ./packages/istore-platform
3 change the minimum stability requirement in the composer json to dev
4 composer req aimeos-extensions/istore-platform

I had to do step 3 to get the package to install. These are the recommended steps in the Aimeos documentation. Am I missing something?

Any advice would be much appreciated!
Attachments
response
response
Screenshot 2023-08-18 104510.png (80.04 KiB) Viewed 15983 times
Last edited by agrover23 on 18 Aug 2023, 09:56, edited 1 time in total.

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

Re: type error when installing custom aimeos laravel package

Post by aimeos » 18 Aug 2023, 09:56

The steps are OK and that works (usually).
Can you share the stack trace using the SHARE button at the top of the error page?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star


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

Re: type error when installing custom aimeos laravel package

Post by aimeos » 18 Aug 2023, 10:10

Check the ./config/ directory of your extension. There seems to be at least one .php file which doesn't contain:

Code: Select all

<?php
return [
    // ...
];
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

agrover23
Posts: 3
Joined: 18 Aug 2023, 08:54

Re: type error when installing custom aimeos laravel package

Post by agrover23 » 18 Aug 2023, 10:18

I solved the issue. The config files were all in the correct format. But when I unzipped the istore-platform directory it included zoneIdentifier files which were causing the problem. The page worked again when I deleted these files.

Thanks for your help!

Post Reply