WordPress.org

Ready to get started?Download WordPress

Forums

Flexible Frontend Login
[resolved] Getting Fatal Error on activate (8 posts)

  1. BobKinloch
    Member
    Posted 1 year ago #

    Would love to try this plugin as it seems to be exactly what I wanted but
    I am getting a fatal error on activate:

    Fatal error: Cannot redeclare class Markdown_Parser in C:\wamp\www\testing\wp-content\plugins\flexible-frontend-login\includes\markdown.php on line 152

    I am using theme twenty eleven

    Regards

    http://wordpress.org/extend/plugins/flexible-frontend-login/

  2. palatino
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your notice. I added a fix and would love to hear if it helps. Please download version 0.97.4 and test it. Let me know if or if not that resolves the problem.

  3. BobKinloch
    Member
    Posted 1 year ago #

    Hi
    have just downloaded the latest version and it is clashing with an existing plugin 'Hierarchical-documentation' that I am using on my main website

    Error:

    Cannot redeclare class Markdown_Parser in C:\wamp\www\testing\wp-content\plugins\hierarchical-documentation-example\app\libs\markdown.php on line 51

    sorry
    BobKinloch

  4. palatino
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Bob,
    as long as you use the "Hierarchichal Documentation" plugin you might want to use this workaround: Find the file /plugins/flexible-frontend-login/includes/options-page.php
    Put // in front of line 7 so it looks like this:
    // require_once( FFL_PATH . 'includes/markdown.php' ); // required to parse the readme.txt
    It's only a hack and you will have to renew it after a plugin update, but probably it will be the quickest fix.
    I will keep looking for a more convenient solution but it may take some time.

  5. BobKinloch
    Member
    Posted 1 year ago #

    Hi,

    there is a second instance of MARKDOWN on line 346
    /plugins/flexible-frontend-login/includes/options-page.php

    $readmetxt = MARKDOWN($readmetxt);

    Thanks
    Bob Kinloch

  6. palatino
    Member
    Plugin Author

    Posted 1 year ago #

    Yes I see, Hierarchical Documentation is using an older version of Markdown. I tried this solution and it worked in my test
    install:

    1. Copy the content of /flexible-frontend-login/includes/markdown.php to /hierarchical-documentation/app/libs/markdown.php
    2. In line 7 of /flexible-frontend-login/includes/options-page.php change line 7 from this
      require_once( FFL_PATH . 'includes/markdown.php' ); // required to parse the readme.txt

      to this

      // require_once( FFL_PATH . 'includes/markdown.php' ); // required to parse the readme.txt
      require_once( ABSPATH . '/wp-content/plugins/hierarchical-documentation/app/libs/markdown.php');

    Be aware that this is not a long term hack because any update of Flexible Frontend Login will erase those changes. I will include a check for the existence of Hierarchical Documentation in the next release but you should ask the developer to update the Markdown file in his plugin for better cooperation between the plugins.

  7. BobKinloch
    Member
    Posted 1 year ago #

    Thank you,
    a really good 'fix'

  8. palatino
    Member
    Plugin Author

    Posted 1 year ago #

    You might want to download the plugin once again since I have added a few lines which make the plugin working with Hierarchical Documentation without any hacking on your side. To your convenience ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.