Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MartinLass

Pioneers
  • Posts

    7
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MartinLass

  1. Yep... I read the full reply... and skirted the issue of trying to sort it out with the host company. This would mean that they would need to investigate the PHP code and/or PHP settings, which is highly unlikely that they would do. This issue is for a client of mine, and their hosting company sux. Moreover, I've had dealings with hosting companies for years, and their most common answer is "the problem is not on our end; it's on your end." ;-/ Thanks anyway... I know you're probably up the ears in these issues, and I appreciate that you're still here after many years of dealing with our stuff! lol! Cheers, Martin
  2. Further to my last posts, is it possible to replace the $path variable with a hard-coded directory? I'm thinking that it's somehow not finding the right place to carry out the rest of this code... the path definition appears rather convoluted... function GeneratePagesSitemap(){ $container = array(); $changefreq = GOOGLE_SITEMAP_PAGES_CHANGE_FREQ; $priority = '.1'; include_once(DIR_WS_CLASSES . 'language.php'); $lng = new language(); $slash = substr(DIR_FS_CATALOG, 0 -1) == '/' ? 1 : 0; $path = (($pos = strpos(DIR_FS_CATALOG, "googlesitemap")) !== FALSE) ? substr(DIR_FS_CATALOG, 0, -strlen('googlesitemap') - $slash) : DIR_FS_CATALOG; $pages = $this->GetPagesArray($path, DIR_WS_LANGUAGES . $lng->language['directory'], $lng->language['id']); for ($i = 0; $i < count($pages); ++$i) { $container[] = array('loc' => htmlspecialchars(utf8_encode($pages[$i]['filename'])), 'lastmod' => $pages[$i]['lastmod'], 'changefreq' => $changefreq, 'priority' => $priority ); } if ($i > 0) return $this->GenerateSitemap($container, 'pages'); } # end function
  3. Yep. Did that. As I mentioned, the Alternate file failed completely. But the normal file was successful EXCEPT for the Pages Sitemap section, which is what many people here have had the same issue with. Why would it be successful with all section except this one? This doesn't sound like a permissions error, particularly given that there is no error message in this section when running in diagnostics mode. It sounds more like something in the code itself. What makes me suspicious of this is that the code for this section is significantly different from the code for the other sections... it doesn't require the same database interaction. Where would I start looking in the code itself for possible answers? I've seen quite a number of tweaks, but not for the later versions of osCommerce... these tweaks are years old and the code has changed significantly since then. Or else there could possibly be a php.ini setting that is tripping it up... any further ideas? thanks... Martin
  4. Okay, I'm going to try this one after reading this entire thread and not seeing the answer to this question that many have posted here before... I've just installed sitemap_seo_v_1.5 in an osCommerce 2.1.3 installation. Everything seemed fine. Installed fine. Changed settings fine in the Admin panel. Ran the index.php file as instructed. Here is the output: Write /home/unbovekq/public_html/catalog/sitemapproducts.xml Generated Google Product Sitemap Successfully Write /home/unbovekq/public_html/catalog/sitemapcategories.xml Generated Google Category Sitemap Successfully Write /home/unbovekq/public_html/catalog/sitemapmanufacturers.xml Generated Google Manufacturers Sitemap Successfully ERROR: Google Pages Sitemap Generation FAILED! Write /home/unbovekq/public_html/catalog/sitemapindex.xml Generated Google Sitemap Index Successfully Note the Page Sitemap Generation FAILED. I have tried different CHMOD settings... 777, 755, 744, etc on the xml files, but nothing makes the Pages Sitemap generate without error. I've run it with diagnostics on, but there are NO error codes or comments related to the Pages Sitemap Generation FAILED comment. Just this single line again. I have tried the Alternate file setting in the Admin panel. This fails completely due to permission denials related to line 353 of sitemap.class_Alternate.php file. Surely there is an answer to this? Let me know what else you need to see from my configuration... much appreciated if any help can be given! Cheers, Martin
×
×
  • Create New...