Title: PHP error when using Custom Shortcode String
Last modified: November 11, 2016

---

# PHP error when using Custom Shortcode String

 *  [Todd](https://wordpress.org/support/users/toddneufeld/)
 * (@toddneufeld)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-when-using-custom-shortcode-string/)
 * I love Global Content Blocks! One of my sites I’m having a weird problem. It 
   works okay when I call the block’s number, like [contentblock id=35], but it 
   throws this error when calling the same one via its custom name, like [contentblock
   id=footertext]:
 * `Warning: strlen() expects parameter 1 to be string, array given in /wp-content/
   plugins/global-content-blocks/gcb/gcb.class.php on line 36`
 * I really don’t want to go through all of my pages and replace the code with the
   number — is there an easy fix for this?
 * Thanks in advance!
 * -Todd

The topic ‘PHP error when using Custom Shortcode String’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/global-content-blocks_c8cac8.svg)
 * [Global Content Blocks](https://wordpress.org/plugins/global-content-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/global-content-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/global-content-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/global-content-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/global-content-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/global-content-blocks/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Todd](https://wordpress.org/support/users/toddneufeld/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/php-error-when-using-custom-shortcode-string/)
 * Status: not resolved