• dewhyway

    (@dewhyway)


    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)

    (@sterndata)

    Volunteer Forum Moderator

    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

    Hi @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

    Jim

    (@jamesgreat)

    Hi there @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 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 to reply to this topic.