I installed this module on my server which uses PHP 5.3.9
But I got this error in all pages of the site:

preg_replace_callback(): Compilation failed: POSIX collating elements are not supported at offset 157 in /home/.../profiles/openatrium/modules/contrib/markdown/markdown.php on line 1005.

I solved this problem by simply updating the markdown library from this address:
http://michelf.com/docs/projets/php-markdown-extra-1.2.5.zip

CommentFileSizeAuthor
#3 1439150-update-markdown.patch16.62 KBboombatower
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Priority: Major » Critical
Status: Needs review » Reviewed & tested by the community

I'd say this is critical. Debian Lenny is no longer supported as of Feb 15 (last week). Debian Squeeze is the only supported stable release. And it ships with only PHP 5.3 support. As more people upgrade, more people will start to see this warning.

boombatower’s picture

Ran into this as well, definitely seems like a good idea.

boombatower’s picture

Here is a patch for those using drush make.

RobW’s picture

Since this is an issue with the Markdown Exrta library, wouldn't testing and committing #1532380: Load Markdown library with Libraries API 2 fix it as well?

barraponto’s picture

@RobW: yes, but #1532380: Load Markdown library with Libraries API 2 is a D7 issue. Backporting should be easy (and should make upgrades easier as well).

RobW’s picture

@barraponto, ah, missed that. Sometimes I have D6 blindness.

boombatower’s picture

At the moment there is no 6.x-2.x of libraries...that would be a requirement.

2ndmile’s picture

Thanks for finding this! Saved my butt!

frjo’s picture

Component: Change to library » Code
Assigned: Unassigned » frjo
Status: Reviewed & tested by the community » Needs review

I have committed an updated PHP Markdown extra library to 6-dev. Please test and I will make a 6.x-1.3 release.

I'm the new maintainer of the Markdown filter module. I will concentrate on the D7 version, expect the D6 version to be minimally maintained.

frjo’s picture

Version: 6.x-1.2 » 6.x-1.x-dev
frjo’s picture

Status: Needs review » Fixed

Version 6.x-1.3 is released.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.