Passing null to parameter #1 ($string) of type string is deprecated in

Post Reply
yaoying
Posts: 133
Joined: 10 Apr 2023, 23:23
Name: 耀影
Location: 深圳
Company Name: 深圳市耀影科技有限公司
Contact:

Passing null to parameter #1 ($string) of type string is deprecated in

Post by yaoying »

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/yaoying3.vip/template/public_layout.php on line 155
Attachments
截图_选择区域_20230528210757.png
yaoying
Posts: 133
Joined: 10 Apr 2023, 23:23
Name: 耀影
Location: 深圳
Company Name: 深圳市耀影科技有限公司
Contact:

Re: Passing null to parameter #1 ($string) of type string is deprecated in

Post by yaoying »

Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wwwroot/yaoying3.vip/template/header.php on line 7
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Passing null to parameter #1 ($string) of type string is deprecated in

Post by support »

This is fresh install or you use some templates?
I don't have any of this strlen issues. Something is wrong with you database. Not user why it has null in where it should be empty string.
yaoying
Posts: 133
Joined: 10 Apr 2023, 23:23
Name: 耀影
Location: 深圳
Company Name: 深圳市耀影科技有限公司
Contact:

Re: Passing null to parameter #1 ($string) of type string is deprecated in

Post by yaoying »

https://www.rukovoditel.net/database_te ... .php?id=22
I was officially on this page to download this SQL template test, resulting in an error
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

Re: Passing null to parameter #1 ($string) of type string is deprecated in

Post by Didou12 »

Hi

I think it's because this template was built on 2.4 and, its compatibility is 3.3.

3.4 can use recent PHP, so it's really new.

In my opinion this template us some deprecated fields.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6222
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

Re: Passing null to parameter #1 ($string) of type string is deprecated in

Post by support »

I see issue with templates. In a few days I will check all templates and prepare them to 3.4 version and will remove NULL values. Then they will be ready to test.
Post Reply