Skip to content

Instantly share code, notes, and snippets.

View serundeputy's full-sized avatar

Geoff St. Pierre serundeputy

View GitHub Profile
<h1>Additional uncaught exception thrown while handling exception.</h1><h2>Original</h2><p>PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table &amp;#039;healthypeople_production.blocked_ips&amp;#039; doesn&amp;#039;t exist: SELECT 1 FROM {blocked_ips} WHERE ip = :ip; Array
(
[:ip] =&amp;gt; 127.0.0.1
)
in drupal_is_denied() (line 1933 of /var/app/www/html/releases/20150202193943/includes/bootstrap.inc).</p><h2>Additional</h2><p>PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table &amp;#039;healthypeople_production.system&amp;#039; doesn&amp;#039;t exist: SELECT * FROM {system} WHERE type = &amp;#039;theme&amp;#039; OR (type = &amp;#039;module&amp;#039; AND status = 1) ORDER BY weight ASC, name ASC; Array
(
)
in system_list() (line 165 of /var/app/www/html/releases/20150202193943/includes/module.inc).</p><hr />Drush command terminated abnormally due to an unrecoverable error.
@serundeputy
serundeputy / BackdropBoot.php
Created May 17, 2015 13:23
drush BackdropBoot class.
<?php
namespace Drush\Boot;
class BackdropBoot extends DrupalBoot {
function valid_root($path) {
if (!empty($path) && is_dir($path) && file_exists($path . '/index.php')) {
// Backdrop root.
// We check for the presence of 'core/modules/field/field.module' to differentiate this from a D6 site
@serundeputy
serundeputy / backdrop.druhs.inc
Created May 18, 2015 13:46
backdrop.drush.inc
<?php
function backdrop_bootstrap_candidates() {
return 'Drush\Boot\BackdropBoot';
}
apachectl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 staging.backdrop-cmi.commonmediainc.com (/etc/apache2/sites-enabled/000-backdrop-cmi.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex watchdog-callback: using_defaults
<?php
function backdrop_bootstrap_candidates() {
return 'Drush\Boot\BackdropBoot';
}
include __DIR__ . '/backdrop.inc';
@serundeputy
serundeputy / site-deploy.sh
Created November 5, 2015 16:52
If you use features and pantheon
git push origin master && terminus --site={site_name} drush cc all &&
terminus --site={site_name} drush fra -y &&
terminus --site={site_name} drush cc all &&
terminus --site={site_name} drush fl
@serundeputy
serundeputy / json_api.info
Created December 26, 2015 17:10
backdrop cms info file
name = "JSON API"
description = "Serve backdrop content as JSON Objects."
project = json_api
version = 1.x-1.0.0
backdrop = 1.x
package = API
type = module
@serundeputy
serundeputy / download_backdrop.drush.inc
Created December 1, 2016 01:21
custom drush command
<?php
/**
* @file
* Download Backdrop CMS with drush.
*/
/**
* Implements hook_drush_command().
*/
function backdrop_download_backdrop_drush_command() {
@serundeputy
serundeputy / 1.6.0.md
Created January 5, 2017 22:24
prelim release notes so far: 5 Jan 2017 pending 1.6.0

Changes since 1.5.2

  • #2369: CSS tweaks to mobile menu toggle. Doc fixes.
  • #2369: Fix menu toggle scripts.
  • #2369: Updated CSS and JS for menu toggle to match smartmenus recommendation.
  • #2369: Added a hamburger menu toggle to responsive drop-down menus.
  • #1689: Fixing view mode tests. Adding CSRF token to view mode enable links.
  • #315: Move entity view mode listings to Manage displays.
  • #315: Add the "Entity view mode" module to core
  • #2375: Add tests for new file management interface.
diff --git a/bakery.install b/bakery.install
index 8207f26..16610a3 100644
--- a/bakery.install
+++ b/bakery.install
@@ -52,4 +52,13 @@ function bakery_uninstall() {
variable_del('bakery_help_text');
variable_del('bakery_freshness');
variable_del('bakery_cookie_extension');
+ variable_del('bakery_subsite_login');
+}