Help Posting is screwed up.

Discussion in 'Feedback & Assistance' started by KeybladeSpirit, Apr 23, 2011.

Thread Status:
Not open for further replies.
  1. KeybladeSpirit [ENvTuber] [pngTuber]

    Joined:
    Aug 1, 2007
    Gender:
    Girl ️‍⚧️
    Location:
    College
    2,178
    Basically, when I set up my first post template, the forum stopped showing the box to type my posts. I also get this at the top of the page:

    Parse error: syntax error, unexpected T_STRING in /home/khvids/public_html/includes/class_core.php(4078) : eval()'d code on line 112

    WHen I deleted the template, it was fine. Anyone willing to help?
     
  2. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    Did the template have an apostrophe in the title?
     
  3. Doukuro Chaser

    Joined:
    Jun 29, 2007
    Gender:
    Female
    1,172
    Same thing happened to me. Misty said it was something to do with having an apostrophe in the posting template's title. Remove that and you should be fine.

    Edit: Speak of the devil... lol, I was too slow in posting.
     
  4. KeybladeSpirit [ENvTuber] [pngTuber]

    Joined:
    Aug 1, 2007
    Gender:
    Girl ️‍⚧️
    Location:
    College
    2,178
    No, but the category did.
     
  5. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    If you remove the apostrophe it should work. It's a weird bug with the Post Templates mod (though the only downside so far), I will definitely look into getting it fixed up.
     
  6. Kubo Kingdom Keeper

    Joined:
    Feb 6, 2010
    Gender:
    Male
    Location:
    Penalty area, ready to shoot
    108
    983
    Let's see if have some luck describing this...

    Sometimes, an apostrophe (or another special character, like ";"), confuses the program, as it can't really understand if it's a text character or a symbol used as a programming... "tool". lol I'm bad at finding the right words.
    Like, look at this example:
    Code:
    <?
    echo 'we don't know';
    ?>
    There are 3 apostrophes... the program can't tell which are the two it needs to operate correctly and which is used for the text. Thus when you're in a position like that, you cancel the text apostrophe with a backslash, like that:
    Code:
    <?
    echo 'we don\'t know';
    ?>
    This is, I imagine, the problem. Somewhere in the coding this mistake was made.
    Now, the problem seems to be in class_core.php, on line 4078.
    To fix that kind of problem isn't hard. But I dunno if there's any side-effects to the mod or anywhere else lol.
    I'm sure line 4078 of class_core is this one:
    Code:
    ( $hook = vBulletinHook :: fetch_hook ( '[B]hook_id(that's the problem)[/B]' )) ? eval( $hook ) : false ; 
    Now, we must find the hook location. The location of where the hook_id is executed.
    admin panel -> products and plugins -> (dunno how it's called lol) and find the particular plugin that has that hook_id. If there's more than one with the same id... well you can start enabling disabling to see which one reproduces the problem.
    Then you open it to see its code, and go to the line 112. Not sure what you'll find there. xD Perhaps you might even be able to fix the apostrophe from there. (Btw, instead of canceling it -which is only used when you want an apostrophe in a text- you can replace it with double quotes: " "). If not... then there might be a function next to a name like something_template_something. Or ... something like that.
    So you just copy "function something.template.something" and go to the server to find which of its .php files include that line... im sure you know how to do that. But afterwards... who knows. Do the same as you would do if the error was in the code earlier (replace apostrophe with double quotes).

    Man my head hurts so much it might explode. I must have made a lot of mistakes writing this, even confused some words but that's the genEral idea.
     
  7. P Banned

    Joined:
    Oct 5, 2007
    Location:
    New Zealand
    366
  8. Kubo Kingdom Keeper

    Joined:
    Feb 6, 2010
    Gender:
    Male
    Location:
    Penalty area, ready to shoot
    108
    983
    P, I bow.
    4 hundred hours I was searching for a particular fix, but didnt find anything.
    Sucks lol.
    Thanks man.
    A nice and simple solution
    For the page's
    F**k up.

    Good news is noone will have to mess around with the server's files.
     
  9. Misty gimme kiss

    Joined:
    Sep 25, 2006
    Gender:
    Cisgender Female
    Location:
    alderaan
    6,590
    Updated everything, seems to be working fine now. Thanks P (and Kubo, for typing all of that out, haha)!
     
Thread Status:
Not open for further replies.