Anyone with PHP knowledge, weird error!

Discussion in 'Computer Gaming Forum' started by z_killemall, Apr 16, 2009.

  1. z_killemall

    z_killemall Familiar Face

    Joined:
    Dec 4, 2006
    Messages:
    1,116
    Likes Received:
    6
    Hi guys, maybe someone of you can help me out with this trouble.

    I recently instaled phpBB3 and a couple of mods for a new site I'm working with Tchoin since some time ago. Yesterday we started to modify the skin without noticing that phpBB3 keeps a cache of all recently used files in order to work faster, which needs to be deleted to see all changes made to the boards.
    Once the cache was deleted a PHP syntax error appeared:
    The only thing that line says is </html>.

    This error appears in the cached file, I added it below so maybe someone can figure out what's wrong with it.

    Thanks a lot in advance!
     
    Last edited: Apr 16, 2009
  2. drx

    drx BLAST PROCESSING. SITE SUPPORTER 2015

    Joined:
    Jun 16, 2006
    Messages:
    509
    Likes Received:
    275
    I think on of the variables (the {STUFF}) somehow got an <?, starting a PHP script, but not ending it. Hence the parse error.
     
  3. z_killemall

    z_killemall Familiar Face

    Joined:
    Dec 4, 2006
    Messages:
    1,116
    Likes Received:
    6
    Sorry, wrong code :p

    You just made me notice of a couple of errors I made, in first place I opened the file with Dreamweaver without noticing that the code was executed when downloaded. I'll edit the first post to show the real, not executed code.

    The other thing I just noticed is that I was so awfully used to phpDesigner 2008 that I didn't notice that Dreamweaver doesn't warn you about most of php syntax errors. I'll install phpDesigner and see if it detects something, I'm quite busy to check all the code by myself unless it's completely necessary...
     
  4. retro

    retro Resigned from mod duty 15 March 2018

    Joined:
    Mar 13, 2004
    Messages:
    10,354
    Likes Received:
    822
    You need to use a proper PHP editor to see WHAT line 235 is - it's not much use pasting reams and reams of code without knowing that.

    I use PSPad - it's free!

    Your best place to post this is the phpBB forum ;-)

    That error seems to be with the cache, though - purge the template and see if it works.
     
  5. z_killemall

    z_killemall Familiar Face

    Joined:
    Dec 4, 2006
    Messages:
    1,116
    Likes Received:
    6
    I forgot to mention it, I could solve that trouble some days ago! I decided to reupload the whole skins folder for second time and now it works great, I'm not sure yet about where the error was and why I had to reupload everything twice, but it's working and this time I was more careful when I edited the code.

    Thanks a lot anyway!
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page