I have been getting ERROR: Site [such] does not exist! when running
sudo a2dissite "some virtual host"
You probably updated your server
installation and one of the updates included the upgrade of Apache
to version 2.4.x
I have been getting ERROR: Site [such] does not exist! when running
sudo a2dissite "some virtual host"
You probably updated your server
installation and one of the updates included the upgrade of Apache
to version 2.4.x
Run this in terminal
drush php-eval "drush_print_r(db_select('system', 's') ->fields('s', array('weight')) ->condition('name', 'some_module', '=') ->execute() ->fetchField())";
and then when you get the required modules weight, change it with
Caching per block can be quite useful, depending on how much blocks you have in page, but odds are you are going to have some in footer and header.
Just go and run this into devel/php
db_query("update elysia_cron set running = 0 where name = 'search_cron'");
where in this case I am unstucking cron job for search indexing.
If you want to wipe out current search index, because you maybe made custom search module to quickly wipe out search tables run this into devel/php and you are starting from scratch
If you need to check something quickly with devel module. You can use db_query and put any sql command in it. Like
$query = db_query("SELECT * FROM `block` WHERE `delta` LIKE 'main_menu' ORDER BY `theme` DESC"); foreach($query as $result) { dpm($result); }
and dpm results to see what are the values.
Had a task of copying all the settings from one theme to the other, bock placings and configuration to do that this code snnipet run with drush solved it
**FIRST**
drush sql-query "DELETE FROM block WHERE theme = 'some_theme_2'"
**SECOND**
Run in drush list of views preprocess functions
drush --root=/Applications/MAMP/htdocs/site-epic php-eval "var_dump(array_keys(views_theme()));"
With devel/php you can go to some site and quickly found out value of some variable in DB that might concern you. So to do that you can go and write
Nice little code that will check your site_deployment.install file and run drush dbup to update your site with deployment changes.