Skip to content
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

installer throw ErrorException #107

Open
khan-umer opened this issue Nov 23, 2022 · 0 comments
Open

installer throw ErrorException #107

khan-umer opened this issue Nov 23, 2022 · 0 comments

Comments

@khan-umer
Copy link

Hello @khodakhah & nodcms team,

as per nodcms github documentation i tried to install and run nodcms on localhost, but unfortunately after run the application it throw error Exception.

I'm using

  • PHP version : 8.1.9
  • codeigniter version : 4 .2.10

error I'm getting is:

ErrorException
rtrim(): Passing null to parameter #1 ($string) of type string is deprecated 

SYSTEMPATH\View\View.php at line 143

136      * @var array<string>
137      */
138     protected $sectionStack = [];
139 
140     public function __construct(ViewConfig $config, ?string $viewPath = null, ?FileLocator $loader = null, ?bool $debug = null, ?LoggerInterface $logger = null)
141     {
142         $this->config   = $config;
143         $this->viewPath = rtrim($viewPath, '\\/ ') . DIRECTORY_SEPARATOR;
144         $this->loader   = $loader ?? Services::locator();
145         $this->logger   = $logger ?? Services::logger();
146         $this->debug    = $debug ?? CI_DEBUG;
147         $this->saveData = (bool) $config->saveData;
148     }
149 
150     /**

.env file changes are :

#--------------------------------------------------------------------
# ENVIRONMENT
#--------------------------------------------------------------------

CI_ENVIRONMENT=development

ENVIRONMENT=development
#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------

# Web root URL
app.baseURL=http://localhost:8080
# If you have trouble with `.`, you could also use `_`.
# app_baseURL = ''
app.forceGlobalSecureRequests=false

app.CSPEnabled=false

I'm not able to proceed any more, please help me for this issue.

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant