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
Related
I have developed a website using PhalconPHP. the website works perfectly fine on my local computer with the following specifications:
PHP Version 7.0.22
Apache/2.4.18
PhalconPHP 3.3.1
and also on my previous Server (with DirectAdmin):
PHP Version 5.6.26
Apache 2
PhalconPHP 3.0.1
But recently I have migrated to a new VPS. with cPanel:
CENTOS 7.4 vmware [server]
cPanel v68.0.30
PHP Version 5.6.34 (multiple versions available, this one selected by myself)
PhalconPHP 3.2.2
On the new VPS my website always gives me Error 500.
in my Apache Error logs file: [cgi:error] End of script output before headers: ea-php70, referer: http://mywebsitedomain.net
What I suspect is the new database System. the new one is not mySql. it is MariaDB 10.1. I tried to downgrade to MySQL 5.6 but the WHM says there is no way I could downgrade to lower versions.
this is my config file:
[database]
adapter = Mysql
host = localhost
username = root
password = XXXXXXXXXXXX
dbname = XXXXXXXXXXXX
charset = utf8
and my Services.php:
protected function initDb()
{
$config = $this->get('config')->get('database')->toArray();
$dbClass = 'Phalcon\Db\Adapter\Pdo\\' . $config['adapter'];
unset($config['adapter']);
return new $dbClass($config);
}
And in my controllers...
for example this code throws Error 500:
$this->view->files = Patients::query()->orderBy("id ASC")->execute();
but changing id to fname fixes the problem:
$this->view->files = Patients::query()->orderBy("fname ASC")->execute();
or even the following code throws error 500:
$user = Users::findFirst(array(
"conditions" => "id = :id:",
"bind" => array("id" => $this->session->get("userID"))
));
is there a problem with the compatibility of PhalconPHP and MariaDB?
MariaDB was built to be mostly compatible with MySQL clients, it's unlikely to be the reason for your problems. If you're still concerned, you can switch from MariaDB to MySQL (and vice versa) by dumping (exporting) your tables, switching over, and importing them again.
More likely, the error line you're showing indicates that your new server is actually running PHP7 (ea-php70) and not PHP5.6 as you thought you selected.
The error End of script output before headers means the CGI script (in this case PHP7 itself) did not produce any HTTP headers before terminating. I suspect that your version of PhalconPHP is incompatible with PHP7 and therefore just crashes immediately.
If cPanel doesn't let you properly configure your infrastructure you likely have no other option but to drop it and set up your stack manually. But since you probably paid for cPanel, you could try opening a support ticket with them first: https://cpanel.com/support/
Most probably old phalconPHP version it does not support latest php 7.x version i guess. as i remember I have read similiar problem in another blog question.
I cannot get gulp-connect-php to work. I tried about everything SO and the www has to offer. The message I get is as following.
PHP server not started. Retrying...
Here's the last code I've tried.
gulp.task('connect', function() {
connect.server({
hostname: 'localhost',
bin: 'C:/php/php.exe',
ini: 'C:/php/php.ini',
port: 8000,
base: ''
});
});
Now I've tried using it with browser-sync and the express server. With those I can get .html-files working on localhost. But whenever I set a .php-file to load I read a 404 or if I put in the url directly I download the file.
I've tried on Windows 10 and on El Capitan (these particular lines of code adjusted of course for MacOS). I checked that PHP is installed and added to the PATH. Not to mention that I've tried various different setups in my gulpfile.js.
EDIT: I installed XAMPP. PHP works fine there. The very script I try loading with gulp works fine.
What version of gulp-connect-php are you using? I have use this for many projects and it worked great until recently when I updated the module. I deleted the module and installed the last version that worked for me 0.0.5, and it's working as expected. You could try the same and see if it works- delete the folder and use:
npm install gulp-connect-php#0.0.5
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;
I am trying to get mediawiki hosted via intranet on WindowsServer2012r2. I have installed mediawiki, php7, and mysql 5.x via Web platform installer. Once all were installed and setup I was able to connect both locally and via networked computers to mediawiki. I noticed however that the CSS for mediaWiki was not being executed. I have gone through the steps provided # Styles not displaying and Manual:Errors and symptoms but could not resolve the issue. The browser console shows the below issue.
Running load.php in the browser returns this error:
checkUrlExtension() ) { return; } // Respond to resource loading request. // foo()->bar() syntax is not supported in PHP4, and this file needs to *parse* in PHP4. $configFactory = ConfigFactory::getDefaultInstance(); $resourceLoader = new ResourceLoader( $configFactory->makeConfig( 'main' ), LoggerFactory::getInstance( 'resourceloader' ) ); $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) ); Profiler::instance()->setTemplated( true ); $mediawiki = new MediaWiki(); $mediawiki->doPostOutputShutdown( 'fast' );
Just to confirm: I updated the .htaccess file in the mywiki/img folder. Any help greatly appreciated.
I'm trying to setup Dokuwiki with LDAP (Version3) on a Synology NAS.
DokuWiki version is Release 2014-09-29b "Hrun"
Synology version is DSM 5.1-5004 Update 2
Authentication settings
authtype: authldap
Plugin Authldap (bundled plugin) settings
$conf['title'] = '.... wiki';
$conf['license'] = '0';
$conf['useacl'] = 1;
$conf['authtype'] = 'authldap';
$conf['superuser'] = '#wiki_admin';
$conf['plugin']['authldap']['server'] = 'ldap://example.com:389';
$conf['plugin']['authldap']['usertree'] = 'cn=users,dc=example,dc=com';
$conf['plugin']['authldap']['grouptree'] = 'cn=groups,dc=example,dc=com';
$conf['plugin']['authldap']['userfilter'] = '(&(uid=%{user})(objectClass=posixAccount))';
$conf['plugin']['authldap']['groupfilter'] = '(&(objectClass=posixGroup)(|(gidNumber=%{gid}) (memberUID=%{user})))';
$conf['plugin']['authldap']['version'] = 3;
$conf['plugin']['authldap']['debug'] = 1;
local.php copied to local.protected.php
I'm always getting following error messages
LDAP err: PHP LDAP extension not found. [auth.php:34]
User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.
althougt according to [Dokuwiki with LDAP error: User authentication is temporarily unavailable
the plugin seems to be installed (bundled) and enabled.
I cannot find any authldap.php in the whole wiki directory.
The \php folder as mentioned in the answer to the above link is not in the DokuWiki tree.
I installed it on a second NAS with no DokuWiki project contents with the same results.
What's going wrong here?
PHP LDAP extension not found Your PHP installation is missing the needed LDAP extension. That is completely unrelated to DokuWiki.
The LDAP-Extension is often distributed in a different package (eg. php5-ldap) or it might already be installed but needs to be enabled in your php.ini.
This post suggests it can simply enabled in your NAS configuration interface.