kelly236 Posted July 2, 2010 Posted July 2, 2010 Im trying to install this contribution on my site but I noticed that in the catalog/admin/modules.php it says to add some code after this section: f (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { asking me to add this: if (is_array($value) ) { $value = implode( ", ", $value); $value = ereg_replace (", --none--", "", $value); } but my problem is I don't have the last line of code in my module file, mine stops at; case 'save': I don't have this line: while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { will this cause any problem with UPS quotes?, I apologize for the newbie question any help or direction would be greatly appreciated Thank you Kelly Quote
MrPhil Posted July 2, 2010 Posted July 2, 2010 Your file physically ends with the line case 'save': with nothing after it? That's not good. Your file has been truncated (chopped off), possibly by a botched add-on install. Depending on what add-ons you have installed, you may be able to compare the file with a "good" vanilla copy or (better yet) with your backup from before the mod, and manually cut and paste in the missing file content. It still may not work (if something was supposed to be added to the file at this point for the add-on). In that case you'll need to roll back your osC installation to before you started installing the add-on (back to your last working copy). By the way, there's no such thing as osC 2.2 MS2 RC2a. Get your version straight. MS2 is an old version of 2.2, while RC2a is the latest (probably last) version. The documentation for the add-on in question should tell you what version(s) it will run on. Quote
kelly236 Posted July 2, 2010 Author Posted July 2, 2010 Thank you so much for your time and help and I apologize for my ignorance on my version Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.