dbdh Posted March 12, 2006 Posted March 12, 2006 Help! I messed up big time. I am not a computer buff and I was trying to edit my ups.php page, so when my customer checks out, it will only show the ups ground method. well, I erased all of the other shipping methods for ups and now when the customer clicks on checkout it has this message: Parse error: parse error, unexpected '}', expecting ')' in /includes/modules/shipping/ups.php on line 47 Can someone please help? Thank you in advance.
♥Vger Posted March 12, 2006 Posted March 12, 2006 Well, it's not easy to help because you've edited the file and we don't know what you've done that's led to that error message. It could be anything. Best thing to do is to restore the original file - which hopefully you took a backup of before you started editing. Vger
dbdh Posted March 12, 2006 Author Posted March 12, 2006 Well, it's not easy to help because you've edited the file and we don't know what you've done that's led to that error message. It could be anything. Best thing to do is to restore the original file - which hopefully you took a backup of before you started editing. Vger Does this help? this is where I deleted all of the other shipping methods: $this->=array('GND' => 'Ground' The rest of the shipping methods, i erased. I hope this will provide a clue to what I did wrong.
dbdh Posted March 12, 2006 Author Posted March 12, 2006 Can you tell me how to restore the file? I don't want to mess anything else up.
vazash Posted April 7, 2006 Posted April 7, 2006 Can you tell me how to restore the file? I don't want to mess anything else up. If you have a backup of the file just copy and paste the file over this one. and everything should be back to normal... If you want to remove the other methods, instead of deleting it you could just comment it out by using // for one line or for multiple lines you could use /* and at the end */ these comments are for a block of text spanning multiple lines hence you have to use the start comment tag '/*' and end it with the '*/'
Recommended Posts
Archived
This topic is now archived and is closed to further replies.