# 予期せぬエラーが発生しました。

**URL:** <https://forums.concretecms.org/t/topic/8280>\
**Category:** 初心者\
**Created:** [October 17, 2024, 8:36am UTC](https://forums.concretecms.org/t/topic/8280 "2024-10-17T08:36:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 17, 2024, 8:36am UTC](https://forums.concretecms.org/t/topic/8280/1 "2024-10-17T08:36:36Z")

</div>

PHP8.1以降に設定すると「 予期せぬエラーが発生しました。strip\_tags(): Passing null to parameter #1 ($string) of type string is deprecated」と表示されます。  
解決方法をお願いします。

---

<div class="post-metadata">

**Author:** ![mhawke](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mhawke/32/6297_2.png) [@mhawke](https://forums.concretecms.org/u/mhawke)\
**Post date:** [October 17, 2024, 9:41pm UTC](https://forums.concretecms.org/t/topic/8280/2 "2024-10-17T21:41:59Z")

</div>

What page is crashing? Can you cut’n paste the line in the error message that says what PHP file it crashed on? Also, what version of concrete are you running?

---

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 18, 2024, 12:10am UTC](https://forums.concretecms.org/t/topic/8280/3 "2024-10-18T00:10:48Z")

</div>

Thanks.  
It appears when I press the button to add a new blog page (with sidebar).  
It does not occur when adding a new page (full page).  
Maybe it is right\_sidebar.php and left\_sidebar.php.  
Concrete version is 9.3.5.  
If I change the PHP version to 7.4 or 8.0, it will not show up.

---

<div class="post-metadata">

**Author:** ![mhawke](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mhawke/32/6297_2.png) [@mhawke](https://forums.concretecms.org/u/mhawke)\
**Post date:** [October 18, 2024, 12:25am UTC](https://forums.concretecms.org/t/topic/8280/4 "2024-10-18T00:25:38Z")

</div>

The top line of the error message contains the actual PHP page within the system (not the page in your navigation) where the crash occurred. Can you paste the top few lines of the error message.

---

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 18, 2024, 12:44am UTC](https://forums.concretecms.org/t/topic/8280/5 "2024-10-18T00:44:29Z")

</div>

No, there is not.  
Send error logs and messages displayed in the browser console.

 ![スクリーンショット 2024-10-18 9.38.55](https://forums.concretecms.org/uploads/default/original/2X/a/a12fad298bc35f64bf0cc4f77e07da3f2ce55a36.png)  
 ![スクリーンショット 2024-10-18 9.40.40](https://forums.concretecms.org/uploads/default/original/2X/6/67473c56b809ae58ef2c13e1631524b9adb711ad.png)

---

<div class="post-metadata">

**Author:** ![mhawke](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mhawke/32/6297_2.png) [@mhawke](https://forums.concretecms.org/u/mhawke)\
**Post date:** [October 18, 2024, 1:46am UTC](https://forums.concretecms.org/t/topic/8280/6 "2024-10-18T01:46:02Z")

</div>

Aw. Try going to Dashboard-\>Environment-\>Debugging and set it up to show the errors.

 ![image](https://forums.concretecms.org/uploads/default/original/2X/6/67e8ce25e058a9f8e9e00cbb5668326b8929e4cd.png)

---

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 18, 2024, 4:50am UTC](https://forums.concretecms.org/t/topic/8280/8 "2024-10-18T04:50:58Z")

</div>

![スクリーンショット 2024-10-18 13.48.41](https://forums.concretecms.org/uploads/default/original/2X/c/cd955ffc925459e231e1e67105aa58e18d7a5f29.png)  
 ![スクリーンショット 2024-10-18 13.48.53](https://forums.concretecms.org/uploads/default/original/2X/5/579c7d5e1aefade0e93463a83f2e026fa80af96c.png)  
 ![スクリーンショット 2024-10-18 13.49.02](https://forums.concretecms.org/uploads/default/original/2X/9/95fac9c70280a476ef8f602cd42adfa0084d59e7.png)  
 ![スクリーンショット 2024-10-18 13.49.11](https://forums.concretecms.org/uploads/default/original/2X/f/f6f3fabea743bad8cd4e931102ee49bdb931aa67.png)

---

<div class="post-metadata">

**Author:** ![mhawke](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mhawke/32/6297_2.png) [@mhawke](https://forums.concretecms.org/u/mhawke)\
**Post date:** [October 18, 2024, 5:20am UTC](https://forums.concretecms.org/t/topic/8280/9 "2024-10-18T05:20:09Z")

</div>

I realize this can be confusing but you’ve posted the ‘example’ from the dashboard debugging page. That’s not really what we need. Now that you’ve turned debugging on, visit a page on your website that was giving you the original error and post the error message that shows up on that page.

---

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 18, 2024, 5:51am UTC](https://forums.concretecms.org/t/topic/8280/10 "2024-10-18T05:51:46Z")

</div>

Sorry.  
I checked debugging with the specified settings, in which case I could operate normally.  
There were no error messages.

---

<div class="post-metadata">

**Author:** ![mhawke](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mhawke/32/6297_2.png) [@mhawke](https://forums.concretecms.org/u/mhawke)\
**Post date:** [October 18, 2024, 11:24am UTC](https://forums.concretecms.org/t/topic/8280/11 "2024-10-18T11:24:13Z")

</div>

So this is good news and bad news. The good news is that the panic is over and the site can operate. The bad news is that the error is still there but it’s no longer crashing your site. Eventually, when you upgrade the PHP version again, the site will crash again. The ‘error’ you are suffering from is actually supposed to just be a ‘warning’ in PHP 8.1. Since you cleared the box labeled “Consider warnings to be errors” then the warning is just a warning right now and will not crash the site. If you want to fix the underlying problem now, you need to click “Consider warnings as errors” so that the warning becomes an error again and you’ll get a message that tells you the actual line number of the actual PHP file that’s causing the problem and then you can fix that line. I highly suspect it will be in an add-on that is not fully compatible with PHP 8.1 but we’ll see.

---

<div class="post-metadata">

**Author:** ![mimi](https://forums.concretecms.org/user_avatar/forums.concretecms.org/mimi/32/3495_2.png) [@mimi](https://forums.concretecms.org/u/mimi)\
**Post date:** [October 19, 2024, 1:13am UTC](https://forums.concretecms.org/t/topic/8280/12 "2024-10-19T01:13:33Z")

</div>

Thank you.  
I will check again when I upgrade PHP and Concrete cms.  
See you.
