• This is the website https://visionarygardens.co.uk/

    I tried to make a change on media.php file, messed up. I now have this error. I was trying to change the image border colour on line on 767
    border: 2px solid #cfcfcf;

    getting this error now whole site down.
    Parse error: syntax error, unexpected T_VARIABLE in /home/kathydtg/public_html/visionarygardens.co.uk/wp-includes/media.php on line 732

    This is the code below of the file, many thanks

    [ Moderator note: 1,560 unnecessary lines deleted. That’s part of the standard WordPress files; if you do need to share please use pastebin.com instead and post that link. ]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Download a fresh copy of WordPress, extract the wp-includes/media.php file and upload it to your site using FTP. And never, EVER, edit core WordPress files.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I tried to make a change on media.php file, messed up.

    You really do not want to ever modify files that came with WordPress. As you’ve discovered it can go really badly.

    Try downloading a fresh copy of WordPress 3.5.1 and re-upload all of the files in that zip file except for the wp-content directory. You can exclude that directory.

    Or just extract wp-includes/media.php and upload just that file.

    https://www.ads-software.com/latest.zip

    Once that’s done and you ar back and running: what were you trying to accomplish by editing that file?

    Edit: You were trying to change a color, I missed that.

    Thread Starter kathydtg

    (@kathydtg)

    Thank you so much for your help It has worked. You have made my day, I felt quite sick and have to go into hospital tomorrow so was dreaded not having it sorted out. I was trying to change the image border colour like on here. I do not like they grey around the image
    https://visionarygardens.co.uk/oriental-themed-garden-design/

    I will not be touching core file again

    Thanks again

    Kathy

    That border is controlled by your theme’s CSS – not by any core WordPress file. Where did you download the theme from?

    Thread Starter kathydtg

    (@kathydtg)

    flexithemes, I had a look in the css file but could not see it. Thanks

    I’m sorry but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not support commercial themes here.
    Try https://flexithemes.com/support

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Parse error: syntax error, unexpected T_VARIABLE’ is closed to new replies.