Errata (Second Edition)
This page lists the errors found in the book.
Chapter 16. Sessions, Page 367
Mon, 09/08/2008 - 8:45am — gpkDrupal doesn't store session information the first time an anonymous user visits a site. This is to keep evil web crawlers and robots from flooding the sessions table. As a developer, this means you cannot store session information for the first visit from an anonymous user.
Drupal doesn't usually store session information the first time an anonymous user visits a site. This is to keep evil web crawlers and robots from flooding the sessions table. As a developer, you should try to avoid storing session information for the first visit from an anonymous user.
Drupal will store session information for the first page view from an anonymous visitor if data has been stored in $_SESSION. See http://api.drupal.org/api/function/sess_write/6.
Chapter 16. Sessions, Page 370
Mon, 09/08/2008 - 8:48am — gpkThis is only done if the browser has presented a valid cookie to avoid bloating the sessions table with sessions for web crawlers.
To avoid bloating the sessions table with sessions for web crawlers, this is only done if the browser has presented a valid cookie, or if data has been stored in $_SESSION (e.g. by a module).
Chapter Front Matter, Page 393
Fri, 04/10/2009 - 6:46am — pawel.traczynskicreate the file plus1.info
create the file plusone.info
Chapter 17. Using jQuery, Page 401
Mon, 10/26/2009 - 6:16pm — craig.fergusonUsers without the 'rate content' permission are not eligible to vote. Treat them the same as the author when theming the widget.
replace 'if ($is_author) {' with 'if ($is_author || !user_access('rate content')) {'
Users without 'rate content' permission are not permitted to access /plusone/vote/, so ajax or browser post fail for them.
Chapter 18. Localization, Page 416
Fri, 04/10/2009 - 6:48am — pawel.traczynskiA list of translatable strings containing the word "search" (...)
A list of translatable strings containing the word "Search" (...)
In the example showed on the figure the word "Search" was the one we
searched for. "Search" is not the same as "search" because for the Locale
Module the case of letters in strings matters.
Chapter 23. Installation Profiles, Page 553
Thu, 12/04/2008 - 2:14pm — drmcall to university_profile_tasks()
downloaded code for the profile uses university_profile_final() instead
using hook_profile_tasks() results in db_query being undefined. hook_profile_final() which isn't even in the drupal api avoids this.
