I installed latest version of wordpress 4.4.2. using cpanel app install software...
In setting, edit and update error occurred :
Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /home/climbuse/public_html/climbusengineering.com/wp-admin/includes/translation-install.php on line 59
How to fix ...
Advance thanks for all...
In my case it was the proxy blocking the communication with Wordpress server.
I fixed it by following this guide.
Basically I had to define these rules into wp-config.php:
/* Configure proxy Server */
define('WP_PROXY_HOST', 'x.x.x.x');
define('WP_PROXY_PORT', '8080');
define('WP_PROXY_USERNAME', '');
define('WP_PROXY_PASSWORD', '');
define('WP_PROXY_BYPASS_HOSTS', 'localhost');
Login to FTP
Navigate to wp-includes directory and replace wp-includes/includes/translation-install.php after downloading a fresh WordPress zip from here : https://wordpress.org/download/
That should help fix it.
You must run newr php. or you must replace in "ext" folder openssl extentesion to new version (to openssl 1.0.2e)... Wordpress 3.9.11 work with erlier openssl but wordpress 4 dosn't...
Check "Plugins / Add New" page. If there is same error instead of featured plugins list, then it basically means that WebServer can't connect to the web. Try temporary disable firewall and see if problem is solved. And if it is - you need to add rules for outgoing traffic for your WebServer (httpd in Apache case).
Other option is check, if SSL module enabled in your WebServer (mod_ssl in Apache).
I had this issue as well looks like wordpress.org was down and taken with it a lot of sites that are using the following function (in file wp-admin/includes/translation-install.php on line 59
):
function translations_api( $type, $args = null ) {
...
To solve it until wordpress.org will return I exited the function before it executing anything.
function translations_api( $type, $args = null ) {
return;
Related
We have a wordpress installation on provider wpengine. When we try to update some plugins we get the fatal PHP error in subject. The provider support do not know how to help us. This is the call stack of the error:
"PHP Fatal error: Uncaught Error: Call to undefined function trailingslashit() in /nas/content/live/sillaindustrie/wp-includes/class-wp-textdomain-registry.php:103\nStack trace:\n#0 /nas/content/live/sillaindustrie/wp-includes/l10n.php(784): WP_Textdomain_Registry->set('default', 'it_IT', '/nas/content/li...')\n#1 /nas/content/live/sillaindustrie/wp-includes/load.php(1401): load_textdomain('default', '/nas/content/li...', 'it_IT')\n#2 /nas/content/live/sillaindustrie/wp-includes/load.php(278): wp_load_translations_early()\n#3 /nas/content/live/sillaindustrie/wp-settings.php(74): wp_maintenance()\n#4 /nas/content/live/sillaindustrie/wp-config.php(67): require_once('/nas/content/li...')\n#5 /nas/content/live/sillaindustrie/wp-load.php(50): require_once('/nas/content/li...')\n#6 /nas/content/live/sillaindustrie/wp-blog-header.php(13): require_once('/nas/content/li...')\n#7 /nas/content/live/sillaindustrie/index.php(17): require('/nas/content/li...')\n#8 {main}\n thrown in /nas/content/live/sillaindustrie/wp-includes/class-wp-textdomain-registry.php on line 103, referer: https://silla.industries/wp-admin/update-core.php?action=do-plugin-upgrade"
It seems to be related to WPML plugin or similar, any suggest?
Thanks
G.
I tried to update wordpress plugin, but I cannot understand the source of the error. Maybe it is plugins incompatibility but I don't know how to discover it.
As others have pointed out, this is an issue where wp-includes/formatting.php isn't available when the code in wp-includes/class-wp-textdomain-registry.php runs. It is an issue introduced by WordPress 6.1.
To work around this issue, you can change line 103 in wp-includes/class-wp-textdomain-registry.php from:
$this->all[ $domain ][ $locale ] = $path ? trailingslashit( $path ) : false;
To:
$this->all[ $domain ][ $locale ] = $path ? rtrim( $path, '/\\' ). '/' : false;
Update: I find the cause of the problem. WordPress 6.1 have made important updates to the WP_Textdomain_Registry object. This causes the error when the maintenance mode is activated during the plugin update process.
it is a bug in WP Core and will be fixed in 6.1.2
https://core.trac.wordpress.org/changeset/55010
Check you have installed php-psr.
I had this error as I hadn't installed php8.1-psr
Looks like the formatting.php functions are not available anymore when updating.
Update: I found a user that had a similar problem, he solved by deleting the wp_includes folder and then re-uploading it via FTP. I tried too: in staging environment it worked but in production the error still appears after updating any plugin :(
Update: I found a possible incompatibility with a TikTok plugin, but I'm not sure. In fact, after some updates that worked fine, the problem returned.
Got the same error several times since 6.1.x, I think on some servers this is just a timeout problem.
Have to compare some different instalations on different hosts.
And check if there ist still the .maintenance in your WP dir.
Hope someone might be able to shed some light on this one.
The error is very generic and seems quite unpredictable.
Happens on some page loads, not others, and when it does, if you refresh a few times, page will load.
However, some pages just will not load at all however may times you refresh.
The site in question has been running 5 years with no issues like this.
I wanted to update it to WPv5.0 (from 4.9.8), so tried running a backup using 2 different WP plugins (such as readybackup), both backups stalled afetr being left for over an hour, so I just shut them down.
Error started after this.
Diagnosis/work done so far:
Uninstalled the 2 Backup plugins.
Disabled ALL plugins - site works fine.
Enabled plugins 1-by-1. All are up-to-date including Woocommerce and its database.
When WooCommerce activated the error messages appear again:an error occurred while processing this directive.
Ran the Wpress updater to v5.0 - ran ok without Woocommerce activated.
Ran update to the Genesis framework theme (Enterprise Pro child theme) to latest version 2.7.1 (Nov 2018 version) - updated ok without Woocommerce activated.
Ran a recursive script to check / change all files folder permissions: 0644 for files, 0755 for folders, output=o needed changing.Physically checked as well - random check of files and folders showed all permissions ok.
Re-loaded the default/standard/original .htaccess file for Wordpress.
Hit 'save' in permalinks in Wpress dashboard.
Activated Woocommerce, used the plugin tools to clear transient cache etc.. in database and re-created default woocomm pages (such as cart etc..) through their tools menu.
(all the while getting same error in between trying each function and refreshing webpage several times to get it to work).
Enabled debug log in wp-config.php.
Log output (line after line, of the SAME error only:
[11-Dec-2018 02:03:10 UTC] PHP Warning: mysqli_query(): (HY000/2013): Lost connection to MySQL server during query in /home1/alphxxxx/public_html/turbochargerxxxxx/wp-includes/wp-db.php on line 1924
MY NOTE: xxxx = hidden info.
If I download the wp-db.php file, and open in code editor notepad++ , from line 1909 to 1933 it shows:
/**
* Internal function to perform the mysql_query() call.
*
* #since 3.9.0
*
* #see wpdb::query()
*
* #param string $query The query to run.
*/
private function _do_query( $query ) {
if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
$this->timer_start();
}
if ( ! empty( $this->dbh ) && $this->use_mysqli ) {
$this->result = mysqli_query( $this->dbh, $query );
} elseif ( ! empty( $this->dbh ) ) {
$this->result = mysql_query( $query, $this->dbh );
}
$this->num_queries++;
if ( defined( 'SAVEQUERIES' ) && SAVEQUERIES ) {
$this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() );
}
}
Other Errors found:
In folder: wp-content/uploads/
File: wc-logs
2018-12-10T08:11:02+00:00 CRITICAL Class 'WP_Roles' not found in /home1/alphxxxx/public_html/turboxxxxxxx/wp-settings.php on line 400
And below, an error that repeats itself, found in the same file as above:
2018-12-10T10:48:21+00:00 CRITICAL Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home1/alphxxxx/public_html/turboxxxxxx/wp-content/wp-performance-score-booster): failed to open dir: No such file or directory' in /home1/alphxxxx/public_html/turboxxxxxx/wp-content/plugins/wp-performance-score-booster/uninstall.php:15
Stack trace:
0 /home1/alphxxx/public_html/turboxxxxxxxx/wp-content/plugins/wp-performance-score-booster/uninstall.php(15): RecursiveDirectoryIterator->__construct('/home1/alpxxxx...', 4096)
1 /home1/alphxxxxx/public_html/turboxxxxxxx/wp-content/plugins/wp-performance-score-booster/uninstall.php(12): delete_storage_dir('/home1/alphxxx...')
2 /home1/alphxxxx/public_html/turboxxxxxxx/wp-admin/includes/plugin.php(1018): include('/home1/alphxxxx...')
3 /home1/alphxxxxx/public_html/turboxxxxxxxxx/wp-admin/includes/plugin.php(831): uninstall_plugin('wp-performance-...')
4 /home1/alpxxxx/public_html/turboxxxxxxxx/wp-admin/includes/ajax-actions.php
Other error found error_log in folder: wp-content:
[22-Nov-2018 12:43:52 America/Denver] PHP Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
NOTE: this error was happening well before this issue so might not be related, but good to see if can also be resolved.?
Additionally:
My site is hosted with BlueHost and I found a plugin (called SSO.php) in the MU-plugin folder that THEY installed without my consent on Wpress sites hosted with them that force upgrades to sites (see article: https://wptavern.com/bluehost-open-sources-script-used-to-update-2-5-million-wordpress-sites). Unbelievable.
I believe from this cron, the site has tried to be backed up and at times automatically updated, failed and restored. I think this because files AND databases that I had deleted long ago seem to have re-appeared.
If I re-name the SSO plugin to inactivate it, I can't access ANY pages at all! and get the constant error: "an error occurred while processing this directive"
I believe this action by Bluehost may have somehow contributed to issues on the site. Needless to say, once I have fixed this issue I will be migrating OFF Bluehost!.
Sorry for the long spiel, but I really hope some PHP guru can nail this one.
Mediawiki Version 1.27
Visual Editor Version 1.27
Parsoid Version latest in repository
So I have several web servers running on an Ubuntu VM. The hostname is "atocha". I have Apache running on port 8000. Under this I have a Mediawiki instance. The mediawiki instance is not private.
I installed Parsoid and it is running on port 8142.
I can access my mediawiki instance by going do "http://atocha:8000/mediawiki/index.php"
I can curl the Mediawiki api just fine. "http://atocha:8000/mediawiki/api.php"
However when I try to edit the pages using Visual Editor I receive the following error "Error loading from server: 404: docserver-http: HTTP 404. Would you like to retry?" that pops up in a display. No error is thrown in Apache.
Here is my parsoid local settings.js file
'use strict';
exports.setup = function(parsoidConfig) {
parsoidConfig.setMwApi({
uri: 'http://atocha:8000/mediawiki/api.php',
domain: 'atocha',
prefix: 'atocha'
});
parsoidConfig.useSelser = true;
};
Here is the pertinent LocalSettings.php section:
wfLoadExtension( 'VisualEditor');
// Enable by default for everybody
$wgDefaultUserOptions['visualeditor-enable'] = 1;
// Don't allow users to disable it
$wgHiddenPrefs[] = 'visualeditor-enable';
$wgVirtualRestConfig['modules']['parsoid'] = array(
// URL to the Parsoid instance
// Use port 8142 if you use the Debian package
'url' => 'http://127.0.0.1:8142'
);
If I try to use parsoid like this in a browser:
http://atocha:8142/localhost/v3/page/Javadoc_Basics
I get this error:
Did not find page revisions for V3/page/Javadoc_Basics
If I try parsoid like this however:
http://atocha:8142/localhost:8000/v3/page/Javadoc_Basics
I get this:
Cannot GET /atocha:8000/v3/page/Javadoc_Basics
Anyone have an idea about what's going on? Thanks in advance.
After much failure I was able to get parsoid and visual editor working.
Here is how I did it:
https://www.mediawiki.org/wiki/Parsoid/Developer_Setup
Follow Option 2 for developer setup.
Run the tests
Change the config.yaml file for mediawiki settings and changed port number
Create UpStart job
Enjoy
i have got a very strange problem,in my office,we have over 10 computers and we write contents on wordpress,so visual editor is a commonly used tool of wordpress for us,But today we have transferred our wordpress from one server to another and after that,everything is working fine,but the TinyMce,thats the visual editor buttons(like b,i,and others) are not working in few computers,Any help regarding this would be appreciated.
Please note:
WE HAVE FEW MORE BLOGS ON THE SAME SERVER AND THEY ARE WORKING FINE.
in console::
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.newsyaps.com/wp-includes/js/tinymce/wp-tinymce.php?c=1&ver=358-23224
Uncaught ReferenceError: tinyMCE is not defined wp-langs-en.js:1
Uncaught ReferenceError: tinymce is not defined post-new.php:2215
Its maybe late, but just an heads up for those have the same issues.
I also run into that problem once. When I check my cPanel error logs, it says:
[error] File "...public_html/wp-includes/js/tinymce/wp-tinymce.php" is writeable by group...
So what I did is to change the permission of the
wp-tinymce.php
file from 755 to 644
And those errors are gone :)
Cheers!
Neil
I am among those who tortured yourself with this [wp/tinymce/hosting] problem.
The purpose of [wp-includes/js/tinymce/wp-tinymce.php]-file is to load this scripts:
[wp-includes/js/tinymce/tinymce.min.js]
[wp-includes/js/tinymce/plugins/compat3x/plugin.min.js]
so if you have problem with the server/hosting
(for example, you do not have access to change directories/files rights or change .htaccess files)
You can always go the simple way and load the necessary tinymce files manually:
in your [wp-content/themes/{YOUR_THEME_DIRECTOORY}/function.php]-file add this:
function load_bloody_tinymce(){
wp_enqueue_script( 'bloody_tinymce_js_main', includes_url() . 'js/tinymce/tinymce.min.js' );
wp_enqueue_script( 'bloody_tinymce_js_plugin', includes_url() . 'js/tinymce/plugins/compat3x/plugin.min.js' );
}
add_action( 'admin_enqueue_scripts', 'load_bloody_tinymce' );
*Of course, this is not a solution to the access problem but if you are not a system administrator, it can help you.
I just finished to install Ingres on my server(only the client part, to connect to an existing ingres server), I just added the php_ingres module.
Now php recognize my module, so I tried to connect my self to several existing servers, but I always a
Unable to connect to database (Hostname here)
But with this I can't find what is wrong?? ingres error? Php driver? Credentials? ...?
What can I do to isolate these problem?
Most likely it's a user credentials issue. To see the actual error message use the following code:
$connection = ingres_connect(.....);
if (!is_resource($connection))
{
trigger_error(ingres_errno()." - ". ingres_error(),E_USER_ERROR);
}
You might also want to take a look at http://community.ingres.com/wiki/Ingres_with_Apache_on_Debian_Etch which outlines the setup steps for Ingres, PHP, Apache and Debian/Ubuntu.