Skip to content

Instantly share code, notes, and snippets.

Avatar

Ankita Kumari ankita-kumari

View GitHub Profile
@ankita-kumari
ankita-kumari / proxy-conf-log
Created Mar 7, 2015
Succesful build after installing proxy plugin for vagrant
View proxy-conf-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'trusty-cloud'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: vagrant_default_1425732478995_39256
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
@ankita-kumari
ankita-kumari / vagrant-provision-error-log
Created Mar 7, 2015
Errors due to proxy issues after a vagrant provision
View vagrant-provision-error-log
==> default: Running provisioner: lsb_check...
==> default: Running provisioner: puppet...
==> default: Running Puppet with site.pp...
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/facter_dot_d.rb
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/pe_version.rb
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/puppet_vardir.rb
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/root_home.rb
==> default: Notice: Compiled catalog for mediawiki-vagrant.dev in environment production in 5.92 seconds
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/facter_dot_d.rb
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/pe_version.rb
@ankita-kumari
ankita-kumari / vagrant-reload-error-log
Created Mar 9, 2015
errors thrown on vagrant reload
View vagrant-reload-error-log
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":
conflicting exports for /Users/Vhagar/Codes/MediaWiki/vagrant, 10.11.12.13
exports:8: export option conflict for /Users/Vhagar/Codes/MediaWiki/vagrant
@ankita-kumari
ankita-kumari / visualeditor-error.log
Created Mar 10, 2015
extract from mediawiki-exception.log to debug why visualeditor mode is not working
View visualeditor-error.log
2015-03-10 21:14:19 mediawiki-vagrant wiki: [f7cbd258] /w/load.php?debug=false&lang=en&modules=ext.uls.nojs%7Cext.visualEditor.viewPageTarget.noscript%7Cmediawiki.action.edit.styles%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.interface%7Cmediawiki.special%7Cmediawiki.ui.button%7Cskins.vector.styles&only=styles&skin=vector&* MWException from line 897 of /vagrant/mediawiki/includes/resourceloader/ResourceLoaderFileModule.php: ResourceLoaderFileModule::readStyleFile: style file not found: "/vagrant/mediawiki/modules/ve-mw/init/styles/ve.init.mw.ViewPageTarget.noscript.css"
#0 /vagrant/mediawiki/includes/resourceloader/ResourceLoaderFileModule.php(872): ResourceLoaderFileModule->readStyleFile()
#1 /vagrant/mediawiki/includes/resourceloader/ResourceLoaderFileModule.php(407): ResourceLoaderFileModule->readStyleFiles()
#2 /vagrant/mediawiki/includes/resourceloader/ResourceLoader.php(925): ResourceLoaderFileModule->getStyles()
#3 /vagrant/mediawiki/includes/resourceloader/ResourceLoader.php(617): R
View vagrant-git-update-error-log
* GIT PULL failed in /vagrant/mediawiki for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/Cite for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/CodeEditor for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/ParserFunctions for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/Parsoid for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/Scribunto for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/SyntaxHighlight_GeSHi for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/TemplateData for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/extensions/WikiEditor for branch 'master'
* GIT PULL failed in /vagrant/mediawiki/skins/Vector for branch 'master'
@ankita-kumari
ankita-kumari / ResourceLoaderFileModule-snippet
Created Mar 10, 2015
line 897 throws the error : The variable $localPath is wrong as that is what makes it look for the required file in wrong location.
View ResourceLoaderFileModule-snippet
protected function readStyleFile( $path, $flip, $context = null ) {
$localPath = $this->getLocalPath( $path );
$remotePath = $this->getRemotePath( $path );
if ( !file_exists( $localPath ) ) {
$msg = __METHOD__ . ": style file not found: \"$localPath\"";
wfDebugLog( 'resourceloader', $msg );
throw new MWException( $msg );
}
@ankita-kumari
ankita-kumari / LocalSettings-snippets
Created Mar 11, 2015
changes in $IP/LocalSettings.php
View LocalSettings-snippets
# To fix : Error sending mail: Unknown error in PHP's mail() function Mediawiki
# link : https://www.mediawiki.org/wiki/Manual:$wgSMTP#Error_sending_mail:_Unknown_error_in_PHP.27s_mail.28.29_function_Mediawiki
$wgSMTP = array(
'host' => 'ssl://smtp.gmail.com',
'IDHost' => 'gmail.com',
'port' => 465,
'username' => 'kumariankita002@gmail.com',
'password' => 'fatpanda002',
'auth' => true
@ankita-kumari
ankita-kumari / git-debug-inside-vagrant
Created Mar 11, 2015
<RoanKattouw> : trying to fdebug git failures
View git-debug-inside-vagrant
vagrant@mediawiki-vagrant:/vagrant/mediawiki$ ls -ld /vagrant/mediawiki{,/extensions/VisualEditor}/.git{,/FETCH_HEAD}
ls: cannot access /vagrant/mediawiki/.git/FETCH_HEAD: No such file or directory
drwxrwxr-x 16 root dialout 544 Mar 10 21:53 /vagrant/mediawiki/extensions/VisualEditor/.git
-rw-r--r-- 1 501 dialout 1439 Mar 10 21:53 /vagrant/mediawiki/extensions/VisualEditor/.git/FETCH_HEAD
drwxr-xr-x 13 root dialout 442 Jan 28 22:42 /vagrant/mediawiki/.git
@ankita-kumari
ankita-kumari / vagrant-config-nfs_share-error-log
Created Mar 11, 2015
vagrant config nfs_shares no && vagrant provision
View vagrant-config-nfs_share-error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant/mediawiki $ vagrant config nfs_shares no && vagrant provision
==> default: Configuring proxy for Apt...
==> default: Configuring proxy environment variables...
==> default: Configuring proxy for PEAR...
==> default: Running provisioner: lsb_check...
==> default: Configuring proxy for PEAR...
==> default: Running provisioner: puppet...
==> default: Running Puppet with site.pp...
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/facter_dot_d.rb
==> default: Info: Loading facts in /tmp/vagrant-puppet/modules-19dab1df36e1184ae67de6b19c862a9d/stdlib/lib/facter/pe_version.rb
@ankita-kumari
ankita-kumari / error-log
Created Mar 11, 2015
error log for : vagrant destroy && vagrant config nfs_shares no && vagrant up
View error-log
ankita @ Vhagar ~/Codes/MediaWiki/vagrant $ vagrant destroy && vagrant config nfs_shares no && vagrant up
default: Are you sure you want to destroy the 'default' VM? [y/N] y
==> default: Forcing shutdown of VM...
==> default: Removing puppet created files...
==> default: Destroying VM and associated drives...
==> default: Running cleanup tasks for 'lsb_check' provisioner...
==> default: Running cleanup tasks for 'puppet' provisioner...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'trusty-cloud'...
==> default: Matching MAC address for NAT networking...
You can’t perform that action at this time.