Forums

[closed] Syntax error in functions.php. Host wants to charge large sum to fix! (26 posts)

  1. ajjjang
    Member
    Posted 4 months ago #

    I was trying to edit a wootheme that I had just uploaded to my site when I created a syntax error in functions.php. My host provider does not allow me access to fix this.

    I am consulting with a programmer friend who says it cann be fixed if I can figure out how to gain access to the following directory:
    "usr/local/pem/vhosts/150031/webspace/siteapps/1153/htdocs/wp-content/themes/bueno"

    Can someone give me instructions on how to FTP into this directory?

    thank you! ^_^

  2. jclark32
    Member
    Posted 4 months ago #

    You can access this file through the wordpress backend.

    appearance/editor

    then select your theme from the dropdown.

    make sure you take a back up of your file and you can just copy to a text editor for changes.

    I would normally recommend ftp but if you dont have access this is quick way to get access to any file in your theme.

  3. ajjjang
    Member
    Posted 4 months ago #

    Because of the Parse error I cannot log into the wordpress backend. Is there anyway to FTP in through wordpress and not my host provider without logging into the wordpress control panel (since I cannot get access)?

  4. jclark32
    Member
    Posted 4 months ago #

    Not that I know of. Sounds Like you need a new host haha.. What type of host does not allow you to access your own core files?

  5. robpachasa
    Member
    Posted 4 months ago #

    Ask your host for your FTP login information. I can't even tell guess what the url will have to be, but if you have cPanel or some sort you should be able to log-in with that information and ftp://yourdomain

    If they won't give you FTP access, get a new host.

    If you do have access to a cPanel or somesort there should be a quick FTP option somewhere in there.

  6. ajjjang
    Member
    Posted 4 months ago #

    crystone.com

    they responded to my request with this:
    "Hej

    All information can be found in the controlpanel (ccp.crystone.net).

    For security reasons we can not give this information in this ticket.

    Please observe that if the customer uses our wordpress application they do not not have acces to the individual ftp files, all changes has to be made trough wp-admin."

    they also wanted to charge me close to $150 for a previous date restore. Is that normal?

    thank you for your help!

  7. robpachasa
    Member
    Posted 4 months ago #

    That's overly priced. I recomend looking for a new host ASAP (I use Inmotion and love it, but search for your own needs / price). Most hosts offer free restore for things like this.

    Try your Control Panel and see if you can FTP from in there

  8. robpachasa
    Member
    Posted 4 months ago #

    Also, to prevent things like this from happening try making code edits to a plugin and not the main theme file. I've crashed a 100+ sites before I learned that. If you don't know how to make your own plugin google "functionality plugin" (I recomend the third article down!) ; )

  9. ajjjang
    Member
    Posted 4 months ago #

    Thanks you for all your help. Unfortunately I cannot gain access to my FTP files from the host control panel. Is it possible to switch providers before I can fix the syntax error or will all of my site be lost? Thanks!

  10. govpatel
    Member
    Posted 4 months ago #

    Please observe that if the customer uses our wordpress application they do not not have acces to the individual ftp files, all changes has to be made trough wp-admin."

    Looks like you do not have any control over your wordpress like self host has.

    IF you really want full control of website then you nedd to look for a host who will give you everything including ftp access

    As is as you do not have way to get admin panel or you do not have access to your database you will have to start from scratch or try and get back up from them see if they give it you.

  11. ajjjang
    Member
    Posted 4 months ago #

    Well...a bit of an update. I gave in and asked my host to run the restore and I would just pay the fee and take it as a huge "lesson learned." I was then informed (for the first time mind you) that my host only keeps backups for 7 days. That much time has already passed.

    Does my host have access to FTP into my site and if so...how can I get them to fix my website. I cannot start from scratch! Especially since thus was a group project site and not only my work is at stake! Thank you!

  12. jclark32
    Member
    Posted 4 months ago #

    Your host should have full access to your site AS SHOULD YOU in an idea situation. Here is my suggestion. If you can some how get into phpmyadmin I would export your database and get a full backup of all files from ftp. Your host cant keep you from the files, if they are for some reason being it is a shared server and they did not set it up properly then ask them for both things. We can work out fixes those files once you have the entire site in your hand including the database.

    Best of Luck.

  13. kmessinger
    Member
    Posted 4 months ago #

    What is your url?

    From your host, Crystone . . .

    "The customer support team at crystone is so nice that we feel happy right in to our souls. After hanging up we want to call again, but the problem is that we don't have anything to ask about."

    Source, IDG web hotel test 2010

  14. ajjjang
    Member
    Posted 4 months ago #

    The URL is Bananamilk.net

    And I did get access to my files through ftpzilla but cannot find the name of the corrupted theme (bueno) or know exactly how to edit my functions.php folder. I found the file for functions.php but when I tried to open it the program it used was not compatible.

    Am I headed down the right path at all?

  15. wpismypuppet
    Member
    Posted 4 months ago #

    Can you log into your control panel at Crystone? (ccp.crystone.net) If you can't log into the control panel, then use the "forgot password" option on their control panel login, or CALL the company. No company will email or post login information without being able to verify the person they are giving it to. If you call, they'll get you in over the phone, after they verify who you are.

    Once in the control panel, you should be able to view/create an ftp account to get your files. Again, customer support can help you get that information, but you have to call... too much liability putting that info in writing!

    Another note, you don't HAVE to use the hosts WordPress install. You can use your own version once you can ftp. Using their service uses their files and databases that you don't have access too, BAD idea... set your own up. Buy their Standard package for $10/month and you'll have php + sql on a linux server. I know... it's $3.75 more a month than you are paying... but at least you'll save the $125 recover fee when this happens again!

  16. kmessinger
    Member
    Posted 4 months ago #

    And I did get access to my files through ftpzilla but cannot find the name of the corrupted theme (bueno)

    Yes, it looks like ftp works on your site. Look for directory wp-content/themes/bueno. Just rename the theme anything like xbueno. That will force wp to open with the default theme and you will be back in.

    You can also use ftp to replace the file wp-content/themes/bueno/functions.php with a new copy.

  17. ajjjang
    Member
    Posted 4 months ago #

    That's just it. I see previous themes that were used but
    Not the one I uploaded then poorly edited to create the error. I'm
    Not sure how that is possible, does it have something to do with using the wordpress site to
    Upload the theme. I actually was no the one who initially uploaded the theme to the site so not sure which method was used but I know they kept the filename "bueno." I did a search for any file name with the word bueno and got nothing. :/

  18. kmessinger
    Member
    Posted 4 months ago #

    I don't know why you can't see it with ftp. The error is Parse error: syntax error, unexpected '<' in /usr/local/pem/vhosts/150031/webspace/siteapps/1153/htdocs/wp-content/themes/bueno/functions.php on line 28 which clearly shows the file functions.php within a directory called bueno.

    Bueno is not the name of a file but of a directory/folder.

  19. ajjjang
    Member
    Posted 4 months ago #

    When I click the "siteapps" folder it tries then fails going me "failed to receive directory listing." so close...yet so far. :(

  20. fonglh
    Member
    Posted 4 months ago #

    See if there's somewhere in your FTP client where you can type in the whole path up to bueno.

    Siteapps may be a folder holding other people's sites, which is why you aren't allowed to list the contents.

  21. ajjjang
    Member
    Posted 4 months ago #

    Ok! Thank you! I was able to find the theme bueno. But now when I try to replace it with the original functions file on file ills it just gives me numerous error messages like "permission denied" or "no such file or directory." should I try to find the error and fix or is there a better way to replace it with a new one. I also tried erasing the file to upload the new one but got the same long list of errors.

  22. ajjjang
    Member
    Posted 4 months ago #

    Another update: I contacted the host asking for access for the exact directory since I am right there on FTP but cannot erase or replace it. This is the response I got:

    "Sorry access to those files are restricted and not for customer use, all changes must be made through wp-admin interface."

    And
    "Hi
    As you have done this yourself we can't help it, you did make a change that destroyed the site.

    If there I'd no backup available you have no choice but to delete the application wordpress and start again.

    I would advise you to install s normal wordpress Directly on the FTP as the customer has that option, then you do have access to the files."

    Can someone PLEASE tell me that not all is lost. This is not just my site and I had no idea this would happen, I was only trying to help. Doesn't the host have access even if they say I don't?

  23. wpismypuppet
    Member
    Posted 4 months ago #

    No, all should not be lost. Do you at least have access to your database? Through phpmyadmin or something? If not, the host should at least be nice enough to do a dump of the database and send it to you (you'll have to prove that you own the site). That's where all your posts and other pertinent information is. Call, beg and plead for that database dump. With that info, you can rebuild your site. You might lose your images though.

    If you don't know SQL or have an understanding of how WordPress uses it's databases, then find someone who does. You'll probably have to pay them, or if it's a close friend, maybe buy them a beer or something.

    If you get that information, then do as I mentioned before and build your own version of WordPress instead of using theirs! You'll have full access to all files and database material.

    One last note... if this host does not at least recover your database for you, find a new host and report them to the Better Business Bureau. Cause in my opinion, that's just poor customer service. It takes seconds to do a database dump...

  24. govpatel
    Member
    Posted 4 months ago #

    Can someone PLEASE tell me that not all is lost. This is not just my site and I had no idea this would happen, I was only trying to help. Doesn't the host have access even if they say I don't?

    Yes they do have access may be they want you to pay for their service. Try and see if you can backup of database if you have content on your wordpress.

    We who host our own wordpress do have full access to all files,folders and database so that we can manage without any problems.

    If I was you I would change my host as if you do not have access to core files you will run into problems in future and will be back to where you are now.

  25. ajjjang
    Member
    Posted 4 months ago #

    If I can't get in through filezilla do you think any of the other options will work? At this point I am terrified to mess anything else up and really just want to pay someone who knows what they are doing to recover all the work. Like I said this is not just my site and I do not what to have to tell these people I lost 3 years of work because I edited a theme wrong. Do you know of a realiable way to hire someone from wordpress to help?

    Thank you in advance,

  26. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Please try http://jobs.wordpress.net/ or http://codepoet.com/
    Topic now closed as per the Forum Rules

Topic Closed

This topic has been closed to new replies.

About this Topic