Skip to content

Instantly share code, notes, and snippets.

View rfay's full-sized avatar

Randy Fay rfay

View GitHub Profile
DRUPAL_ROOT is /home/rfay/workspace/commerce.
Bootstrapping to DRUPAL_BOOTSTRAP_SESSION
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_SESSION
Bootstrapping to DRUPAL_BOOTSTRAP_FULL
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_FULL
Flushing all caches
There were 660 files in the registry before and 660 files now.
If you don't see any crazy fatal errors, your registry has been rebuilt.
<?php
/**
* @file
* Provide Drush integration for release building and dependency building.
*/
/**
* Implements hook_drush_command().
*/
function registry_rebuild_drush_command() {
Could not login with user ID #0. This is typically caused by [error]
importing a MySQL database dump from a faulty tool which re-numbered
the anonymous user ID in the users table. See
http://drupal.org/node/1029506 for help recovering from this
situation.
Notice: Undefined index: uri_scheme in file_field_widget_uri() (line 583 of /home/rfay/workspace/commerce/modules/file/file.field.inc).
Notice: Undefined index: uri_scheme in file_field_widget_uri() (line 583 of /home/rfay/workspace/commerce/modules/file/file.field.inc).
Notice: Undefined index: uri_scheme in _commerce_file_field_widget_process() (line 288 of /home/rfay/workspace/commerce/sites/all/modules/commerce_file/includes/commerce_file.field.inc).
You cannot upload a file. Commerce File requires a private file scheme. Visit admin/config/media/file-system to set your private file path. Optionally, a private scheme other than Drupal's may be implemented.
There are private file schemes available on your system. Visit the field settings to select a private scheme allowed for this field.
Notice: Undefined index: uri_scheme in _commerce_file_field_widget_process() (line 288 of /home/rfay/workspace/commerce/sites/all/modules/commerce_file/includes/commerce_file.field.inc).
You cann
Error message
EntityMetadataWrapperException: Unable to load the commerce_order with the id 4792. in EntityDrupalWrapper->value() (line 697 of /home/rfay/workspace/commerce/sites/all/modules/entity/includes/entity.wrapper.inc). Backtrace:
EntityDrupalWrapper->value() entity.wrapper.inc:647
EntityDrupalWrapper->spotBundleInfo(1) entity.wrapper.inc:633
EntityDrupalWrapper->spotInfo() entity.wrapper.inc:323
EntityStructureWrapper->getPropertyInfo('owner') entity.wrapper.inc:385
EntityStructureWrapper->get('owner') entity.wrapper.inc:406
EntityStructureWrapper->__get('owner') commerce_file.entities.inc:895
commerce_file_license_revoke_line_item(Object) commerce_file.entities.inc:878
<?php
/**
* @file
* Commerce File License migration from uc_file_s3.
*/
/**
* TIP: Files can be migrated directly by themselves, by using the MigrateDestinationFile
* class. This will copy the files themselves from the source, and set up the
@rfay
rfay / gist:1230314
Created September 20, 2011 21:00
Add to cart fule
function commerce_installments_rules_action_info() {
$actions['commerce_installments_action_add_to_cart'] = array(
'label' => t('Add a product to the cart'),
'group' => t('Commerce Installments'),
'parameter' => array(
'product' => array(
'type' => 'commerce_product',
'label' => t('Product'),
),
'line_item_type' => array(
/usr/bin/php ./scripts/run-tests.sh --concurrency 4 --php /usr/bin/php --url 'http://scratchtestbot-mysql.osuosl.test/checkout' --file sites/default/modules/ubercart/uc_cart/tests/uc_cart.test,sites/default/modules/ubercart/uc_cart_links/tests/uc_cart_links.test,sites/default/modules/ubercart/uc_attribute/tests/uc_attribute.test,sites/default/modules/ubercart/uc_product/tests/uc_product.test,sites/default/modules/ubercart/uc_order/tests/uc_order.test,sites/default/modules/ubercart/uc_store/tests/uc_store.test
Drupal test run
---------------
Tests to be run:
- Attribute API (UbercartAttributeTestCase)
- Cart and checkout (UbercartCartCheckoutTestCase)
- Cart Links (UbercartCartLinksTestCase)
- Cart settings (UbercartCartSettingsTestCase)
@rfay
rfay / gist:1398086
Created November 27, 2011 20:20
My nginx rewrite
server {
listen 80;
#server_name ~^($<domain>.*)\.l\/.*$;
server_name ~^(www\.)?(?<domain>.+)\.(l|bigsony|b)$;
#gzip off;
root /home/rfay/workspace/$domain;
fastcgi_read_timeout 1200;
fastcgi_send_timeout 1200;
client_max_body_size 128m;
@rfay
rfay / user_register_alter_example.info
Created December 7, 2011 10:55
Form alter the user form with AHAH
name = User register alter example
description = Demonstrates how to alter the registration form with an AHAH element.
core = 6.x