type error when installing custom aimeos 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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
type error when installing custom aimeos laravel package
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!
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
- Screenshot 2023-08-18 104510.png (80.04 KiB) Viewed 16092 times
Last edited by agrover23 on 18 Aug 2023, 09:56, edited 1 time in total.
Re: type error when installing custom aimeos laravel package
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?
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, give us a star
If you like Aimeos, give us a star
Re: type error when installing custom aimeos laravel package
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, give us a star
If you like Aimeos, give us a star
Re: type error when installing custom aimeos laravel package
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!
Thanks for your help!