The Designspace http://thedesignspace.net/ My daily explorations, troubleshooting, solutions and discoveries. en-us ellen@thedesignspace.net Tue, 11 Jun 2013 15:45:32 -0500 Drupal 7: It is recommended to install the PECL uploadprogress library http://thedesignspace.net/MT2archives/001037.html When installing Plupload module to work with Media module on a Hostgator site, I got the error: Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC. Looking at the suggested library (pecl.php.net) it was a shell script that pretty... Drupal 7: CTools module error: Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: http://thedesignspace.net/MT2archives/001034.html When I re-installed CTools (Chaos Tools Suite) during a Drupal 7 upgrade, it resulted in this error: Failed: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '29' According to this post, it may have something to do withinsufficient memory allocation to PHP preventing hook_install from running when the module tries to load. Since I had just increased the memory in... Drupal 7: Fatal error: Allowed memory size of 52428800 bytes exhausted http://thedesignspace.net/MT2archives/001033.html Working with Drupal 7, you may get an error like the one below. (The actual number may be different.) Fatal error: Allowed memory size of 52428800 bytes exhausted If you don't have one already, add a text file called "php.ini" to the root directory of the Drupal 7 site, and add a line like: memory_limit = 96M or memory_limit =... Drupal error message: "call_user_func_array() expects parameter 1 to be a valid callback" http://thedesignspace.net/MT2archives/000965.html After doing a series of updates to a Drupal installation, the following error appeared on all admin pages and edit pages: "call_user_func_array() expects parameter 1 to be a valid callback, function 'clients_access_callback " Other symptoms included that the database could not be updated to complete some of the following updates, and search no longer worked.... Spam prevention on Drupal sites http://thedesignspace.net/MT2archives/000884.html I run a Drupal site with several thousand users. Users self-register, and there are no other moderators but myself, so it needs to be virtually maintenance free to be sustainable. And for years, it was! Since the site's members are well-behaved, the only major maintenance besides keeping the Drupal installation updated was cleaning up spam posts. Usually, there weren't many... Drupal: imagepicker / openWYSIWYG module incompatibility fix http://thedesignspace.net/MT2archives/000854.html A site I administer uses the openWYSIWYG rich text editor module as the default input format for most users. Like other rich text editors, openWYSIWYG makes it possible for anyone to add styles and colors to their posts, including tables, images, links and more. The openWYSIWYG interface... Settings to get Drupal 7 working on Hostgator http://thedesignspace.net/MT2archives/000849.html At the moment, Hostgator's default PHP version is v.5.2.4, although version 5.3 is available. Drupal 7 requires 5.3, so until they make it the default, it is necessary to manually tell Drupal where to find PHP v. 5.3. Do this by adding Action application/x-hg-php53 /cgi-sys/php53 AddType application/x-hg-php53 .php to an .htaccess file located in the public_html directory of your site.... Drupal OpenWYSIWYG text editor http://thedesignspace.net/MT2archives/000825.html One of the biggest drawbacks of Drupal for several years has been the lack of a single rich-text editor that is totally compatible with all browsers. Two years ago, I tested all of the WYSIWYG modules available at the time, found they were all riddled with bugs and incompatibilities, and finally settled on the YUI editor for a large... Drupal YUI Rich Text Editor: Set maximum image dimensions on uploaded images http://thedesignspace.net/MT2archives/000822.html The search for the perfect WYSIWYG text editor in Drupal goes on. The best I've seen yet is YUI Rich Text Editor, but it still has some serious browser incompatibilities and usability problems. One significant is that there is nothing stopping users from upload a huge image, and not resizing it down using the provided resizing tools. Now that just... Microsoft Web Platform installer: Drupal on IIS, the easy way. http://thedesignspace.net/MT2archives/000801.html If you work with Windows servers, then you have probably gotten used to doing without the many opensource web applications taken for granted outside the enterprise environment. Drupal, WordPress, phpBB, Moodle, etc. were all out of reach. Yes, it was possible to install PHP and mySQL, but it took a level of commitment and dogged troubleshooting persistence that few people... Drupal: set up a draggable card sort view - Part 8 http://thedesignspace.net/MT2archives/000712.html Drupal: set up a draggable card sort view - Part 7 http://thedesignspace.net/MT2archives/000711.html Drupal: set up a draggable card sort view - Part 6 http://thedesignspace.net/MT2archives/000710.html Drupal: set up a draggable card sort view - Part 5 http://thedesignspace.net/MT2archives/000709.html Drupal: set up a draggable card sort view - Part 4 http://thedesignspace.net/MT2archives/000708.html