Category: Troubleshooting

Movable Type: How to emulate an MTEntryIfNotExtended tag

Movable Type has a built in container tag  

<MTEntryIfExtended>

which is often used to show the “More” part of a long entry, or anything else that should be displayed only if the entry is extended:

<MTEntryIfExtended>
    <$MTEntryMore$>
   <div>Special text or page elements for Extended Entries go here</div>
</MTEntryIfExtended> 

But what if you want something to show up only if the entry is NOT extended? There is no corresponding <MTEntryIfNotExtended> tag. 

Fortunately that functionality is simple to replicate using Movable Type variables.

Continue reading

Drupal 7: It is recommended to install the PECL uploadprogress library

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 obviously required privileges that I would not have on a shared host. However, Hostgator has another library already installed that implements PECL: CodeGen_PECL. It just has to be enabled.

Continue reading
Wordpress logo

WordPress: SimpleLDAP plugin updated to work with v3.5

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 some TLC from someone more experienced with working with WordPress.

The original version of the plugin I used as a basis is v1.4.0.5.1, available at http://wordpress.org/plugins/simple-ldap-login/.

Continue reading

Drupal 7: Fatal error: Allowed memory size of 52428800 bytes exhausted

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 = 128M

Continue reading

Safari Error: “The website requires a client certificate”

While experimenting with LDAP connections in Safari, errors like this one started popping up:

“The website _____ requires a client certificate”

A dialog would open, listing some old MobileMe certificates. Apparently if any old, expired or corrupt MobileMe certificates are still lodged in the Keychain, you may get this error sometimes. MobileMe has been disabled and signed out on my Mac for years, but the fact that the certs were still there caused the problem.

Continue reading
Wordpress logo

WordPress: Notice: has_cap was called with an argument that is deprecated since version 2.0!

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 argument in a function that adds a menu or submenu, the required capability should be used instead.

Continue reading