Comments (4)
I got the same issue with Laravel 8 in XAMPP in Windows 10
from laravel-pagebuilder.
I have encountered an error while installing Laravel-Pagebuilder.
My laravel version is 8> Illuminate\Foundation\ComposerScripts::postAutoloadDump @php artisan package:discover --ansi TypeError Argument 1 passed to PHPageBuilder\PHPageBuilder::__construct() must be of the type array, null given, called in C:\directory\laravel\vendor\hansschouten\laravel-pagebuilder\src\ServiceProvider.php on line 43 at C:\directory\laravel\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? */ ? 47? public function __construct(array $config) 48? { 49? if (session_status() === PHP_SESSION_NONE) { 50? session_start(); 51? } 1 C:\directory\laravel\vendor\hansschouten\laravel-pagebuilder\src\ServiceProvider.php:43 PHPageBuilder\PHPageBuilder::__construct() 2 C:\directory\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php:805 HansSchouten\LaravelPageBuilder\ServiceProvider::HansSchouten\LaravelPageBuilder{closure}(Object(Illuminate\Foundation\Application), []) Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 Installation failed, reverting ./composer.json to its original content.
@josh-whit-me Did you find any solution?
from laravel-pagebuilder.
It seems like the configuration is not passed while instantiating the PHPageBuilder
object over here https://github.com/HansSchouten/Laravel-Pagebuilder/blob/master/src/ServiceProvider.php#L43.
Can you have a look why config('pagebuilder')
is empty? Did you publish the config using php artisan vendor:publish --provider="HansSchouten\LaravelPageBuilder\ServiceProvider" --tag=config
.
from laravel-pagebuilder.
Same issue - this is happening on installation with composer, there is not opportunity to publish config.
I added a pagbuilder.php
config file returning an empty array to change the error; which it did...
> @php artisan package:discover --ansi
ErrorException
Undefined index: SERVER_NAME
at vendor/hansschouten/phpagebuilder/src/Core/helpers.php:247
243▕ $port = '';
244▕ if (isset($_SERVER['SERVER_PORT']) && ! in_array($_SERVER['SERVER_PORT'], [80, 443])) {
245▕ $port = ":" . $_SERVER['SERVER_PORT'];
246▕ }
➜ 247▕ $currentFullUrl = $protocol . "://" . $_SERVER['SERVER_NAME'] . $port . urldecode($_SERVER['REQUEST_URI']);
248▕ $currentFullUrl = rtrim($currentFullUrl, '/' . DIRECTORY_SEPARATOR);
249▕ return $currentFullUrl;
250▕ }
251▕ }
+18 vendor frames
19 [internal]:0
Illuminate\Foundation\Application::Illuminate\Foundation\{closure}(Object(HansSchouten\LaravelPageBuilder\ServiceProvider))
+5 vendor frames
25 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
from laravel-pagebuilder.
Related Issues (20)
- Migration Error HOT 5
- Can't run php artisan migrate HOT 3
- unable to add bullets in PB editor HOT 1
- Error when run migrate in laravel 8 in version phpbuildier 0.22.0
- pagebuilder HOT 1
- Migration error [Laravel 8.8, pagebuilder 0.24] HOT 3
- database mess
- You pushed Laravel library 3 years ago. Do you believe, this library will work on Laravel 10? HOT 3
- SQLSTATE[42S22]: Column not found: 1054 Unknown column 'meta_title' in 'field list' HOT 2
- How can I get Grapejs default block components inside my block HOT 2
- Tutorial about integrating PHPageBuilder into a Laravel project HOT 1
- Call to a member function select() on null Error
- Cannot drag & drop, white screen with nothing to do HOT 2
- No publishable resources for tag [config]. HOT 6
- No publishable resources for tag [config] HOT 2
- Issue on block separation using tailwind CSS HOT 2
- /admin not found, but records url as /in
- Admin Login returns 419 Expired
- incompatibility with laravel 10 and 11
- how do i implement this app with already having admin route and lots of users.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-pagebuilder.