<?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>Ajay Kumar Singh &#187; Drupal</title> <atom:link href="http://www.ajaykumarsingh.com/drupal/feed" rel="self" type="application/rss+xml" /><link>http://www.ajaykumarsingh.com</link> <description>Blogging [^Singh^]</description> <lastBuildDate>Sat, 04 Feb 2012 23:10:08 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Table &#8216;sessions&#8217; is marked as crashed and should be repaired</title><link>http://www.ajaykumarsingh.com/drupal/table-sessions-is-marked-as-crashed-and-should-be-repaired.html</link> <comments>http://www.ajaykumarsingh.com/drupal/table-sessions-is-marked-as-crashed-and-should-be-repaired.html#comments</comments> <pubDate>Mon, 08 Aug 2011 19:14:26 +0000</pubDate> <dc:creator>Ajay</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[mySQL]]></category> <category><![CDATA[Sessions]]></category> <guid
isPermaLink="false">http://www.ajaykumarsingh.com/?p=866</guid> <description><![CDATA[How to fix Table 'sessions' is marked as crashed and should be repaired in Drupal.<h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/moneybookers/failed-login-attempt-on-your-moneybookers-account.html" rel="bookmark">Failed login attempt on your Moneybookers account</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-parameter-1-to-comment_nodeapi-expected-to-be-a-reference-value-given-in-includesmodule-inc-on-line-462.html" rel="bookmark">warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in /includes/module.inc on line 462.</a></li><li><a
href="http://www.ajaykumarsingh.com/adobe/how-to-edit-protected-pdf-files.html" rel="bookmark">How To Edit Protected PDF Files</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html" rel="bookmark">Warning: Cannot modify header information &#8211; headers already sent by (output started at</a></li></ol> ]]></description> <content:encoded><![CDATA[<p>I&#8217;ve been getting some database table related warnings in one of Drupal sites. So I decided to repair database table from phpMyAdmin. Once all tables were repaired I started to see following error:</p><p><strong>Table &#8216;sessions&#8217; is marked as crashed and should be repaired</strong></p><p>As it is clear from the error, problem lies in sessions table. Sessions table contains the login sessions.</p><p>The solution to this problem is to Empty the sessions table. To do so login into phpMyAdmin, select the sessions table and click on Empty.</p><p>You have nothing to loose except that logged in users will be kicked out and they will have to log back in. There might be some errors as well.</p><p>One problem I faced was that the admin password was reset to the previous password which is weird. I&#8217;ve no clue why this happened.</p><div
style='clear:both'></div><h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/moneybookers/failed-login-attempt-on-your-moneybookers-account.html" rel="bookmark">Failed login attempt on your Moneybookers account</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-parameter-1-to-comment_nodeapi-expected-to-be-a-reference-value-given-in-includesmodule-inc-on-line-462.html" rel="bookmark">warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in /includes/module.inc on line 462.</a></li><li><a
href="http://www.ajaykumarsingh.com/adobe/how-to-edit-protected-pdf-files.html" rel="bookmark">How To Edit Protected PDF Files</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html" rel="bookmark">Warning: Cannot modify header information &#8211; headers already sent by (output started at</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://www.ajaykumarsingh.com/drupal/table-sessions-is-marked-as-crashed-and-should-be-repaired.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in /includes/module.inc on line 462.</title><link>http://www.ajaykumarsingh.com/drupal/warning-parameter-1-to-comment_nodeapi-expected-to-be-a-reference-value-given-in-includesmodule-inc-on-line-462.html</link> <comments>http://www.ajaykumarsingh.com/drupal/warning-parameter-1-to-comment_nodeapi-expected-to-be-a-reference-value-given-in-includesmodule-inc-on-line-462.html#comments</comments> <pubDate>Tue, 12 Jul 2011 11:20:57 +0000</pubDate> <dc:creator>Ajay</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[Comment.Module]]></category> <category><![CDATA[comment_nodeapi]]></category> <category><![CDATA[PHP 5.3]]></category> <guid
isPermaLink="false">http://www.ajaykumarsingh.com/?p=819</guid> <description><![CDATA[This error appeared in Drupal when I upgraded PHP to version 5.3.<h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-trim-expects-parameter-1-to-be-string-array-given-in-public_htmlwp-adminincludesimage-php-on-line-300.html" rel="bookmark">Warning: trim() expects parameter 1 to be string, array given in /public_html/wp-admin/includes/image.php on line 300</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-array_key_exists-expects-parameter-2-to-be-array-boolean-given-in-public_htmlwp-contentpluginsbreadcrumb-navxtbreadcrumb_navxt_admin-php-on-line-829.html" rel="bookmark">Warning: array_key_exists() expects parameter 2 to be array, boolean given in /public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 829</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/drupal-resources.html" rel="bookmark">Drupal Resources</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html" rel="bookmark">Warning: Cannot modify header information &#8211; headers already sent by (output started at</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-file_get_contents-function-file-get-contents-url-file-access-is-disabled-in-the-server-configuration-in-wp-contentpluginsdigg-diggdd-class-php-on-line-693.html" rel="bookmark">Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /wp-content/plugins/digg-digg/dd.class.php on line 693</a></li></ol> ]]></description> <content:encoded><![CDATA[<p>I upgraded PHP to 5.3 version on dedicated server and received following error in Drupal. This error shows up when you search on the Drupal site.</p><blockquote><p><strong>warning: Parameter 1 to comment_nodeapi() expected to be a reference, value given in /includes/module.inc on line 462.</strong></p></blockquote><p>This is very typical error with PHP 5.3 and happens with most of the php scripts and not only Drupal.</p><p>The solution for above problem is to remove &amp; from the <strong>function comment_nodeapi(<span
style="color: #ff0000;">&amp;</span>$node, $op, $arg = 0) </strong>in comment.module file which is in /modules/comment folder.</p><div
style='clear:both'></div><h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-trim-expects-parameter-1-to-be-string-array-given-in-public_htmlwp-adminincludesimage-php-on-line-300.html" rel="bookmark">Warning: trim() expects parameter 1 to be string, array given in /public_html/wp-admin/includes/image.php on line 300</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-array_key_exists-expects-parameter-2-to-be-array-boolean-given-in-public_htmlwp-contentpluginsbreadcrumb-navxtbreadcrumb_navxt_admin-php-on-line-829.html" rel="bookmark">Warning: array_key_exists() expects parameter 2 to be array, boolean given in /public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 829</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/drupal-resources.html" rel="bookmark">Drupal Resources</a></li><li><a
href="http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html" rel="bookmark">Warning: Cannot modify header information &#8211; headers already sent by (output started at</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-file_get_contents-function-file-get-contents-url-file-access-is-disabled-in-the-server-configuration-in-wp-contentpluginsdigg-diggdd-class-php-on-line-693.html" rel="bookmark">Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /wp-content/plugins/digg-digg/dd.class.php on line 693</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://www.ajaykumarsingh.com/drupal/warning-parameter-1-to-comment_nodeapi-expected-to-be-a-reference-value-given-in-includesmodule-inc-on-line-462.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Warning: Cannot modify header information &#8211; headers already sent by (output started at</title><link>http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html</link> <comments>http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html#comments</comments> <pubDate>Tue, 19 Apr 2011 09:33:12 +0000</pubDate> <dc:creator>Ajay</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[Cache]]></category> <category><![CDATA[Warning: Cannot modify header information - headers already sent by (output started at]]></category> <guid
isPermaLink="false">http://www.ajaykumarsingh.com/?p=630</guid> <description><![CDATA[Solving Drupal problem "Warning: Cannot modify header information - headers already sent by (output started at"<h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/php/notice-a-session-had-already-been-started-ignoring-session_start-in-on-line.html" rel="bookmark">Notice: A session had already been started – ignoring session_start() in .. on line ..</a></li><li><a
href="http://www.ajaykumarsingh.com/mysql/how-to-import-sql-file-in-mysql-database.html" rel="bookmark">How to import .sql file in mySQL database?</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-invalid-argument-supplied-for-foreach-in-home-public_htmlwp-contentpluginsadrotateadrotate-functions-php-on-line-425.html" rel="bookmark">Warning: Invalid argument supplied for foreach() in /home/../public_html/wp-content/plugins/adrotate/adrotate-functions.php on line 425</a></li></ol> ]]></description> <content:encoded><![CDATA[<p>Out of no where I start seeing following warnings on one of my Drupal Site. I haven&#8217;t changed any files recently.</p><blockquote><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/../public_html/includes/database.mysql.inc:128) in /home/&#8230;/public_html/includes/bootstrap.inc on line 636</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/&#8230;/public_html/includes/database.mysql.inc:128) in /home/&#8230;/public_html/includes/bootstrap.inc on line 637</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/&#8230;/public_html/includes/database.mysql.inc:128) in /home/&#8230;/public_html/includes/bootstrap.inc on line 638</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/&#8230;/public_html/includes/database.mysql.inc:128) in /home/&#8230;/public_html/includes/bootstrap.inc on line 639</p></blockquote><p>This error is gone either when I empty Drupal Cache.<br
/> There is one more similar problem</p><p>warning: Cannot modify header information &#8211; headers already sent by (output started at /home/&#8230;/public_html/includes/database.mysql.inc:128) in /home/&#8230;/public_html/includes/common.inc on line 148.</p><p>I checked the common.inc, database.mysql.inc and database.mysql.inc files but I found nothing to suspect. In most cases it is related to error checking or cache.</p><p>Error checking seems to be normal and nothing unusual about it.</p><p>What about Drupal Cache? Not sure what is causing problem here.</p><p>There is a discussion on <a
href="http://drupal.org/node/183454" target="_blank">this topic</a> on Drupal. The suggestions given there is related with the empty space at the end of file and any modules which might be causing problem. However I haven&#8217;t installed any new module or changed anything recently in these modules.</p><p>So for a quick check I checked these common files and removed any space at the end of file. Top do so open the file in any text editor, put cursor at the last character and hit DEL key repeatedly.</p><p>Will wait and see if it solves the problem.</p><p>There is a another suggestion related to <strong>output_buffering</strong> on/off in your php.ini Someone solved this problem by changing OUTPUT_BUFFER=OFF to OUTPUT_BUFFER=ON.</p><div
style='clear:both'></div><h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/php/notice-a-session-had-already-been-started-ignoring-session_start-in-on-line.html" rel="bookmark">Notice: A session had already been started – ignoring session_start() in .. on line ..</a></li><li><a
href="http://www.ajaykumarsingh.com/mysql/how-to-import-sql-file-in-mysql-database.html" rel="bookmark">How to import .sql file in mySQL database?</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/warning-invalid-argument-supplied-for-foreach-in-home-public_htmlwp-contentpluginsadrotateadrotate-functions-php-on-line-425.html" rel="bookmark">Warning: Invalid argument supplied for foreach() in /home/../public_html/wp-content/plugins/adrotate/adrotate-functions.php on line 425</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://www.ajaykumarsingh.com/drupal/warning-cannot-modify-header-information-headers-already-sent-by-output-started-at.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How To Speed Up Drupal</title><link>http://www.ajaykumarsingh.com/drupal/how-to-speed-up-drupal.html</link> <comments>http://www.ajaykumarsingh.com/drupal/how-to-speed-up-drupal.html#comments</comments> <pubDate>Tue, 25 Jan 2011 16:41:37 +0000</pubDate> <dc:creator>Ajay</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[Boost]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Google Page Speed]]></category> <category><![CDATA[How To Speed Up Drupal]]></category> <category><![CDATA[JS]]></category> <category><![CDATA[Speed Up Drupal]]></category> <category><![CDATA[YSlow]]></category> <guid
isPermaLink="false">http://www.ajaykumarsingh.com/?p=504</guid> <description><![CDATA[In this post I'll describe some simple steps to speed up Drupal which doesn't require a lot of technical knowledge.<h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/drupal/drupal-resources.html" rel="bookmark">Drupal Resources</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/speed-up-wordpress-quick-easy-ways-to-optimize-and-speed-up-wordress-site.html" rel="bookmark">Speed up WordPress &#8211; Quick &#038; Easy Ways To Optimize and Speed Up Wordress Site</a></li></ol> ]]></description> <content:encoded><![CDATA[<p><strong>Facts:</strong></p><ol><li>Drupal is the one of the slowest CMS which I&#8217;ve ever come across</li><li>The more modules you add the slower it gets</li><li>Drupal itself is slow so changing server or moiving to Drupal will not help a lot</li></ol><p>The biggest problem with Drupal is that with raw core you can&#8217;t build a website or portal and you need to have loads of modules installed to give it a shape.</p><p>With modules come CSS, JS, Images and, of course, php files which all adds up to slow down Drupal. Then top up that with the theme files (CSS, JS, Images and PHP files) and you end up with a monster. Something like Indian passenger trains which almost don&#8217;t move due to overloading (remember seeing pictures of people sitting on top if train in India).</p><p>However there is hope on the horizons, there are few ways by which you can speed up Drupal up to certain extent.</p><h3>Drupal Health Checkup</h3><p>First do a basic health checkup for your Drupal site. You need a stethoscope which is <a
title="YSlow" href="http://developer.yahoo.com/yslow/" target="_blank"><strong>YSlow</strong></a> <a
title="Firefox" href="http://www.mozilla.com/firefox" target="_blank">Firefox</a> Extension.</p><p>You can also try <a
title="Google Page Speed" href="http://code.google.com/speed/page-speed/download.html" target="_blank"><strong>Google Page Speed</strong></a> extension for firefox.</p><h3>1) Get a Dedicated Server</h3><p>Opps!! Didn&#8217;t I say in the beginning of this post that Dedicated server wouldn&#8217;t help? Yes I did. But you can&#8217;t run Drupal on a shared hosting. It is like driving Rolls Royce on Indian roads. It will run however you can imagine what harm it will do you your health if you haver driven in Indian roads.</p><p>So get a good dedicated server first.</p><p>Check out <a
title="Web Hosting Reviews" href="http://www.webhostingreviews4all.com" target="_self">Web Hosting Reviews</a> for more details on why shared hosting sucks.</p><p><strong>Server Side Optimization</strong><br
/> Enable mod_gzip (Apache 1.3)/ mod_deflate (Apache 2.x).</p><h3>2) Enable CSS and JS Compression/Aggregation</h3><p>Drupal 6 onwards has inbuilt capability to Aggregate (combine) Java Script and CSS files. You can enable it from</p><p>Administer -&gt; Site Configuration -&gt; Performance</p><p>&#8220;Caching mode:&#8221;</p><p>Select Aggressive</p><div
id="attachment_507" class="wp-caption alignleft" style="width: 494px"><a
href="http://www.ajaykumarsingh.com/wp-content/uploads/2011/01/speed-up-drupal.jpg"><img
class="size-full wp-image-507" title="Speed Up Drupal" src="http://www.ajaykumarsingh.com/wp-content/uploads/2011/01/speed-up-drupal.jpg" alt="Speed Up Drupal" width="484" height="1115" /></a><p
class="wp-caption-text">Speed Up Drupal</p></div><p>Check Enable options on &#8220;Optimize CSS files&#8221; and &#8220;Optimize JavaScript files:&#8221;</p><h3>3) GZIP &#8211; configure your Apache server to automatically compress files.</h3><p>Add following line in .htaccess file</p><blockquote><p><em>AddOutputFilterByType DEFLATE text/css application/x-javascript</em></p></blockquote><h3>Install Boost module</h3><p><a
title="Boost" href="http://drupal.org/project/boost" target="_blank">Boost</a> module claims to improve the performance significantly.</p><p>I&#8217;m yet to test this module, once I&#8217;ve done it I&#8217;ll upadate.</p><h3>5) Follow Basic CSS/HTML Guidelines</h3><p>Not to mention go back to school and re-read the basic CSS/HTML guidelines again.</p><div
style='clear:both'></div><h3>Related Posts</h3><ol><li><a
href="http://www.ajaykumarsingh.com/drupal/drupal-resources.html" rel="bookmark">Drupal Resources</a></li><li><a
href="http://www.ajaykumarsingh.com/wordpress/speed-up-wordpress-quick-easy-ways-to-optimize-and-speed-up-wordress-site.html" rel="bookmark">Speed up WordPress &#8211; Quick &#038; Easy Ways To Optimize and Speed Up Wordress Site</a></li></ol> ]]></content:encoded> <wfw:commentRss>http://www.ajaykumarsingh.com/drupal/how-to-speed-up-drupal.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Drupal Resources</title><link>http://www.ajaykumarsingh.com/drupal/drupal-resources.html</link> <comments>http://www.ajaykumarsingh.com/drupal/drupal-resources.html#comments</comments> <pubDate>Sat, 10 Oct 2009 12:00:37 +0000</pubDate> <dc:creator>Ajay</dc:creator> <category><![CDATA[Drupal]]></category> <category><![CDATA[CCK]]></category> <category><![CDATA[CMS]]></category> <category><![CDATA[Content Construction Kit]]></category> <category><![CDATA[Content Management Systems]]></category> <category><![CDATA[Drupal Resources]]></category> <category><![CDATA[Modules]]></category> <category><![CDATA[Themes]]></category> <category><![CDATA[Views]]></category> <guid
isPermaLink="false">http://www.ajaykumarsingh.com/?p=250</guid> <description><![CDATA[Important Drupal Resources, Download, Themes, Modules and other resources<h3>Related Posts</h3> No related posts.
]]></description> <content:encoded><![CDATA[<p>Drupal is one of the most popular CMS (Content Management System). Following are some of the fetures of Drupal.</p><ul><li>Free Open source</li><li>Flexible</li><li>Extensible</li><li>Supports MVC</li><li>Community Support</li></ul><p>Visit CMS Reviews website for a comprehensive review on Content Management Systems</p><p><strong>Current Drupal Version</strong></p><p>Drupal 6.14 is the latest stable version.</p><h2><a
title="Download Drupal 6.14" href="http://ftp.drupal.org/files/projects/drupal-6.14.tar.gz" target="_blank">Download Drupal 6.14</a></h2><p><strong>Drupal Modules</strong></p><p>Visit <a
title="Drupal Module" href="http://drupal.org/project/Modules" target="_blank">Drupal Module</a> page</p><p>Some of most popular dupal modules</p><p><strong>1) <a
title="Views" href="http://drupal.org/project/views" target="_blank">Views</a></strong></p><p>One of the most popular Drupal Module which allows the flexibility to display the list, tables and contents and other elements.</p><p>2) <a
title="CCK" href="http://drupal.org/project/CCK" target="_blank">CCK</a> (Content Construction Kit)</p><p>CCK module allows you to add custom fields to nodes from web browser.</p><p>Some of the useful CCK links.</p><p><a
title="Content Construction Kit Handbook" href="http://drupal.org/node/101723" target="_blank">Content Construction Kit Handbook</a></p><p><a
title="Getting Started with CCK" href="http://drupal.org/node/162242" target="_blank">Getting Started with CCK</a></p><div
style='clear:both'></div><h3>Related Posts</h3><p>No related posts.</p> ]]></content:encoded> <wfw:commentRss>http://www.ajaykumarsingh.com/drupal/drupal-resources.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
