Title: Problem with functions.php
Last modified: March 7, 2026

---

# Problem with functions.php

 *  [dewhyway](https://wordpress.org/support/users/dewhyway/)
 * (@dewhyway)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/problem-with-functions-php/)
 * Hi, 
   I have problem with functions.php, this is the debug report:
 * [07-Mar-2026 13:05:36 UTC] PHP Fatal error: Uncaught ArgumentCountError: trim()
   expects at least 1 argument, 0 given in /home/techlova/domains/techlova.id/public_html/
   wp-content/themes/foxiz/functions.php:13
   Stack trace: 0 /home/techlova/domains/
   techlova.id/public_html/wp-content/themes/foxiz/functions.php(13): trim() 1 /
   home/techlova/domains/techlova.id/public_html/wp-settings.php(710): include(‘…’)
   2 /home/techlova/domains/techlova.id/public_html/wp-config.php(107): require_once(‘…’)
   3 /home/techlova/domains/techlova.id/public_html/wp-load.php(50): require_once(‘…’)
   4 /home/techlova/domains/techlova.id/public_html/wp-blog-header.php(13): require_once(‘…’)
   5 /home/techlova/domains/techlova.id/public_html/index.php(17): require(‘…’) 
   6 {main}
 * thrown in /home/techlova/domains/techlova.id/public_html/wp-content/themes/foxiz/
   functions.php on line 13

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/problem-with-functions-php/#post-18843982)
 * There’s a problem with your theme.
 * Support of all commercial themes and plugins is out of scope for these forums.
   While we will not close your post, we also cannot guarantee any support at all,
   be that by volunteers or the developers. We recommend you instead use the developer’s
   official contact for their premium offerings, as that is the most direct line.
 * [https://themeforest.net/item/foxiz-wordpress-newspaper-and-magazine/34617430/support](https://themeforest.net/item/foxiz-wordpress-newspaper-and-magazine/34617430/support)
 *  [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/problem-with-functions-php/#post-18844712)
 * Hi [@dewhyway](https://wordpress.org/support/users/dewhyway/),
 * I hope this message finds you well.
 * The error is reported because you are using the PHP function trim(), which was
   called without any parameters, but it requires at least one value.
 * Do you have any custom code added in your functions.php file? If yes, can you
   please remove the same and see if that helps to resolve the issue?
 * If there is no custom code added in your functions.php file, this is more likely
   to be an issue with your theme, and you need to reach out to your theme support,
   as it needs to be fixed in the theme code.
 * Best Regards,
    Nebu John
 *  [James Kiarie](https://wordpress.org/support/users/jamesgreat/)
 * (@jamesgreat)
 * [2 months, 2 weeks ago](https://wordpress.org/support/topic/problem-with-functions-php/#post-18846970)
 * Hi there [@dewhyway](https://wordpress.org/support/users/dewhyway/) ,
 * Thank you for sharing the debug report. The error indicates that on line 13 of
   your theme’s `functions.php` file, there is a call to **`trim()` **function without
   any argument, which PHP does not allow.
 * Few questions to help narrow this down:
    - As [@wpmudevsupport14](https://wordpress.org/support/users/wpmudevsupport14/)
      asked, did this start happening after editing** `functions.php` **file manually?
    - Since you are using the Foxiz theme, was it recently updated?
 * Looking forward to your reply.
 * Cheers,
 * Jim

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproblem-with-functions-php%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 4 participants
 * Last reply from: [James Kiarie](https://wordpress.org/support/users/jamesgreat/)
 * Last activity: [2 months, 2 weeks ago](https://wordpress.org/support/topic/problem-with-functions-php/#post-18846970)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
