Title: PHP Warning: Undefined variable $cols in
Last modified: February 28, 2025

---

# PHP Warning: Undefined variable $cols in

 *  [Kristad](https://wordpress.org/support/users/kristad/)
 * (@kristad)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-cols-in/)
 * I am getting this error message repeatedly.
 * PHP Warning: Undefined variable $cols in /home/fireplaceshop/public_html/wp-content/
   themes/sydney/inc/extras.php on line 103
 * What does this mean? How can I fix it?
 * Thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-undefined-variable-cols-in%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * (@kharisblank)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-cols-in/#post-18349678)
 * Hi [@kristad](https://wordpress.org/support/users/kristad/),
 * Are you running latest version of Sydney theme? Please confirm.
 * To exclude any PHP notices, you may want to disable WP_DEBUG mode. Ref: [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#example-wp-config-php-for-debugging](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#example-wp-config-php-for-debugging)
 *  Thread Starter [Kristad](https://wordpress.org/support/users/kristad/)
 * (@kristad)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-cols-in/#post-18353564)
 * Yes I am running Version: 2.51 of Sydney
 * Sorry for late response.
 *  [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * (@kharisblank)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-cols-in/#post-18353947)
 * Hi [@kristad](https://wordpress.org/support/users/kristad/),
 * I ran several tests but couldn’t reproduce the issue. My test site is using WordPress
   6.7.2, Sydney 2.51, and WooCommerce 9.7.1, and everything seems to be working
   fine.
 * Can you let me know where the issue appears? Is it on a specific page?
 * It’s possible that one of your other active plugins might be causing the problem.
   If you’d like, you can try disabling other plugins temporarily to see if that
   helps.
 * Let me know how it goes!

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

The topic ‘PHP Warning: Undefined variable $cols in’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/sydney/2.68/screenshot.png)
 * Sydney
 * [Support Threads](https://wordpress.org/support/theme/sydney/)
 * [Active Topics](https://wordpress.org/support/theme/sydney/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/sydney/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/sydney/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kharis Sulistiyono](https://wordpress.org/support/users/kharisblank/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/php-warning-undefined-variable-cols-in/#post-18353947)
 * Status: not resolved