SmartDown blanking out plugins page

adam's Avatar

adam

27 Mar, 2010 01:46 AM via web

Got a site where they use MarkDown, figured this would be good. But uploading it to my plugins folder blanks out the Plugins page on the site, v1.6.8 (build 20090915 I'm afraid).

  1. Support Staff 2 Posted by Stephen Lewis on 27 Mar, 2010 12:23 PM

    Stephen Lewis's Avatar

    Hi Adam,

    Got a site where they use MarkDown, figured this would be good. But uploading it to my plugins folder blanks out the Plugins page on the site...

    Did you copy the smartdown folder to your plugins directory, along with the pi.smartdown.php file?

    Cheers,
    Stephen

  2. 3 Posted by adam on 29 Mar, 2010 09:06 AM

    adam's Avatar

    Yes I did.

  3. Support Staff 4 Posted by Stephen Lewis on 29 Mar, 2010 09:12 AM

    Stephen Lewis's Avatar

    OK, are any of the following plugins still installed?

    • pi.mardown.php
    • pi.smartypants.php
    • pi.markypants.php

    If so, could you remove them, to see if it's a conflict with those plugins please?

    Thanks,
    Stephen

  4. 5 Posted by adam on 29 Mar, 2010 09:47 AM

    adam's Avatar

    That was quick. Had Markdown, removed it, still blank. No error message either, even with error_reporting(E_ALL) set in the site's system folder index.php.

  5. Support Staff 6 Posted by Stephen Lewis on 29 Mar, 2010 09:59 AM

    Stephen Lewis's Avatar

    That was quick. Had Markdown, removed it, still blank. No error message either, even with error_reporting(E_ALL) set in the site's system folder index.php.

    Very strange. Are you definitely running PHP 5?

    Cheers,
    Stephen

  6. 7 Posted by adam on 29 Mar, 2010 10:21 AM

    adam's Avatar

    Yes, 5.2.11

  7. Support Staff 8 Posted by Stephen Lewis on 29 Mar, 2010 12:24 PM

    Stephen Lewis's Avatar

    Adam,

    Can you comment out the two require_once lines at the top of the pi.smartdown.php file, and see whether that at least allows the Plugins page to display?

    Thanks,
    Stephen

  8. 9 Posted by adam on 29 Mar, 2010 01:54 PM

    adam's Avatar

    Good call, yes, with them commented out the plugin page now displays again.

  9. Support Staff 10 Posted by Stephen Lewis on 29 Mar, 2010 05:07 PM

    Stephen Lewis's Avatar

    Hi Adam,

    Good call, yes, with them commented out the plugin page now displays again.

    OK. The problem is that SmartDown can't load the required files for some reason.

    You confirmed that the smartdown folder (and its contents) are definitely present in the plugins directory, so we can rule that out.

    That leaves either read permissions on the smartdown folder (and its contents), or some problem with the built-in ExpressionEngine plugin path variable.

    Regarding the latter, if you've moved the system folder above the root, that could potentially cause a problem; have you?

    Cheers,
    Stephen

  10. Support Staff 11 Posted by Stephen Lewis on 30 Mar, 2010 10:24 PM

    Stephen Lewis's Avatar

    Hi Adam,

    Any news on this?

    Cheers,
    Stephen

  11. 12 Posted by wcbaker on 01 Apr, 2010 11:47 AM

    wcbaker's Avatar

    Stephen, I'm having the same issue. I've tried setting permissions on the smartdown folder and it's contents to 777, but that didn't help. I also tried to see if PHP could get to the file using var_dump(file_exists(PATH_PI .'smartdown/markdown/markdown.php')); and it returned true. Any other thoughts?

  12. Support Staff 13 Posted by Stephen Lewis on 01 Apr, 2010 11:57 AM

    Stephen Lewis's Avatar

    Hi Wes,

    Just to confirm that it is the same issue, does commenting out the require_once lines solve the white screen problem?

    Cheers,
    Stephen

  13. 14 Posted by wcbaker on 01 Apr, 2010 12:07 PM

    wcbaker's Avatar

    Yes, as soon as I get rid of that the plugins page loads just fine.

  14. Support Staff 15 Posted by Stephen Lewis on 01 Apr, 2010 02:00 PM

    Stephen Lewis's Avatar

    Yes, as soon as I get rid of that the plugins page loads just fine.

    OK, this is really baffling me.

    Could you echo out both require_once paths, and confirm that they're correct, please?

    echo PATH_PI .'smartdown/markdown/markdown.php';
    echo PATH_PI .'smartdown/smartypants/smartypants.php';
    

    And could you also confirm that there aren't any other add-ons (plugins or extensions, specifically) that use their own Markdown or SmartyPants classes?

    The only ones I'm aware of are the Markdown and SmartyPants plugins, but you may know better.

    If both of those are dead-ends, the only other thing I can think of is that your open_basedir settings may be causing problems. No idea how though, given that SmartDown is trying to load a file from within the current directory tree...

    Let me know how you get on.

    Cheers,
    Stephen

  15. 16 Posted by wcbaker on 01 Apr, 2010 04:06 PM

    wcbaker's Avatar

    I hadn't tried removing pi.markdown.php since I saw Adam had no luck with it, but once I removed that it started working again.

    I appreciate your help with this.

  16. Support Staff 17 Posted by Stephen Lewis on 01 Apr, 2010 04:10 PM

    Stephen Lewis's Avatar

    Hi Wes,

    I hadn't tried removing pi.markdown.php since I saw Adam had no luck with it, but once I removed that it started working again.

    Excellent. Just as well really, I was out of ideas!

    I appreciate your help with this.

    You're welcome, glad you got it all working.

    Cheers,
    Stephen

  17. Stephen Lewis closed this discussion on 01 Apr, 2010 04:10 PM.

Comments are currently closed for this discussion. You can start a new one.