Title: PHP Error setting the cookie
Last modified: March 27, 2024

---

# PHP Error setting the cookie

 *  Resolved [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-error-setting-the-cookie/)
 * Hi, while helping a user with his site, we found an error generated by line 578
   of the file extended-shortcodes.php (taking the code from the trunk). The line
   is:
 * `if(!empty($atts['time'])) $time = time() + $atts['time'];`
 * and the error is “Unsupported operand types: int + string”. I’m not a user of
   this plugin, maybe the shortcode was used incorrectly or it could be a problem
   with the PHP version. I suggest to change the code to
 * `if(!empty($atts['time'])) $time = time() + (int)$atts['time'];`
 * that should solve the problem.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [If-So Dynamic Content](https://wordpress.org/support/users/ifso/)
 * (@ifso)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/php-error-setting-the-cookie/#post-17534544)
 * Hi Stefano,
 * Thanks!
 * We published a new version with the fix.

Viewing 1 replies (of 1 total)

The topic ‘PHP Error setting the cookie’ is closed to new replies.

 * ![](https://ps.w.org/if-so/assets/icon-256x256.gif?rev=2633132)
 * [If-So Dynamic Content – Elementor & All Page Builders Personalization](https://wordpress.org/plugins/if-so/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/if-so/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/if-so/)
 * [Active Topics](https://wordpress.org/support/plugin/if-so/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/if-so/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/if-so/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [If-So Dynamic Content](https://wordpress.org/support/users/ifso/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/php-error-setting-the-cookie/#post-17534544)
 * Status: resolved