Title: PHP Errors: undefined variables and invalid arguments
Last modified: August 22, 2018

---

# PHP Errors: undefined variables and invalid arguments

 *  [hannahoreilly](https://wordpress.org/support/users/hannahoreilly/)
 * (@hannahoreilly)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-errors-undefined-variables-and-invalid-arguments/)
 * Hi – I am having trouble with my site and dont know how to fix. When I have the
   pagebuilder plugin enabled I can’t edit pages or customize appearance of the 
   theme. My debug log is showing PHP undefined variable and invalid argument errors.
   Any thoughts on how to fix this? Thanks!
 * Undefined variable: total_plus_widgets_row in /public_html/wp-content/themes/
   total-plus/inc/widgets/widget-fields.php on line 200
    Undefined variable: total_plus_widgets_row
   in /public_html/wp-content/themes/total-plus/inc/widgets/widget-fields.php on
   line 200 Undefined variable: total_plus_widgets_row in /public_html/wp-content/
   themes/total-plus/inc/widgets/widget-fields.php on line 200 Undefined variable:
   total_plus_portfolio_cat in /public_html/wp-content/themes/total-plus/inc/widgets/
   widget-portfolio-carousel.php on line 32 Undefined variable: total_plus_portfolio_cat
   in /public_html/wp-content/themes/total-plus/inc/widgets/widget-portfolio-carousel.
   php on line 45 Invalid argument supplied for foreach() in /public_html/wp-content/
   themes/total-plus/inc/widgets/widget-fields.php on line 257 Undefined variable:
   total_plus_portfolio_cat in /public_html/wp-content/themes/total-plus/inc/widgets/
   widget-portfolio-masonary.php on line 31 Undefined variable: total_plus_portfolio_cat
   in /public_html/wp-content/themes/total-plus/inc/widgets/widget-portfolio-masonary.
   php on line 44 Invalid argument supplied for foreach() in /public_html/wp-content/
   themes/total-plus/inc/widgets/widget-fields.php on line 257
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-errors-undefined-variables-and-invalid-arguments%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/php-errors-undefined-variables-and-invalid-arguments/#post-10612660)
 * You will need to contact the developer of your theme for support. You can do 
   that [here](https://hashthemes.com/support/)

Viewing 1 replies (of 1 total)

The topic ‘PHP Errors: undefined variables and invalid arguments’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/php-errors-undefined-variables-and-invalid-arguments/#post-10612660)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
