Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

2.1 not displaying HTML correctly?

I just upgraded my forum to 2.1 and everything seems to be working fine EXCEPT two issues.

1) any HTML code in my old posts is displaying as the code instead of viewing properly. So links, images, and paragraph breaks all show as code. New posts are fine as far as paragraphs go, but the images and links still do the same. How can I fix this?

2) A few discussions are not viewable at all for some reason; you get a "Something has gone wrong" error message. I'm not sure why. Only possibility I can think of is it related to the # of replies since all the posts not visible are ones that have replies from the old version. Any new comments don't seem to affect the discussions that are working, so I'm not sure.

Any suggestions??

Comments

  • Options
    LincLinc Detroit Admin

    1- Can you browse your database directly and look at the Format column on the GDN_DIscussion table and tell me what the rows say there?

    2 - Have you run /utility/update? Add the debug config setting in the upgrade troubleshooting instructions so we can see the real error message.

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    add this to your config.php to see the full error

    $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';

    make sure you have htmlawed true in there too...as enabled plugin...

  • Options
    TamaTama United Kingdom ✭✭✭

    You may have disabled/removed the htmlawed plugin. Can you check if it's still in your plugins folder and/or is enabled in your config file?

    There was an error rendering this rich post.

  • Options

    Discussion 1, 3, and 7 work. The others don't.

    I ran the upgrade install with debug on and there weren't any errors; it installed successfully.

    I see htmlawed in the plugins folder, but don't see it enabled in config nor is listed as a plugin I can enable. How can I enable it manually?

  • Options
    hgtonighthgtonight ∞ · New Moderator
    edited May 2014

    Welcome to the community!

    Add $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed'; to your /conf/config.php file to manually enabled HtmLawed.

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    Were you using HTMLPurifier before? (It's what I've always used instead of HtmLawed.)

  • Options

    Didn't even get a chance to try it because suddenly my forum doesn't load anything! Just get a blank page on anything related to it. The rest of my website and any non-vanilla pages work fine. D: I haven't even edited anything today so I have no idea what happened. Tried to overwrite the files and run the install again, cleared the cache as well as my browser's cache/cookies, but didn't help. Put in the error message config, but I still just get a blank page. On my phone, it showed up as an error 500 for a while, but now is also a blank page. No related errors listed in my error log.

    (Also, was not using HTMLPurifer before)

  • Options
    peregrineperegrine MVP
    edited May 2014

    Put in the error message config,

    ambiguous info leads to ambiguous answers.

    state what config options you added to config.php.

    post your config.php (remove the passwords, salts and other sensitive info.).

    http://vanillaforums.org/discussion/comment/199091/#Comment_199091

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    config:

    <?php if (!defined('APPLICATION')) exit();
    
    // Conversations
    $Configuration['Conversations']['Version'] = '2.0.18.10';
    
    
    
    // EnabledApplications
    $Configuration['EnabledApplications']['Conversations'] = 'conversations';
    $Configuration['EnabledApplications']['Vanilla'] = 'vanilla';
    
    $Configuration['Garden']['Errors']['MasterView'] = 'deverror.master.php';
    
    // EnabledPlugins
    $Configuration['EnabledPlugins']['Emotify'] = TRUE;
    $Configuration['EnabledPlugins']['ButtonBar'] = TRUE;
    $Configuration['EnabledPlugins']['AllViewed'] = TRUE;
    $Configuration['EnabledPlugins']['ImageUpload'] = TRUE;
    $Configuration['EnabledPlugins']['OpenID'] = TRUE;
    $Configuration['EnabledPlugins']['GoogleSignIn'] = TRUE;
    $Configuration['EnabledPlugins']['FileUpload'] = TRUE;
    $Configuration['EnabledPlugins']['PlUpload'] = TRUE;
    $Configuration['EnabledPlugins']['PostCount'] = TRUE;
    $Configuration['EnabledPlugins']['ProfileExtender'] = TRUE;
    $Configuration['EnabledPlugins']['Quotes'] = TRUE;
    $Configuration['EnabledPlugins']['Spoilers'] = TRUE;
    $Configuration['EnabledPlugins']['Tagging'] = TRUE;
    $Configuration['EnabledPlugins']['ThankfulPeople'] = TRUE;
    $Configuration['EnabledPlugins']['WhosOnline'] = TRUE;
    $Configuration['EnabledPlugins']['LastEdited'] = TRUE;
    $Configuration['EnabledPlugins']['wysihtml5'] = TRUE;
    $Configuration['EnabledPlugins']['HtmLawed'] = 'HtmLawed';
     
    
    
    // Garden
    $Configuration['Garden']['Theme'] = 'vetro';
    $Configuration['Garden']['Title'] = 'Crit Space';
    $Configuration['Garden']['Cookie']['Domain'] = '';
    $Configuration['Garden']['Registration']['ConfirmEmail'] = TRUE;
    $Configuration['Garden']['Email']['SupportName'] = 'Crit Pad';
    $Configuration['Garden']['Version'] = '2.1';
    $Configuration['Garden']['RewriteUrls'] = TRUE;
    $Configuration['Garden']['CanProcessImages'] = TRUE;
    $Configuration['Garden']['Installed'] = TRUE;
    $Configuration['Garden']['Format']['Hashtags'] = FALSE;
    $Configuration['Garden']['Html']['SafeStyles'] = FALSE;
    $Configuration['Garden']['InputFormatter'] = 'Html';
    $Configuration['Garden']['HomepageTitle'] = 'Crit Space';
    $Configuration['Garden']['Description'] = 'Where we can come and get better at creative stuff together. 8)';
    $Configuration['Garden']['ThemeOptions']['Name'] = 'Vetro';
    $Configuration['Garden']['ThemeOptions']['Styles']['Key'] = 'Vetro Orange and Green';
    $Configuration['Garden']['ThemeOptions']['Styles']['Value'] = '%s_orgr';
    
    // Plugins
    $Configuration['Plugins']['GettingStarted']['Dashboard'] = '1';
    $Configuration['Plugins']['GettingStarted']['Plugins'] = '1';
    $Configuration['Plugins']['GettingStarted']['Categories'] = '1';
    $Configuration['Plugins']['GettingStarted']['Discussion'] = '1';
    $Configuration['Plugins']['GettingStarted']['Profile'] = '1';
    $Configuration['Plugins']['OpenID']['Enabled'] = TRUE;
    $Configuration['Plugins']['GoogleSignIn']['Enabled'] = TRUE;
    $Configuration['Plugins']['Tagging']['Enabled'] = TRUE;
    $Configuration['Plugins']['StatisticsFooter']['Show'] = 'vutc';
    $Configuration['Plugins']['ThankfulPeople']['AllowTakeBack'] = TRUE;
    $Configuration['Plugins']['FileUpload']['Enabled'] = TRUE;
    $Configuration['Plugins']['ProfileExtender']['ProfileFields'] = 'Location,Facebook,Twitter,Website';
    $Configuration['Plugins']['ProfileExtender']['RegistrationFields'] = 'Location';
    $Configuration['Plugins']['ProfileExtender']['TextMaxLength'] = 140;
    $Configuration['Plugins']['PlUpload']['PreMaxUploadSize'] = '100';
    $Configuration['Plugins']['PlUpload']['PreMaxUploadQuality'] = '100';
    $Configuration['Plugins']['PlUpload']['PreMaxUploadWidth'] = '650';
    $Configuration['Plugins']['PlUpload']['PreMaxUploadHeight'] = '650';
    
    // Routes
    $Configuration['Routes']['DefaultController'] = array('activity', 'Internal');
    
    // Vanilla
    $Configuration['Vanilla']['Version'] = '2.0.18.10';
    $Configuration['Vanilla']['Categories']['MaxDisplayDepth'] = '3';
    $Configuration['Vanilla']['Categories']['DoHeadings'] = FALSE;
    $Configuration['Vanilla']['Categories']['HideModule'] = FALSE;
    $Configuration['Vanilla']['Categories']['Layout'] = 'mixed';
    $Configuration['Vanilla']['Discussions']['Layout'] = 'modern';
    
    // Last edited by delusioninabox (71.59.27.140)2014-05-01 02:55:11
    

    Nothing has been changed since this morning, when it was last working, except the addition of HtmLawed (which I added after it was already not working).

  • Options
    peregrineperegrine MVP
    edited May 2014

    you say you are using version 2.1 - (your config reflects. 2.0.18.10 - this could be stale).

    I would remove these temporarily by changing TRUE to FALSE or just deleting the following line in config.php

     $Configuration['EnabledPlugins']['Emotify'] = TRUE;
    $Configuration['EnabledPlugins']['ButtonBar'] = TRUE;
    $Configuration['EnabledPlugins']['AllViewed'] = TRUE;
    $Configuration['EnabledPlugins']['ImageUpload'] = TRUE;
    $Configuration['EnabledPlugins']['OpenID'] = TRUE;
    $Configuration['EnabledPlugins']['GoogleSignIn'] = TRUE;
    $Configuration['EnabledPlugins']['FileUpload'] = TRUE;
    $Configuration['EnabledPlugins']['PlUpload'] = TRUE;
    $Configuration['EnabledPlugins']['PostCount'] = TRUE;
    $Configuration['EnabledPlugins']['ProfileExtender'] = TRUE;
    $Configuration['EnabledPlugins']['Quotes'] = TRUE;
    $Configuration['EnabledPlugins']['Spoilers'] = TRUE;
    $Configuration['EnabledPlugins']['Tagging'] = TRUE;
    $Configuration['EnabledPlugins']['ThankfulPeople'] = TRUE;
    $Configuration['EnabledPlugins']['WhosOnline'] = TRUE;
    $Configuration['EnabledPlugins']['LastEdited'] = TRUE;
    $Configuration['EnabledPlugins']['wysihtml5'] = TRUE;
    

    don't change anything else in the config except for this and the above.

    I'd also change the theme to

    $Configuration['Garden']['Theme'] = 'bittersweet';

    make a copy of your old config.php and save it off-line in case you need it.

    you have numerous plugins that may not work in vanilla 2.1 without modification.

    and add this:

    $Configuration['Debug'] = TRUE;

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    I'm not sure why it still says 2.0.18.10 either; just noticed that earlier. It should be 2.1 since the installation supposedly worked...

    Deleted those lines and changed the theme, but still not working. :( Still blank pages.

  • Options
    peregrineperegrine MVP
    edited May 2014

    and you added

    $Configuration['Debug'] = TRUE;

    index.php file will show you the version you are using. if you can't get to your dashboard.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    edited May 2014

    Ah, now it works again!!

    it says:

    Need to re-index theme cache
    Need to re-index plugin cache

    The HTML works, so that's good. And I can view the posts that weren't loading before. The ones that weren't working previously have this error on the bottom:

    CommentModel->PageWhere()
    Info

    Comment.Page.30.4.1: false

    Info CommentModel->CachePageWhere()
    Info

    Comment.Page.30.4.1: array (
    0 => '2014-04-20 09:27:07',
    )

  • Options
    peregrineperegrine MVP
    edited May 2014

    .

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options
    peregrineperegrine MVP
    edited May 2014

    so enable your plugins one by one

    enable ONE plugin at a time...

    view discussions and post a test discussions

    then enable the next plugin and repeat.

    enable them via the dashboard. DO NOT ENABLE via config.php

    leave your theme as bittersweet.

    until you have determined which plugins give you problems.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    It was the Thankful People plugin, which I am fine leaving off for now. Would rather have a working site haha

    Thank you!!! :)

  • Options

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.