小编Asa*_*n A的帖子

PHP str_replace():不推荐将 null 传递给类型为 array|string 的参数 #3 ($subject)

我在运行我的应用程序时收到此错误:

PHP str_replace():不推荐将 null 传递给类型为 array|string 的参数 #3 ($subject)

我正在使用 CodeIgniter 版本:V4.1.8 PHP 版本:8.1.2,完整错误输出如下:

{"data":[
    ["omron","<span class=\"label label-success\">Active<\/span>",
    "<button type=\"button\" class=\"btn btn-default\" onclick=\"editBrand(4)\" data-toggle=\"modal\" data-target=\"#editBrandModal\"><i class=\"fa fa-pencil\"><\/i><\/button> <button type=\"button\" class=\"btn btn-default\" onclick=\"removeBrand(4)\" data-toggle=\"modal\" data-target=\"#removeBrandModal\"><i class=\"fa fa-trash\"><\/i><\/button>\n\t\t\t\t"]
    ]
}
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">

<h4>A PHP Error was encountered</h4>

<p>Severity: 8192</p>
<p>Message:  str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated</p>
<p>Filename: core/Output.php</p>
<p>Line Number: 457</p>


    <p>Backtrace:</p>
Run Code Online (Sandbox Code Playgroud)

更新:代码

if ($this->parse_exec_vars === TRUE) 
{ 
    $memory = round(memory_get_usage() …
Run Code Online (Sandbox Code Playgroud)

php codeigniter

14
推荐指数
2
解决办法
8万
查看次数

Angular 材质不适用于 Angular13

我在我的项目中安装了 Angular Material,但没有加载。

我尝试将样式表导入全局 Style.css

重新启动服务器

但角度材质并未更新。

我没有任何线索。

下面我也添加了我的 Package.Json 文件

我的 HTML 代码


<mat-form-field>
  <textarea MatInput rows="6" [(ngModel)]="valueEntered"></textarea>
</mat-form-field>

<hr />
<button (click)="onSave()">Save</button>
<p>{{ newPost }}</p>
Run Code Online (Sandbox Code Playgroud)

应用程序模块代码

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import { postCreateComponent } from './posts/post-create/post-create.component';

import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; 
import {MatInputModule} from '@angular/material/input';

@NgModule({
  declarations: [
    AppComponent,
    postCreateComponent
  ], …
Run Code Online (Sandbox Code Playgroud)

angular-material angular

5
推荐指数
1
解决办法
6855
查看次数

标签 统计

angular ×1

angular-material ×1

codeigniter ×1

php ×1