weDevsOfficial / wp-user-frontend

A WordPress plugin that brings many backend functionality to the site frontend
https://wordpress.org/plugins/wp-user-frontend/
227 stars 146 forks source link

Fatal Error in Simple_Login.php: implode() Expects Array, String Given #1501

Open 006rodaal opened 1 week ago

006rodaal commented 1 week ago

Hello,

Since the new update from yesterday it's not possible to login anymore on the website. My logs show the following errors: [15-Nov-2024 11:46:08 UTC] PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /home/[redacted-for-privacy-by-me]public_html/wp-content/plugins/wp-user-frontend/includes/Free/Simple_Login.php:514 Stack trace:

0 /home/[redacted-for-privacy-by-me]public_html/wp-content/plugins/wp-user-frontend/includes/Free/Simple_Login.php(514): implode()

1 /home/[redacted-for-privacy-by-me]public_html/wp-includes/class-wp-hook.php(324): WeDevs\Wpuf\Free\Simple_Login->process_login()

2 /home/[redacted-for-privacy-by-me]public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

3 /home/[redacted-for-privacy-by-me]public_html/wp-includes/plugin.php(517): WP_Hook->do_action()

4 /home/[redacted-for-privacy-by-me]public_html/wp-settings.php(704): do_action()

5 /home/[redacted-for-privacy-by-me]public_html/wp-config.php(103): require_once('/home/deb145809...')

6 /home/[redacted-for-privacy-by-me]public_html/wp-load.php(50): require_once('/home/deb145809...')

7 /home/[redacted-for-privacy-by-me]public_html/wp-blog-header.php(13): require_once('/home/deb145809...')

8 /home/[redacted-for-privacy-by-me]public_html/index.php(17): require('/home/deb145809...')

9 {main}

thrown in /home/[redacted-for-privacy-by-me]public_html/wp-content/plugins/wp-user-frontend/includes/Free/Simple_Login.php on line 514

Could you please solve this? Thanks!

006rodaal commented 1 week ago

@sapayth could you please provide a quickfix?

gossdhosting commented 1 week ago

Waiting for a fix!!

006rodaal commented 1 week ago

@gossdhosting i downloaded the 4.0.12 and uploaded this via ftp. Disabled auto updates and now waiting for the fix to upgrade 😓

rebelojose commented 1 week ago

solution by smaggio

Same error. In Simple_Login.php on line 514 you try to concatenate an array when $errors is an empty string. A temporary solution could be:

$errors = implode( ‘, ‘, $errors ); to if ( is_array( $errors ) ) { $errors = implode( ‘, ‘, $errors ); }

anik-fahmid commented 1 week ago

@006rodaal , @gossdhosting , and everyone following this thread,
Thank you for your patience, and we're sorry for any inconvenience this issue has caused. We (@sapayth) are actively working on a fix. Special thanks to @rebelojose for suggesting the temporary solution.

In the meantime, we recommend rolling back to version 4.0.12 to maintain stability until the next release. We’ll keep you updated on our progress!

@saifislam01 is from our support team and will guide you with further help needed.

Thank you all for your understanding.

anik-fahmid commented 1 week ago

Hi @006rodaal, @gossdhosting, and @rebelojose,

To resolve this quickly, we'd like to investigate the problem directly on your sites.

Could you please create a support ticket using this link: Support Ticket URL.

Once we've identified the root cause, we'll promptly work on a fix.

I am looking forward to your response!

Best regards, Fahmid from weDevs.

006rodaal commented 1 week ago

@anik-fahmid unfortunately due to privacy reasons I can't provide you with the login to my website. I am willing to take the time and provide you with more logs if needed. Please let me know what you would require.

gossdhosting commented 3 days ago

The issue is still not resolved.

006rodaal commented 3 days ago

@sapayth and @anik-fahmid we're still waiting for a solution. Rolling back to 4.0.12 seems the only solution for now... Could you provide us with an update?

Anower16 commented 3 days ago

Hi all @rebelojose, @gossdhosting, @006rodaal, @jweisman,

We are looking into this issue and working on a fix. Please stay with us. We will let you know the update shortly. This is added to the priority list.

If you haven't contacted our technical support team please share your concern here. We might need your site access to apply the fix.

Contact: https://wedevs.com/contact/

Thanks and have a nice day.

anik-fahmid commented 1 day ago

Hello all!

@rebelojose, @gossdhosting, @006rodaal, @jweisman,

We've released a fix in the latest version of the plugin, which addresses the login error you experienced. Please update to the latest version, and it should resolve the problem.

We appreciate your patience and understanding!