Fatal error – Line 364

[ad_1]

Hi,

I updated the plugin to the latest version, and the page has a fatal error. I had to disable it via the server.

Here the error received:

An E_ERROR error occurred on line 364 of the /**/public_html/wp-content/plugins/pepro-bacs-receipt-upload-for-woocommerce/wc-upload-reciept.php file. Error message: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /**/public_html/wp-content/plugins/pepro-bacs-receipt-upload-for- woocommerce/wc-upload-receipt.php:364

Stack trace:

0 /**/public_html/wp-content/plugins/pepro-bacs-receipt-upload-for-woocommerce/wc-upload-receipt.php(364): trim()

1 /**/public_html/wp-includes/class-wp-hook.php(308): peproDev_UploadReceiptWC->admin_menu()

2 /**/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()

3 /**/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

4 /**/public_html/wp-admin/includes/menu.php(155): do_action()

5 /**/public_html/wp-admin/menu.php(420): require_once('/home/**/…')

6 /**/public_html/wp-admin/admin.php(158): require('/home/**/…')

7 /**/public_html/wp-admin/index.php(10): require_once('/home/**/…')

8 {main}

thrown

I am waiting for the solution.

Thank you,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer