Guest Posted August 28, 2013 Posted August 28, 2013 OK, I'm new to OSCommerce, but love it already. I've got two sites I'm trying to put up. But on one of them, after I got most of my products setup, I somehow made a mistake and reset all my file permissions and killed the site. Using the 2nd site, I corrected most of them, but still have problems getting into my admin section. Surely, I'm not the first to have done this. Is there not a way to run a script that will set all permissions like they should be in order to get the site running again? It would be SO COOL if someone had a script that would go through your OSC folder and set everything right. At this point, I've had limited success getting admin to work, but it didn't appear to have CSS operating when it was working. Right now, all I get is these errors: (and there is no directory at includes/languages/english/modules/cfg_modules/). Any help would be appreciated. Warning: include(includes/languages/english/modules/cfg_modules/cfgm_header_tags.php): failed to open stream: Permission denied in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 28 Warning: include(includes/languages/english/modules/cfg_modules/cfgm_header_tags.php): failed to open stream: Permission denied in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 28 Warning: include(): Failed opening 'includes/languages/english/modules/cfg_modules/cfgm_header_tags.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 28 Warning: include(includes/modules/cfg_modules/cfgm_header_tags.php): failed to open stream: Permission denied in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 29 Warning: include(includes/modules/cfg_modules/cfgm_header_tags.php): failed to open stream: Permission denied in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 29 Warning: include(): Failed opening 'includes/modules/cfg_modules/cfgm_header_tags.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 29 Fatal error: Class 'cfgm_header_tags' not found in /home/ecoftp/public_html/osc/admin/includes/classes/cfg_modules.php on line 31
♥geoffreywalton Posted August 28, 2013 Posted August 28, 2013 Funnily enough I wrote an add-on to do just this http://addons.oscommerce.com/info/6134 HTH G Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted August 29, 2013 Posted August 29, 2013 OK, two things... 1) When I went to install, the instructions need to be updated for this part: "3. Add this line to admin/includes/boxes/tools.php '<a href="' . tep_href_link(FILENAME_CHECK_PERMISSIONS) . '" class="menuBoxContentLink">' . BOX_TOOLS_CHECK_PERMISSIONS . '</a><br>' . after BOX_TOOLS_NEWSLETTER_MANAGER . '</a><br>' ." They have changed this file to an array and it's different now. and 2. Is there a way to kick this off without being in the admin area? My permissions have me where I can't access that area right now. Thanks!
Guest Posted August 29, 2013 Posted August 29, 2013 Nevemind. I found that if I scrolled down far enough, I found the admin tools below all the errors! :) Your tool did the trick! Thanks a ton! Carl
♥geoffreywalton Posted August 29, 2013 Posted August 29, 2013 You are right the add on was originally developed for rc2a site and has never been updated to work on 2.3 sites. Still sometimes you just need to think out of the box and don't get stuck on following every step of the installation instructions, you can always run scripts by putting the code into the address bar e.g. Go to you site say www.theukwaltons.co.uk and then add the name of the script to the url e.g. www.theukwaltons.co.uk/check_permissions.php and press enter. Glad it worked. Cheers G PS Generally speaking it is essential that you follow every step in the installation instructions, if it isn't needed the developer would not have spent time writing it!!!!!! Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.