Skip to content

Instantly share code, notes, and snippets.

View danielkmariam's full-sized avatar

Daniel Kidanemariam danielkmariam

  • London
View GitHub Profile
[2013-04-09T08:54:40+00:00] DEBUG: Processing chef-php-extra_composer[/mnt/Sites/bookshelf] on ubuntu-12.04-server-amd64
[2013-04-09T08:54:40+00:00] INFO: Processing chef-php-extra_composer[/mnt/Sites/bookshelf] action install_composer (symfony::dependencies line 3)
[2013-04-09T08:54:40+00:00] INFO: Processing chef-php-extra_composer[/mnt/Sites/bookshelf] action install_packages (symfony::dependencies line 3)
[2013-04-09T08:54:40+00:00] ERROR: chef-php-extra_composer[/mnt/Sites/bookshelf] (symfony::dependencies line 3) has had an error
[2013-04-09T08:54:40+00:00] ERROR: chef-php-extra_composer[/mnt/Sites/bookshelf] (/tmp/vagrant-chef-1/chef-solo-2/cookbooks/symfony/recipes/dependencies.rb:3:in `from_file') had an error:
chef-php-extra_composer[/mnt/Sites/bookshelf] (symfony::dependencies line 3) had an error: ArgumentError: Invalid only_if/not_if command: true (TrueClass)
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource/conditional.rb:56:in `initialize'
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef
Warning: include() [function.include]: Filename cannot be empty in /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php on line 241
#0 /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php(241): mageCoreErrorHandler(2, 'include() [fetchView('frontend/base/d...')
#3 /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#4 /mnt/project/Magento/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#5 /mnt/project/Magento/app/code/core/Mage/Core/Model/Layout.php(555): Mage_Core_Block_Abstract->toHtml()
#6 /mnt/project/Magento/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Mage_Core_Model_Layout->getOutput()
#7 /mnt/project/Magento/app/code/core/Mage/Cms/Helper/Page.php(137): Mage_Core_Controller_Varien_Action->renderLayout()
#8 /mnt/project/Magento/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'home')
#9 /mnt/project/Magento/app/
Notice: Use of undefined constant php - assumed 'php' in /mnt/project/Magento/app/design/frontend/sanctuary/uk/template/onepagecheckout/checkout/onepage/review/info.phtml on line 76
#0 /mnt/project/Magento/app/design/frontend/sanctuary/uk/template/onepagecheckout/checkout/onepage/review/info.phtml(76): mageCoreErrorHandler(8, 'Use of undefine...', '/mnt/project/Ma...', 76, Array)
#1 /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php(241): include('/mnt/project/Ma...')
#2 /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php(272): Mage_Core_Block_Template->fetchView('frontend/sanctu...')
#3 /mnt/project/Magento/app/code/core/Mage/Core/Block/Template.php(286): Mage_Core_Block_Template->renderView()
#4 /mnt/project/Magento/app/code/core/Mage/Core/Block/Abstract.php(863): Mage_Core_Block_Template->_toHtml()
#5 /mnt/project/Magento/app/code/core/Mage/Core/Block/Abstract.php(582): Mage_Core_Block_Abstract->toHtml()
#6 /mnt/project/Magento/app/code/core/Mage/Core/Block/Abstract.php(526): Mag
<?php
$installer = $this;
$installer->startSetup();
$storeId = Mage::getModel('core/store')->load('fudge_en_gb')->getId();
$installer->setConfigData('carriers/flatrate1/name', "UK Standard Delivery (3-5 days)", 'stores', $storeId);
$installer->setConfigData('carriers/flatrate2/name', "UK Express Delivery (Order by 2pm for next day)", 'stores', $storeId);
$installer->setConfigData('carriers/freeshipping/name', "UK Standard Delivery (3-5 days)", 'stores', $storeId);
<div>
<h3><?php echo $this->__('PayPal Access Customers') ?></h3>
<p><?php echo $this->__('Log in quickly, easily and safely with PayPal Access') ?></p>
<ul style="list-style: disc outside none;padding-left: 18px;">
<li><?php echo $this->__('Avoid the hassle of filling in yet another registration form') ?></li>
<li><?php echo $this->__('Just one password to remember') ?><input type="image" src="<?php echo $this->getPayPalButtonUrl() ?>" name="submit_with_popup" id="submit_with_popup" alt="Log in with PayPal" onclick="return payPalPopUp()" style="margin-left: 200px"/></li>
</ul>
<div class="paypal-or">
<center><h4>OR</h4></center>
</div>
<?php
/**
* @category Fishpig
* @package Fishpig_Wordpress
* @license http://fishpig.co.uk/license.txt
* @author Ben Tideswell <[email protected]>
*/
/**
* This code file is included when running a version of Magento that does not
[vagrant@localhost scripts]$ php syspro.php sales_order_status_import
PHP Fatal error: Cannot redeclare class Mage_Core_Model_Resource_Db_Abstract in /mnt/project/Magento/app/code/community/Fishpig/Wordpress/Helper/LegacyHacks.php on line 22
PHP Stack trace:
PHP 1. {main}() /mnt/project/Magento/app/code/local/Cussons/Syspro/scripts/syspro.php:0
PHP 2. Cussons_Syspro_Shell_Runner->run() /mnt/project/Magento/app/code/local/Cussons/Syspro/scripts/syspro.php:7
PHP 3. Cussons_Syspro_Shell_Runner->_runInterface() /mnt/project/Magento/app/code/local/Cussons/Syspro/Shell/Runner.php:44
PHP 4. Cussons_Syspro_Model_Interface_Abstract->run() /mnt/project/Magento/app/code/local/Cussons/Syspro/Shell/Runner.php:50
PHP 5. Cussons_Syspro_Model_Interface_ImportAbstract->processStore() /mnt/project/Magento/app/code/local/Cussons/Syspro/Model/Interface/Abstract.php:40
PHP 6. Cussons_Syspro_Model_Interface_SalesOrderStatusImport->importItems() /mnt/project/Magento/app/code/local/Cussons/Syspro/Model/Interface/ImportA
<?php $authors = Mage::getResourceModel('wordpress/user_collection') ?>
<?php if (count($authors) > 0): ?>
<ul>
<?php foreach($authors as $author): ?>
<li>
<a href="<?php echo $author->getUrl() ?>"><?php echo $author->getDisplayName() ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
public function setPartialSelect($type='category', $postTag='post_tag')
{
$cataoryPosts = $this->getCatagoryPosts($type, $postTag);
echo get_class($catagoryPosts);
$tagPosts = $this->getTaggedPosts($type, $postTag);
$this->getSelect()->reset()->union(array(
$cataoryPosts,
/**
* Returns the collection of posts
*
* @param array $categorySlugs Slug value of categories
* @param array $tagSlugs Slug value of tags
*
* @return Fishpig_Wordpress_Model_Mysql4_Post_Collection
*/
public function getPosts($categorySlugs = array(), $tagSlugs = array(), $filter=false)
{