Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page links broken


dallasbird

Recommended Posts

Hello b4 you read - my site is adult sex toys- couplescorner.biz

Yesterday I was fixing wislist 2.3.4r4 and login box v1.2.1.z but mail wasn't working - tried to add an ini thing to both configure files and then ran header tags - then links off home page stopped working - today I reinstalled to header tags step v3.3.4.-1 because there was a glitch about page loading - but that did nothing, then I created a new configure file and some links came back but not all subcategory links - is there something I can define on the configure file to repair those links. Thank you

Link to comment
Share on other sites

Are you making all these changes at once, or one at a time and thoroughly testing, before going on to the next? I hope you have a site backup and can roll it back to a working version. Then you can try to fix one thing, and see if it breaks anything else, before proceeding. I don't know what you mean by "add an ini thing to both configure files" -- could you explain?

 

If you're already doing things this carefully, all I can say is that your site got stuffed in the weeds somewhere along the line. Go back to the last working version, and do more testing at each step, to see who the offending party is.

Link to comment
Share on other sites

My back up failed but I may have one from a year ago - everything works but the sub catagories are not loading - I hate to restart - i have x-sell,header tags v3, seo urls, wish list and a few others - I been thinking about migrating to new copy of oscommerce since I have updated since 2.0 - but isn't there a way to force those pages to load? Is there a command I can use on terminal to see why they are not loading. Thanks in advance - I'm still getting orders -thankfully...

 

By the way that ini thing I put at bottom of both configure files - since removed- something I found on a forum which had port info and password for smtp mail - I have been having problems sending mail - the problem occurred after I put that addition - at first I was getting a white and grey screen which said I couldn't connect to server and pages seemed to be missing a hash tag after my site name - then I reworked the configure page using the new one from a copy of full 2.3.4 and that brought back most of the pages - just not sub categories and some random pages. I didn't rework the admin side - I just removed the 3 lines of code that pointed to the smtp port. I will rework admin side - it just seems the configure file must be the culprit - any suggestions are most welcome - I'm backed up now and will get it back up one way or another -

Link to comment
Share on other sites

One more thing mrPhil, when I noticed the ini thing wasn't working and I was panicking cause pages were not loading - I removed the ini code but it did not change the page loading and missing hashtag - it wasn't until the next day I reworked the configure.php page on store side that it came back up and I got that feeling when you've been trying things for hours and suddenly you have a premonition that it will work...but I must be missing something

Link to comment
Share on other sites

Here is a copy of my configure file with the ini part at the bottom:

  Copyright © 2003 osCommerce

  Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
  define('HTTP_SERVER', 'http://couplescorner.biz');
  define('HTTP_CATALOG_SERVER', 'http://couplescorner.biz');
  define('HTTPS_CATALOG_SERVER', 'https://couplescorner.biz');
  define('HTTPS_SERVER', 'https://couplescorner.biz');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');
  define('HTTP_COOKIE_PATH', '/oscommerce/xxxxx/');
  define('HTTPS_COOKIE_PATH', '/oscommerce/xxxxx/');
  define('DIR_FS_DOCUMENT_ROOT', '/home/xxxxxxx/public_html/oscommerce/');
  define('DIR_WS_ADMIN', '/oscommerce/xxxx/');
  define('DIR_FS_ADMIN', '/home/xxxxxx/public_html/oscommerce/xxxxx/');
  define('DIR_WS_CATALOG', '/oscommerce/');
  define('DIR_FS_CATALOG', '/home/xxxxx/public_html/oscommerce/');
  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
  define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
  define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
  define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
  define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');
  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
  define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
  define('DB_SERVER_USERNAME', 'xxxxx');
  define('DB_SERVER_PASSWORD', 'xxxxxx');
  define('DB_DATABASE', 'xxxxxxxxxx');
  define('USE_PCONNECT', 'false'); // use persistent connections?
  define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
  ini_set("SMTP","****");
  ini_set("smtp_port","80");
  ini_set("sendmail_from","[email protected]");
?>
 

Link to comment
Share on other sites

Ah, you're setting PHP configurations (settings) via ini_set(). That kind of stuff really belongs in the php.ini file, but it probably does no real harm to have it in configure.php. Just don't forget to put it in both configure.php (catalog and admin) files.

 

Your last backup is from a year ago? Ouch! Don't forget that it will take you back to a year ago, especially if you restore the database too. If you leave the database alone (just restore files), watch out that you don't lose recently added products' image files. Does your host happen to have a more recent backup? Be aware that restoring it will probably cost you $$, and you can't be selective about which files, and most hosts don't keep backups beyond a week or so. Before making more than a trifling change to the code, you should take a backup of your site and know how to inspect it that it looks "reasonable" and is functional. You don't just stream it off to a file or tape cartridge and not look at it again until you need a restore -- it could easily be No Good.

 

If categories are working, but sub-categories aren't, that would suggest to me that there's a code glitch in the handling of Query String category values, rather than a database problem. I seem to recall that there was a lot of reworking of category string stuff in recent years, but I don't know if mixing code versions is going to cause any problems. It may have been as simple as incorrect (for recent PHP versions) order of parameters in the explode() call. Maybe someone else can remember the details. In any case, try to change only one thing at a time, and thoroughly test it, before moving on to the next.

Link to comment
Share on other sites

  • 5 months later...

My site is currently not working properly.  Aplus had notified me about updating the php and I've since found out that my coding is not compatible with the updated php.  Additionally, I haven't been able to access anything through oscommerce to access my inventory or orders.  My site is: sdtravelbaby.com/sdtb/index.php  The home page and other tabs work, but the links to my inventory products are broken.  Any help would be appreciated.  

Link to comment
Share on other sites

What osC version are you running, and what PHP version did your host just upgrade to? I see that each of the links in the left column (products for rent) just take me back to index.php, almost as though all the URL Query String is being stripped off. You might want to check your .htaccess file to see if there's any rewrite in there that strips off UQS. Your host might have ideas, too -- maybe they did some security upgrades on the server at the same time? Normally a PHP upgrade shouldn't affect the .htaccess file, unless your host "helpfully" changed something.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...