<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>drupal &#8211; Stacie Arellano</title>
	<atom:link href="https://www.staciearellano.com/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.staciearellano.com</link>
	<description>Artist, Author, Web Maven</description>
	<lastBuildDate>Tue, 03 Dec 2019 00:45:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.staciearellano.com/wp-content/uploads/2019/09/cropped-bright-hair2019-32x32.jpg</url>
	<title>drupal &#8211; Stacie Arellano</title>
	<link>https://www.staciearellano.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">47314203</site>	<item>
		<title>Drush &#8211; Segfault fix</title>
		<link>https://www.staciearellano.com/drush-segfault-fix/</link>
					<comments>https://www.staciearellano.com/drush-segfault-fix/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Tue, 25 Jun 2019 18:07:00 +0000</pubDate>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[drush]]></category>
		<category><![CDATA[grunt]]></category>
		<category><![CDATA[nodejs]]></category>
		<guid isPermaLink="false">https://www.staciearellano.com/?p=1478</guid>

					<description><![CDATA[After using Grunt, I found running drush on things started crashing my PHP with SEGFAULTS all over the place. ugh! What was going on? How do I fix it?]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" style="text-align:center">TLDR: <strong>Delete the node_modules folder!</strong></p>



<p class="wp-block-paragraph">We&#8217;ve been working on standardizing our local environments here at work, and have recently started using <a href="https://gruntjs.com/">Grunt</a> and <a href="https://sass-lang.com/">SASS</a> and some image processing as part of our local Drupal development. </p>



<p class="wp-block-paragraph">Recently I added a Drush command for us to use to easily get Grunt running from any folder in the docroot. It works great! just a little <code><code><code>drush grr</code></code></code> and off we go! </p>



<p class="wp-block-paragraph">It&#8217;s a pretty simple, and builds off a lot of work I did making a drush command for us to engage visual regression with BackstopJS. (checks for dependencies, grabs git branch name, passes variable flags into JS) I&#8217;ll make a different post about that sometime. </p>



<p class="wp-block-paragraph">Anyway, since all the grunt files live in the theme folder, the most important part was telling drush where that was, so it we could run npm install, and get everything running locally, including <a href="https://github.com/gruntjs/grunt-contrib-watch">live reload</a>, which is awesome. </p>



<p class="wp-block-paragraph">We&#8217;re still using Drupal 7 and by using :</p>



<pre class="wp-block-preformatted"><code>$path_to_grunt = <a href="https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_get_path/7.x">drupal_get_path</a>('theme', 'mc_main');</code></pre>



<p class="wp-block-paragraph"> Now, we can tell drush where to run grunt for us! Of  course, we did need to make sure to change the working directory, so the command would actually run there, </p>



<pre class="wp-block-preformatted">chdir($path_to_grunt);</pre>



<p class="wp-block-paragraph">So then we just run`<code><code>npm install</code></code> , with a few checks,  and we&#8217;re good to follow that up with :</p>



<pre class="wp-block-preformatted"><code><code>grunt --color</code></code></pre>



<h3 class="wp-block-heading">Hooray! right?! </h3>



<div class="wp-block-ugb-divider ugb-divider"><hr align="center" style="background-color:#dddddd;width:50%;height:3px"/></div>



<h3 class="wp-block-heading">Ok, but then I found running drush on things started crashing my PHP with SEGFAULTS all over the place. ugh!</h3>



<p class="wp-block-paragraph"> What was going on? How do I fix it, I just wanted to test our latest release and I&#8217;m looking at error logs and &#8230;</p>



<p class="wp-block-paragraph">Ok, after some research, and digging through my bash/zshrc files, and getting some strange errors from the command line after trying to <code>drush updb</code> like :</p>



<pre class="wp-block-preformatted">sh: line 1: 36818 Segmentation fault: 11  /Applications/DevDesktop/php5_5_x64/bin/php /Applications/DevDesktop/tools/vendor/drush/drush/drush.php --php=/Applications/DevDesktop/php5_5_x64/bin/php --backend=2 --root=/Users/me/sites/devdesktop/mcmain-dev/docroot --uri=http://default pm-updatestatus 2&gt;&amp;1
     pm-updatestatus failed.</pre>



<p class="wp-block-paragraph">I mean, what? Why is drush trying to even use php 5_5 at all? where is that setting? (<em>I still don&#8217;t know.</em>)</p>



<p class="wp-block-paragraph">I finally ran across this article: <a href="https://arvindandrion.com/articles/drupals-drush-segmentation-fault-11/">Drupal&#8217;s Drush Segmentation fault:11</a></p>



<p class="wp-block-paragraph">Arvind explains that when npm install runs on your package.json file and creates the node_modules folder in your theme folder&#8230; </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>Drupal freaks out because many node modules include their own .info files.  <em>Drupal is looking for only one&nbsp;.info file per theme to exist.</em></p></blockquote>



<p class="wp-block-paragraph">He provides a solution to add a postinstall line to your package.json to remove all the additional .info files inside the node_modules folder. </p>



<p class="wp-block-paragraph">but! short term, super simple solution for anyone who is experiencing drush weirdness after running an install on a package.json</p>



<div class="wp-block-ugb-notification ugb-notification ugb-notification--type-info" style="background-color:#eeeeee;color:#313131;border-radius:20px"><p style="color:#313131"><strong>Delete the node_modules folder!</strong></p></div>



<p class="wp-block-paragraph">At least while you&#8217;re trying to run other drush commands, feel free to get your grunt on when you&#8217;re done. </p>



<p class="wp-block-paragraph">&#8212;update Dec 2, 2019</p>



<p class="wp-block-paragraph">So, I ran into another strange segfault, this time: </p>



<pre class="wp-block-preformatted">/Applications/DevDesktop/tools/drush: line 11: 77368 Segmentation fault: 11  "/Applications/DevDesktop/tools/vendor/drush/drush/drush" "$@"</pre>



<p class="wp-block-paragraph">Which again, seemed very strange. But, happily, the same solution (removing the node_modules folder from the theme I was testing) still works! </p>



<p class="wp-block-paragraph">It doesn&#8217;t seem to be an issue with my teammates, but I&#8217;m leaving this little update to remind me, and maybe you that sometimes the solution is not what the error is complaining about. </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/drush-segfault-fix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1478</post-id>	</item>
		<item>
		<title>Drupal tips (2)</title>
		<link>https://www.staciearellano.com/drupal-tips-2/</link>
					<comments>https://www.staciearellano.com/drupal-tips-2/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Mon, 05 Feb 2018 20:45:50 +0000</pubDate>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=118</guid>

					<description><![CDATA[ #3 Why are blocks being deactivated on my site? Why is my copy site acting strangely? If you copy an entire site in order to&#8230;]]></description>
										<content:encoded><![CDATA[<p><strong> #3 Why are blocks being deactivated on my site? Why is my copy site acting strangely?</strong></p>
<p>If you copy an entire site in order to split apart some of its content, make sure you investigate the cache folder and <strong>remove any remnant of the previous site cache</strong>. There may be a folder for the previous site.</p>
<p>Otherwise, for a little period of time, you&#8217;ll be getting some strange behavior that makes it seem like the old site is still hanging around on the new install.</p>
<p>Even if that description didn&#8217;t make sense, if you are having strange theme behaviors that flushing the cache, rebuilding permissions and/or a restart don&#8217;t seemed to have fixed&#8230; <strong>check out the cache folder on your server. </strong></p>
<p>Additionally, if you a splitting a site into two, and intend to use both sites on the same machine, and in the same database instance(ie, two databases on the same machine), make sure you check that the copy site isn&#8217;t pointing to any shared folder on the server, ie your cache folder.<strong> If somehow, both sites are using the same cache folder, changes on one site may affect the other site.</strong></p>
<p>You are better off changing your site into a multi-site instance, for Drupal 7, because that should mitigate most of these problems. Multi-sites use different cache/files directories unless explicitly sharing modules/themes/frameworks out of the sites/all folder.</p>
<p><strong>#4</strong> <strong>git loses track/won&#8217;t overwrite settings.php file. (combo drupal + git tip)</strong></p>
<pre class="codeblock language-php"><code class=" language-php">error<span class="token punctuation">:</span> unable to unlink old <span class="token string">'sites/default/settings.php'</span> <span class="token punctuation">(</span>Permission denied<span class="token punctuation">)</span>
fatal<span class="token punctuation">:</span> Could not reset index file to revision <span class="token string">'origin'</span><span class="token punctuation">.</span></code></pre>
<p>Repairing/resetting my mac home directory permissions seemed to fix things. ( <a title="Apple walks you thru resetting home perms." href="https://support.apple.com/en-us/HT203538" target="_blank" rel="nofollow noopener">Resolve issues caused by changing the permissions of items in your home folder</a> )</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/drupal-tips-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">118</post-id>	</item>
		<item>
		<title>DrupalCon 2016 &#8211; New Orleans</title>
		<link>https://www.staciearellano.com/drupalcon-2016-new-orleans/</link>
					<comments>https://www.staciearellano.com/drupalcon-2016-new-orleans/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Thu, 02 Jun 2016 21:14:33 +0000</pubDate>
				<category><![CDATA[Convention]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[convention]]></category>
		<category><![CDATA[devops]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[new orleans]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=868</guid>

					<description><![CDATA[Just returned from my first Drupalcon ever. It was held in fabulous New Orleans where the temps were in the 70s and 80s. Then I came&#8230;]]></description>
										<content:encoded><![CDATA[<p>Just returned from my first <a href="https://events.drupal.org/neworleans2016" target="_blank" rel="noopener">Drupalcon</a> ever. It was held in fabulous New Orleans where the temps were in the 70s and 80s. Then I came back to Wisconsin where the temps are 40s and 50s, brrr.</p>
<p>Here is a quick run down on the tech I learned about, I have so much to dig into and learn!</p>
<h3>Drupal 8:</h3>
<p><span style="text-decoration: underline;">Quick rundown for Drupal 8 -Kickstart Video</span></p>
<p><a href="https://www.youtube.com/watch?v=uVHLPuvDFQc">Drupal 8 Kickstart Session Video</a></p>
<ul>
<li><a href="https://symfony.com/" target="_blank" rel="noopener">Symfony</a> &#8211; Drupal 8 is now using the Sf PHP library.
<ul>
<li>Twig Templating &#8211; <a href="http://twig.sensiolabs.org/doc/templates.html">Designers (Templates)</a> &#8211; <a href="http://twig.sensiolabs.org/doc/api.html">Developers (api)</a>
<ul>
<li><a href="https://github.com/Anomareh/PHP-Twig.tmbundle">Sublime Twig Text Bundle </a></li>
</ul>
</li>
</ul>
</li>
<li><a href="https://getcomposer.org/" target="_blank" rel="noopener">Composer</a> &#8211; a Package Manager for PHP, uses JSON.
<ul>
<li>helps find what you need and installs it, and  any missing dependencies.</li>
<li>can download and keep current all software with 2 commands.</li>
<li><a href="https://www.drupal.org/node/2404989" target="_blank" rel="noopener">Using Composer to install Drupal/modules.</a></li>
</ul>
</li>
<li><a href="http://www.drush.org/en/master/" target="_blank" rel="noopener">Drus</a>h
<ul>
<li>Industry Standard best practice CLI tool</li>
<li>Does things 3x-10x faster than thru working through admin web.</li>
<li><a href="http://docs.drush.org/en/master/install/" target="_blank" rel="noopener">Requires PHP 5.5+ for current version 9, 5.3.0 for Drush 7</a></li>
</ul>
</li>
<li><a href="https://drupalconsole.com/" target="_blank" rel="noopener">Drupal Console</a>
<ul>
<li>New command line interface tool for Drupal</li>
<li>Creates boilerplate files for modules/themes</li>
<li>install into every website or globally.</li>
<li>&#8216;make a blank module scaffold, do some admin tasks&#8217;</li>
</ul>
</li>
<li><a href="http://yaml.org/" target="_blank" rel="noopener">YAML</a>
<ul>
<li>stands for &#8216;YAML Aint Markup Language&#8217;</li>
<li>new drupal config file format &#8211; for default settings</li>
<li><a href="https://www.drupal.org/node/2000204" target="_blank" rel="noopener">.info becomes .info.yml</a></li>
</ul>
</li>
</ul>
<p>&nbsp;</p>
<h3>Dev Ops -Workflow, Automation and Performance Tuning.</h3>
<ul>
<li><a href="http://building complete development environments" target="_blank" rel="noopener">Vagrant</a> &#8211; builds complete virtual dev environments, share them
<ul>
<li>ZivTech VM &#8211; <a href="https://github.com/zivtech/vagrant-development-vm" target="_blank" rel="noopener">https://github.com/zivtech/vagrant-development-vm</a></li>
<li>Charging Hawk Lightweight VM <a href="https://github.com/charginghawk/vagrant" target="_blank" rel="noopener">https://github.com/charginghawk/vagrant</a></li>
<li>Drupal VM <a href="http://www.drupalvm.com/" target="_blank" rel="noopener">http://www.drupalvm.com/</a></li>
</ul>
</li>
<li>Testing &amp; Automation
<ul>
<li><a href="http://www.seleniumhq.org/" target="_blank" rel="noopener">Selenium</a>/<a href="http://docs.behat.org/en/v3.0/" target="_blank" rel="noopener">Behat</a></li>
<li><a href="http://www.edzynda.com/continuous-integration-with-jenkins-part-i/" target="_blank" rel="noopener">Jenkins</a></li>
<li><a href="http://probo.ci/" target="_blank" rel="noopener">Probo.CI</a></li>
<li><a href="https://www.ansible.com/" target="_blank" rel="noopener">Ansible</a></li>
</ul>
</li>
<li>Caching
<ul>
<li><a href="https://varnish-cache.org/intro/index.html#intro" target="_blank" rel="noopener">Varnish</a></li>
</ul>
</li>
</ul>
<h4>My overall takeaways:</h4>
<p>We need to get our workflow in order, and we have so much to dive into for 8. Lots of the optimization will help our Drupal 7 installs as well.</p>
<p>I&#8217;d really like to get some common/version controlled local environments setup, like with Vagrant, so we can all be using the same local, and keep that under version control.</p>
<h3>Standardize! Automate! Version!</h3>
<p>&nbsp;</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/drupalcon-2016-new-orleans/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">868</post-id>	</item>
		<item>
		<title>Bad Node, Bad Node, whatcha gonna do?</title>
		<link>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/</link>
					<comments>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/#comments</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Tue, 12 Jan 2016 16:21:52 +0000</pubDate>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[tips]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=125</guid>

					<description><![CDATA[I recently switched a site search from using external Google CSE search to using the internal Drupal Core search. This was fairly inconsequential. I switched&#8230;]]></description>
										<content:encoded><![CDATA[<p>I recently switched a site search from using external Google CSE search to using the internal Drupal Core search. This was fairly inconsequential.</p>
<p>I switched to Node search under Config -&gt; Search and Metadata, swapped the CSE block out of my sidebar in Content -&gt;Structure, made a few theme CSS changes to match and I should have been done.</p>
<p>Except for indexing the content, trivial, right? Just run cron a few times and you should be all set!</p>
<p>Only, no. That didn&#8217;t seem to work. I kept getting a couple strange errors in the log messages.</p>
<blockquote>
<pre class="p1"><span class="s1">Warning: Creating default object from empty value in node_build_content() (line 1398 of /Users/user/sites/sitename/modules/node/node.module)</span></pre>
</blockquote>
<p class="p1">and</p>
<blockquote>
<pre class="p1"><span class="s1"><strong>EntityMalformedException</strong>: Missing bundle property on entity of type node. in entity_extract_ids() (line 7879 of /Users/user/sites/sitename/includes/common.inc).</span></pre>
</blockquote>
<p class="p1">After a good deal of searching, and some helpful hints from the #drupal channel I tried a few different modules but none of them addressed the one issue I was having, which was increasing the indexing. I was stuck at 8%.</p>
<p class="p1">I finally found this post <a href="http://tappetyclick.com/blog/2013/01/14/how-find-bad-node-makes-search-indexing-cause-drupal-cron-fail">http://tappetyclick.com/blog/2013/01/14/how-find-bad-node-makes-search-indexing-cause-drupal-cron-fail</a></p>
<p class="p1">Which mentioned that they had found a solution on a Portuguese site, and translated it for us.</p>
<p class="p1">My drupal version is a little bit different than the example at tappetyclick, but the gist is: Output the indexing process to the log by adding a watchdog line to  the core file modules/node/node.module&#8221;</p>
<blockquote>
<pre class="p1">'watchdog ('cron', "indexing node {$node -&gt; nid}"); // ADD THIS LINE'</pre>
</blockquote>
<p class="p1">This made my node_update_index() look like this:</p>
<blockquote>
<pre>function node_update_index() {
 $limit = (int)variable_get('search_cron_limit', 100);</pre>
<pre> $result = db_query_range("SELECT n.nid FROM {node} n LEFT JOIN {search_dataset} d ON d.type = 'node' AND d.sid = n.nid WHERE d.sid IS NULL OR d.reindex &lt;&gt; 0 ORDER BY d.reindex ASC, n.nid ASC", 0, $limit, array(), array('target' =&gt; 'slave'));</pre>
<pre>foreach ($result as $node) {
<strong> watchdog ('cron', "indexing node {$node -&gt; nid}"); // ADD THIS LINE</strong>
 _node_index_node($node);</pre>
<pre>}
}</pre>
</blockquote>
<p class="p1">Then I ran cron manually and checked the log messages, filtering for cron types only.</p>
<pre class="p1">cron 01/11/2016 - 5:00pm indexing node 1803 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 702 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 7676 Anonymous 
cron 01/11/2016 - 5:00pm indexing node 6801 Anonymous</pre>
<p class="p1">Everytime I ran into <em><strong>EntityMalformedException</strong>: Missing bundle property on entity of type node in entity_extract_ids(),</em> I&#8217;d look at the last node we&#8217;d tried to index,<strong> this was the bad node</strong>, and delete it from the database.</p>
<p class="p1">After removing about 40 of these bad nodes the core search index actually reached 100%. /kermitarms</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/bad-node-bad-node-whatcha-gonna-do/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">125</post-id>	</item>
		<item>
		<title>Drupal tips</title>
		<link>https://www.staciearellano.com/drupal-tips/</link>
					<comments>https://www.staciearellano.com/drupal-tips/#respond</comments>
		
		<dc:creator><![CDATA[Stacie]]></dc:creator>
		<pubDate>Mon, 09 Nov 2015 19:37:28 +0000</pubDate>
				<category><![CDATA[WebDev]]></category>
		<category><![CDATA[drupal]]></category>
		<guid isPermaLink="false">http://www.staciearellano.com/?p=114</guid>

					<description><![CDATA[Drupal tip #1 &#8211; Locked out of site? Empty the &#8216;sessions&#8217; and &#8216;cache&#8217; tables and login at yoursite.com?q=user &#160; Drupal tip #2 &#8211; random Ajax Error&#8230;]]></description>
										<content:encoded><![CDATA[<p><strong>Drupal tip #1 &#8211; Locked out of site?</strong></p>
<p>Empty the &#8216;sessions&#8217; and &#8216;cache&#8217; tables and login at</p>
<p>yoursite.com?q=user</p>
<p>&nbsp;</p>
<p><strong>Drupal tip #2 &#8211; random Ajax Error in the workbench?</strong></p>
<p>Check your server memory settings, you may need to increase either the mysql memory or the limits in the php.ini</p>
<p>&nbsp;</p>
<p>Find your current php.ini from <strong>Drupal Admin -&gt; Reports &#8211; &gt; Status Reports. </strong></p>
<p>Scroll down to the <strong>PHP</strong> line and click &#8216;<strong>more information</strong>&#8216; this will take you to a standard <strong>PHPINFO()</strong> page for your server.</p>
<p>Look for the <strong>Loaded Configuration File</strong> line to find where your current php.ini file is.</p>
<p>Consider increasing the <strong>Input_Vars</strong> limit.</p>
<p>Make sure to restart the server after making changes to the php.ini file.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.staciearellano.com/drupal-tips/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">114</post-id>	</item>
	</channel>
</rss>
