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... Wordpress: SimpleLDAP plugin updated to work with v3.5 http://thedesignspace.net/MT2archives/001035.html The SimpleLDAP plugin by Cliff Griffin is exactly what I needed for a proof-of-concept WordPress site I'm working on, but it hasn't been officially updated in a while and was not entirely compatible with WordPress v.3.5. I've updated the plugin to eliminate the errors I was getting, and it now works fine on my site, but it could probably use... 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 =... Wordpress: Notice: has_cap was called with an argument that is deprecated since version 2.0! http://thedesignspace.net/MT2archives/001021.html I've been experimenting with LDAP and Cosign login plugins for WordPress. Most of them are out of date and are more or less incompatible with WordPress v.3.5. Usually the first error that comes up is Notice: has_cap was called with an argument that is deprecated since version 2.0! All this means is that instead of using the numerical role identifier... Tips on getting PHP to work on Windows/IIS http://thedesignspace.net/MT2archives/000931.html Trying to set up php on a Windows server running IIS from scratch can be a challenge. I would recommend first trying out the Microsoft's Web Platform Installer because it is so easy to use, but sometimes that doesn't set things up correctly. In my experience it usually works, but occasionally the installation fails to create a working environment. In... Installing PHP on Windows: if PHP pages work but phpinfo is blank? http://thedesignspace.net/MT2archives/000927.html When installing PHP on IIS, I ran into this: in general, php files worked, but phpinfo.php files were not. They were blank when browsed.... Mcrypt extension error after installing phpMyAdmin on IIS http://thedesignspace.net/MT2archives/000926.html If you install phpMyAdmin on IIS and get the error: PROBLEM: cannot load mcrypt extension. please check your php configuration This could be due to the extension being missing or that it is not listed correctly in php.ini file. Listed below are the instructions from around the web that I followed to get this working:... Using the Qualtrics API with PHP and javascript to create custom reports http://thedesignspace.net/MT2archives/000872.html Qualtrics.com is an extraordinarily full-featured online survey application that offers nearly every type of built-in report on your survey data you could ever want. But eventually, there comes a time when nothing but a custom report will do. Or you may want to integrate Qualtrics data into another application. For those times, Qualtrics has an extensive API which allows... 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 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... Add phpMyAdmin to your Web Platform Installer IIS setup http://thedesignspace.net/MT2archives/000802.html 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... Gallery site suddenly stops working: check file permissions http://thedesignspace.net/MT2archives/000728.html Today I found that a Menalto Gallery v.2.3 site I run had simply stopped working. I had made no changes in weeks, so this was peculiar. Browsing to the front page brought up only the standard error page which shows up for 403 and 404 (page not found) errors and probably for 500 errors (permissions issues) as well. I was... fatal error: class 'OAuthCommonHooks' not found http://thedesignspace.net/MT2archives/000672.html On installing the OAuth module in a Drupal site, this error appeared: fatal error: class 'OAuthCommonHooks' not found in [path] Fatal error: Class 'OAuthCommonHooks' not found in /drupal-6.13/sites/all/modules/oauth_common/oauth_common.module on line 58 Apparently you can fix it one of two ways: if the site is still working enough to get to the performance page (?q=admin/settings/performance), just hit the Clear cached data...