-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when install on Laravel 6 #41
Comments
Can you check that you have the This should be created after running |
When installing, the error is above, and the installation is not successful. So I can't publish the config file |
I tried creating the config file before installing, and it seems to have installed it, but with the following error UnexpectedValueException : DirectoryIterator::__construct(E:\laragon\www\l6\themes/demo/blocks,E:\laragon\www\l6\themes/demo/blocks): The system cannot find the path specified. (code: 3) at E:\laragon\www\l6\vendor\hansschouten\phpagebuilder\src\Theme.php:51
Exception trace: 1 DirectoryIterator::__construct("E:\laragon\www\l6\themes/demo/blocks") 2 PHPageBuilder\Theme::loadThemeBlocks() |
Will it work if you create the blocks folder that seems to be missing now? |
It's worked. Thank so much |
same error here, both on laravel 6.* and 7.* tried clean install laravel with then ang got this:
|
yup, first you need to create the file /config/pagebuilder.php with the content here https://github.com/HansSchouten/Laravel-Pagebuilder/blob/master/config/pagebuilder.php Then create /themes/demo/blocks directory. (You may need to create more folders if it says a missing directory) Finally let's install the package |
Error when install on Laravel 6 - Php 7.3
Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to PHPageBuilder\PHPageBuilder::__construct() must be of the type array, null given, called in E:\laragon\www\builder\vendor\hansschouten\laravel-pagebuilder\src\ServiceProvider.php on line 43
at E:\laragon\www\builder\vendor\hansschouten\phpagebuilder\src\PHPageBuilder.php:47
43| * PHPageBuilder constructor.
44| *
45| * @param array $config configuration in the format defined in config/config.example.php
46| */
Exception trace:
1 PHPageBuilder\PHPageBuilder::__construct()
E:\laragon\www\builder\vendor\hansschouten\laravel-pagebuilder\src\ServiceProvider.php:43
2 HansSchouten\LaravelPageBuilder\ServiceProvider::HansSchouten\LaravelPageBuilder{closure}(Object(Illuminate\Foundation\Application), [])
E:\laragon\www\builder\vendor\laravel\framework\src\Illuminate\Container\Container.php:799
The text was updated successfully, but these errors were encountered: