Hi,

I am just downloaded and installed the module.

The following message displayed when I entered some stuff in markdown syntax.

modules\marksmarty\markdown.php line:826 : preg_replace_callback() [function.preg-replace-callback]: Unknown modifier '|'

I tried it with the following

## aa ##
*   Abacus
    * answer
*   Bubbles
    1.  bunk
    2.  bupkis
        * BELITTLER
    3. burper
*   Cunning

Would you please tell me if I missed something during installation ? Or did I find a bug?

Here is a list of info

  • OS: XP
  • Drupal version: 4.6.3
  • Browser tested: Firefox, IE, Opera
  • php: v5.1.1

Comments

pfaocle’s picture

Title: a bug? » Missing ctype module in PHP
Category: bug » support

We had this on our new server - it was down to PHP being built without Character Type Functions. They should be enabled by default post PHP 4.2.0, but if you're using a custom-built PHP set up, or are on a server with a particular/special port (like we are with FreeBSD) then you should check this first.

(Whack

phpinfo();

into a file and hit it with your browser, then search for 'ctype' - make sure the table is present on the page, and enabled.)

HTH

codepoet’s picture

I'm getting this as well, and I have ctype enabled. Other ideas?

codepoet’s picture

I know better, I should leave details...

Drupal 4.6.7, PHP 5.1.1

codepoet’s picture

Category: support » bug

Found it. PHP 5.1 changed how that function works. Get a new version of the markdown.php file and replace the one in the module with it and it works.

http://warpspire.com/journal/programming/php-511-markdown-and-wordpress-...

Filed as a bug so the maintainer can update the file, if HEAD isn't already updated. If not, can we get the 4.6.0 package updated with it?

teradome’s picture

Assigned: Unassigned » teradome

I'll try to get this in over the weekend. Thanks for tracking the issue down!

teradome’s picture

Status: Active » Fixed

the 4.6 tag has been updated -- the package should rebuild later today.

teradome’s picture

Oh and just to note, 4.7 and HEAD have the latest versions as well.

Anonymous’s picture

Status: Fixed » Closed (fixed)