BobKinloch
Member
Posted 7 months 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/
palatino
Member
Plugin Author
Posted 7 months 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.
BobKinloch
Member
Posted 7 months 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
palatino
Member
Plugin Author
Posted 7 months 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.
BobKinloch
Member
Posted 7 months 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
palatino
Member
Plugin Author
Posted 7 months ago #
Yes I see, Hierarchical Documentation is using an older version of Markdown. I tried this solution and it worked in my test
install:
- Copy the content of
/flexible-frontend-login/includes/markdown.php to /hierarchical-documentation/app/libs/markdown.php
- 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.
BobKinloch
Member
Posted 7 months ago #
Thank you,
a really good 'fix'
palatino
Member
Plugin Author
Posted 7 months 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 ;-)