Title: PHP Warning: mb_substr()
Last modified: September 20, 2022

---

# PHP Warning: mb_substr()

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/)
 * Hi.
 * Wordpress 6.x and PHP 8:
 * [20-Sep-2022 19:00:43 UTC] PHP Warning: mb_substr() expects parameter 2 to be
   int, string given in /home/wp-content/plugins/recently/src/Helper.php on line
   133
 * Thanks !

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16028604)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/),
 * Could you please include reproduction steps? The PHP warning message alone isn’t
   enough for me to understand what’s going on.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16028633)
 * This is happening when the admin designs the page, at some point.
 * I use Guterberg to show the block in a page and not in sidebar as widget, if 
   this is any help.
 * I use Columns block (2 columns) and i add your block in each.
 * Other than that, i don’t know EXACTLY when it happens. But NOT when i view the
   page normally. So it is definitely an admin/design issue.
 * I use Kadence theme if it makes any difference.
 * Thanks
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16028738)
 * So basically while adding/editing the Recently block in a Post/Page Edit screen,
   but not when viewing it on the front-end? That’s odd. I’ll look into it.
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16028747)
 * Yes, this is what happens. After publishing it, i see no errors.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16063077)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/),
 * Just launched a new version of the plugin that should fix this issue. Please 
   upgrade as soon as possible and let me know if you have any further comments.
 * Thanks for reporting the problem!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP Warning: mb_substr()’ is closed to new replies.

 * ![](https://ps.w.org/recently/assets/icon-256x256.png?rev=1188315)
 * [Recently](https://wordpress.org/plugins/recently/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recently/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recently/)
 * [Active Topics](https://wordpress.org/support/plugin/recently/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recently/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recently/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-warning-mb_substr/#post-16063077)
 * Status: resolved