WordPress.org

Ready to get started?Download WordPress

Forums

Error, can't install wordpress (16 posts)

  1. DVA10
    Member
    Posted 5 years ago #

    I'm trying to install wordpress on two of my domains, none of them work. It works if I install locally, though.

    I've been using a fresh installation of WordPress, that's the error:
    Error: Parse error: syntax error, unexpected T_VARIABLE in /home/marioj/public_html/demo/wp-includes/functions.php on line 451

    Here's the url (the installation screen didn't even appear):
    http://www.mariojankovic.com/demo

  2. dlynch95
    Member
    Posted 5 years ago #

    I just posted this thread, I think I may have posted in the wrong section...

    I just attempted to upgrade from 2.2.3 to 2.7.1. I backed up the files on the site but not the data (yes yes i know...) When trying to view any of the pages I get the following error message:

    Parse error: parse error, unexpected T_ELSE in D:\WWW\wmaastudios.org\wwwroot\data\index.php on line 51

    where wmaastudios.org is the site and data is the file the blog is in. I opened my local copy of index.php and there's only 18 lines of code so I'm completely lost as to what to do here other than attempt to revert back to the older version. Thoughts? Comments?

    There isn't anyway that this problem isnt as catastrophic as it looks right now is there?

  3. DVA10
    Member
    Posted 5 years ago #

    Please help, I am becoming desperate.

  4. dlynch95
    Member
    Posted 5 years ago #

    ditto.

  5. khmedia
    Member
    Posted 5 years ago #

    try to deactivate all your plugins and reactivate them. This could help you.

    [signature moderated Please read the Forum Rules]

  6. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    DVA10: unexpected T_VARIABLE errors are usually attributable to bad EOF in a file somewhere. Make sure that when you're ftp'ing your ftp software actually OVERWRITES the files on the server and then re ftp everything. Note that many servers say that they're overwriting but they do not! When starting over, it's best to manually delete the files on the server, and then ftp/untar the files again...

    dlynch95: That's quite a jump for your plugins! The 'error' is in one of the files that index.php calls -which is basically any file used by any other file! Start by renaming the plugins folder to something else e.g. fplugins to hide it from WP. The objective here is to get the W core updated and running before messing with plugins...

  7. DVA10
    Member
    Posted 5 years ago #

    Dunno what I did but it works.

    Thanks musnake.

  8. dlynch95
    Member
    Posted 5 years ago #

    I renamed the plugins folder, that didn't work. I even emptied the folder (I have backups of the all the plugins) just in case changing the directory wasn't enough but that still didn't work.

    Should I just go through the blog systematically renaming directoties to figure out where the problem is?

  9. dlynch95
    Member
    Posted 5 years ago #

    I renamed the plugins folder, that didn't work. I even emptied the folder (I have backups of the all the plugins) just in case changing the directory wasn't enough but that still didn't work.

    Should I just go through the blog systematically renaming directoties to figure out where the problem is?

  10. dlynch95
    Member
    Posted 5 years ago #

    I renamed the plugins folder, that didn't work. I even emptied the folder (I have backups of the all the plugins) just in case changing the directory wasn't enough but that still didn't work.

    Should I just go through the blog systematically renaming directoties to figure out where the problem is?

  11. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    dylnch95: If you've already lost your data and have to start over, you may as well do a clean install of WP2.7.1

    No db backups right?

  12. dlynch95
    Member
    Posted 5 years ago #

    No db backups, but if I'm getting this error does that mean the db is necessarily lost?

  13. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    Hmm, not necessarily lost, I guess. I would take a back up of whatever db you have now...

    So, you're certain that all the WP2.7.1 files are on your server?

    Does the upgrade stop at the same point when you try and restart the process?

  14. dlynch95
    Member
    Posted 5 years ago #

    Ugh. The major reason I don't have a back up of the db is because the server the blog is on doesn't support phpmyAdmin and they suggested installing the application locally. The directions for doing so were entirely greek to me however.

    Still, I suppose figuring that out is worth it if I can somehow get all of this working without rebuilding my blog. Is there another app or easier way to back up the db from the client side that you know of? The server I'm dealing with is running Helm if that helps at all.

  15. dlynch95
    Member
    Posted 5 years ago #

    Ok...

    I backed up my database using MySQLAdministrator and did a clean install. Fortunately the database was still there and I haven't lost any information. I am however getting the all too familiar parse error when I use the custom theme that I designed...

    Parse error: parse error, unexpected T_ELSE in D:\WWW\wmaastudios.org\wwwroot\data\wp-content\themes\wmaa artist info\index.php on line 51

    Rebuilding the theme is no big deal really but what exactly would cause this error in the theme? Is there something to look out for that I may be doing wrong?

  16. WebDev WaxLotus LLC
    Member
    Posted 5 years ago #

    Often, it's something like a missing PHP brace or bracket or semicolon etc... Check your conditional statements...

    Backup sans PHPMyAdmin:

    http://wordpress.org/extend/plugins/wordpressbackup/
    (not sure about my data on someone else's box)

    http://wordpress.org/extend/plugins/wp-db-backup/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.