F
F
Fire4ik2017-05-16 02:25:53
Denver
Fire4ik, 2017-05-16 02:25:53

WordPress error (An unexpected error has occurred...)?

I just recently started learning WordPress and everything related to website development in general. I installed Denwer, I managed to install WordPress, but I ran into difficulties: if I try to download a theme or plugin directly through the Wordpress panel, I get an error:

An unexpected error has occurred. There may be something wrong with the WordPress.org site or with your server settings. If the issue persists, please visit the support forums.

When I go to settings, I see the following error:
Warning: An unexpected error has occurred. There may be something wrong with the WordPress.org site or with your server settings. If the issue persists, please visit the support forums. (Unable to establish a secure connection to WordPress.org. Please contact the server administrator.) in Z:\home\hellowp.org\www\wp-admin\includes\translation-install.php on line 66

Here is a piece of translation-install.php code (58-66)
if ( $ssl && is_wp_error( $request ) ) {
      trigger_error(
        sprintf(
          /* translators: %s: support forums URL */
          __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
          __( 'https://wordpress.org/support/' )
        ) . ' ' . __( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)' ),
        headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
      );

What can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Pupkin, 2017-05-16
@Fire4ik

Is CURL enabled in your PHP in Denver?

V
visavi, 2020-08-19
@visavi

I know it's been a long time, but if anyone has a similar problem, then try changing the php version in the domain or site settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question