Jump to content
Jack_mcs

Sitemap SEO

Recommended Posts

I don't like to hijack Roberts thread and apologies if I'm misunderstanding the issue. With anonther contrib (not this one) I had a major problem and mess to clean up with cpaths created like _77 & 0_77 after installing Sitemap SEO. Just thought I'd share that in case it's the cause of your issue.

 

Cheers.

 

Looking for any info on this issue.

Share this post


Link to post
Share on other sites

Looking for any info on this issue.

Looks like you posted in the wrong thread.

Share this post


Link to post
Share on other sites

Looks like you posted in the wrong thread.

 

Hi Jack,

 

Not really. I have a problem and thought Ultimate SEO is causing the issue but another forum user said the problem is exactly what they experienced and it was caused by this contrib. SEO sitemaps.

 

I posted my last reply to this thread and asked this forum user if they could provide further info or possible share the fix.

 

Anyway. To elaborate I have an issue where:

I am getting duplicate content i.e (verified by webmaster tools)

my-category-c-41_44.html &

my-category-c-_44.html

 

The parent ID is set in the DB and also referenced correctly.

I did the following tests:

Example of Original working link:

my-category-c-4_44.html

 

Changed parent ID variable in the address bar:

my-category-c-_44.html

my-category-c-123_44.html

my-category-c-5435435_44.html

All of these just go to the same category

 

my-category-c-abc_44.html

my-category-c-12abc3_44.html

These 404 and redirect. As they have letters not just numbers included. Which makes sense.

 

"my-category-c-4_44.html" is a sub category of a category called for example "hardware-c-4.html"

 

so its:

- hardware-c-4.html

- my-category-c-4_44.html

 

In the database for my-category-c-4_44.html:

parent_id = 4

category_id = 44

 

In the database for hardware-c-4.html:

parent_id = 0

category_id = 4

 

TIGERGIRL replied to my last post with this comment:

 

"I don't like to hijack Roberts thread and apologies if I'm misunderstanding the issue. With anonther contrib (not this one) I had a major problem and mess to clean up with cpaths created like _77 & 0_77 after installing Sitemap SEO. Just thought I'd share that in case it's the cause of your issue."

 

So therefore Im just asking the question here if anyone has/had this problem and if so could they shed any info on the fix.

Share this post


Link to post
Share on other sites

...

 

I forgot to add that I tried the fix mentioned on page 22 and that didn't solve the problem,

Am I the only one to have the duplicate content issue, or has someone else come across this as well.

 

Would appreciate any help on this one.

 

Thanks.

Share this post


Link to post
Share on other sites

Not really. I have a problem and thought Ultimate SEO is causing the issue but another forum user said the problem is exactly what they experienced and it was caused by this contrib. SEO sitemaps.

 

I posted my last reply to this thread and asked this forum user if they could provide further info or possible share the fix.

 

Anyway. To elaborate I have an issue where:

I am getting duplicate content i.e (verified by webmaster tools)

my-category-c-41_44.html &

my-category-c-_44.html

TIGERGIRL replied to my last post with this comment:

 

"I don't like to hijack Roberts thread and apologies if I'm misunderstanding the issue. With anonther contrib (not this one) I had a major problem and mess to clean up with cpaths created like _77 & 0_77 after installing Sitemap SEO. Just thought I'd share that in case it's the cause of your issue."

 

So therefore Im just asking the question here if anyone has/had this problem and if so could they shed any info on the fix.

This contribution works perfectly with Ultimate SEO V2.2d, which is the one I recommend. Plus, this contribution doesn't format any urls. It just create links from the standard code.

If it fails with some other url rewriter, then that contribution is at fault and you need to ask in its support thread.

Share this post


Link to post
Share on other sites

Hi Jack,

 

As you adviced trying to change Dynamic sitemap to SEO sitemap

Unfortunately have problem to display standard pages

The same problem as reported

 

Posted 26 January 2009, 19:52

I can't seem to get the "standard pages" to display on the sitemap.php page. The categories and manufacturers display fine.

 

Please advice solution

 

Thanks

PS 'heading_standard_pages' is set in DB

Share this post


Link to post
Share on other sites

Hi Jack,

 

As you adviced trying to change Dynamic sitemap to SEO sitemap

Unfortunately have problem to display standard pages

The same problem as reported

 

 

 

Please advice solution

 

Thanks

PS 'heading_standard_pages' is set in DB

That's usually becuase the database wasn't initialized. Did you follow the instructions about going to page and box control after installing?

Share this post


Link to post
Share on other sites

That's usually becuase the database wasn't initialized. Did you follow the instructions about going to page and box control after installing?

 

What may be wrong with DB?

tables installed

- sitemap_seo_pages

- sitemap_seo_boxes

- sitemap_seo_box_links

- sitemap_seo_settings

also configuration_group id 545

 

Yes I followed the instructions for page and box control

 

Up on box select in box control I have sitemap.php error

Fatal error: Call to undefined function curl_init() in ...includes\functions\sitemap.php on line 97

Share this post


Link to post
Share on other sites

What may be wrong with DB?

tables installed

- sitemap_seo_pages

- sitemap_seo_boxes

- sitemap_seo_box_links

- sitemap_seo_settings

also configuration_group id 545

 

Yes I followed the instructions for page and box control

 

Up on box select in box control I have sitemap.php error

Having the database changes made is not enough. You have to initialize them, per the instructions. The error you are seeing is due to a coding error in the contribution and has been covered here. The fix is to change

if (! function_exists('curl_init')) 

to

if (function_exists('curl_init')) 

in the includes/functions/sitemap_seo.php files (in both shop and admin).

Share this post


Link to post
Share on other sites

Having the database changes made is not enough. You have to initialize them, per the instructions. The error you are seeing is due to a coding error in the contribution and has been covered here. The fix is to change

if (! function_exists('curl_init')) 

to

if (function_exists('curl_init')) 

in the includes/functions/sitemap_seo.php files (in both shop and admin).

 

That code error was in catalog includes/functions/sitemap.php only

 

I also activated php_curl.dll on my locathost

 

In admin Boxes Individual Control I selected information.php box, it seems only thing to initialize

 

Unfortunately it supplied new errors on sitemap.php

 

Warning: mb_strpos() [function.mb-strpos]: Empty delimiter. in ...\includes\functions\sitemap.php on line 137

 

Error!

 

Unable to determine the page link!

 

If to leave

 if (! function_exists('curl_init')) 

 

the page says only

 

Error!

Unable to determine the page link!

Edited by leveera

Share this post


Link to post
Share on other sites

That code error was in catalog includes/functions/sitemap.php only

 

I also activated php_curl.dll on my locathost

 

In admin Boxes Individual Control I selected information.php box, it seems only thing to initialize

 

Unfortunately it supplied new errors on sitemap.php

 

 

I don't use the mb_strpos function so there is something wrong wth your code outside of this contribution.

Share this post


Link to post
Share on other sites

I don't use the mb_strpos function so there is something wrong wth your code outside of this contribution.

 

strops and mb_strops are the same, last one is for UTF-8 encoding, do you know does SEO sitemap play for UTF-8 intsallations?

Share this post


Link to post
Share on other sites

strops and mb_strops are the same, last one is for UTF-8 encoding, do you know does SEO sitemap play for UTF-8 intsallations?

It's not the same. You have to specifically call the function for it to be used, which my code doesn't. As for it working on UTF-8, yes, it does. That does not come in to play with this kind of contribution.

Share this post


Link to post
Share on other sites

It's not the same. You have to specifically call the function for it to be used, which my code doesn't. ...

 

Almost agree, just in this case core php extention mb_string can do it for us. Anyway this is not a problen anymore

 

Can we talk about "Error!Unable to determine the page link!" on sitemap.php

It comes from html_output.php

Any ideas?

 

// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
   global $request_type, $session_started, $SID;

   if (!tep_not_null($page)) {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
   }

Share this post


Link to post
Share on other sites

Almost agree, just in this case core php extention mb_string can do it for us. Anyway this is not a problen anymore

 

Can we talk about "Error!Unable to determine the page link!" on sitemap.php

It comes from html_output.php

Any ideas?

 

// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
   global $request_type, $session_started, $SID;

   if (!tep_not_null($page)) {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
   }

If the contribution is installed correctly, then it is probably due to the search engine friendly option being enabled. And this assumes you are installing it on a pre-2.3 shop since the contribution hasn't been converted yet.

Share this post


Link to post
Share on other sites

Hello,

I have a problem with Lithuanian characters ą,č,š... and so on.

My sitemap displays û,ø,ð,ë... characters instead of Lithuanian.

The problem appears only in sitemap page.

Strange thing is that when I open this page in google chrome, everything is ok, but in explorer or firefox something is going wrong.

Any suggestions?

Share this post


Link to post
Share on other sites

Hello,

I have a problem with Lithuanian characters ą,č,š... and so on.

My sitemap displays û,ø,ð,ë... characters instead of Lithuanian.

The problem appears only in sitemap page.

Strange thing is that when I open this page in google chrome, everything is ok, but in explorer or firefox something is going wrong.

Any suggestions?

The sitemap.php file may be using code that is different than what is in your shop. You should compare that file with a known good one, like privacy.php, assuming it works correctly, to find the difference.

Share this post


Link to post
Share on other sites

Hi Jack_mcs,

I have one more question.

Where can i remove or change links created with Additional link Control in the Box Control?

I have created one with the wrong path and now can't remove it.

thanks!

Share this post


Link to post
Share on other sites

Hi Jack_mcs,

I have one more question.

Where can i remove or change links created with Additional link Control in the Box Control?

I have created one with the wrong path and now can't remove it.

thanks!

It's a known problem and will be fixed in the next release (no idea on when that will be). In the meantime, all you can do is delete it directly from the sitemap_seo_box_links table.

Share this post


Link to post
Share on other sites

hello jack,

 

first of all this is a great contribution.

 

i have run into a problem though--my realted category(ies) links on the bottom of my product page

( they work on the sitemap.php page) does not take me to the related category but takes me

back to the homepage.

 

i searched "related categories" in this topic but did not find anything quite like my problem.

 

the link to my category in source looks like this:

 

 

<a class="sitemap" title="title" href="http://mysite.com/series-c-_23.html">my category</a>

but my URL for that category looks like this:

 

 

http://mysite.com/series-c-22_23.html

why it takes me back to my homepage rather than erroring is also strange.

 

all "related categories" links are similiar.

"related products" links are all fine.

 

could you comment what i did wrong or why this is happening.

 

thanks,

craig

Share this post


Link to post
Share on other sites

the link to my category in source looks like this:

 

<a class="sitemap" title="title" href="http://mysite.com/series-c-_23.html">my category</a>

The link is invalid. If you turn off your url rewriter does the link then work correctly. If so, it that contribution. Which one are you using?

Share this post


Link to post
Share on other sites

The link is invalid. If you turn off your url rewriter does the link then work correctly. If so, it that contribution. Which one are you using?

 

thanks for responding! i turned off enable seo urls and it works fine. i am using Ultimate SEO URLs v2.2d. after further look the

code on product_info.php is taking the category link from sitemap_seo.js :

 

  <?php if (SITEMAP_SEO_SHOW_INDIVIDUAL_CATEGORY_SITEMAP  == 'true') { ?> 
    <tr>
      <td class="smallText"><a href="javascript:displaySitemapCategory();" class="smallText"><span style="vertical-align:text-bottom; "><img src="images/sitemap_arrow.jpg" alt="" border="0"></span><span style="padding-left: 3px;"><?php echo TEXT_SITEMAP_RELATED_CATEGORIES; ?></span></a></td>
    </tr>

 

and the category links on sitemap.php are taken from this code on the sitemap.php ( if i am right??):

 

  /****************** DISPLAY CATEGORIES *********************/
 $showCategories = '';
 if (tep_not_null($settings['heading_categories'])) { 
   $showCategories .= '<tr><th class="sitemapHeading" align="' . SITEMAP_SEO_HEADING_ALIGNMENT . '">' . $settings['heading_categories'] . '</th></tr>';
 }
 $showCategories .= '<tr><td class="sitemap">';
 $class = (SITEMAP_SEO_DISPLAY_PRODUCTS_CATEGORIES == 'true') ? 'category_tree.php' : 'category_tree_no_products.php';
 require DIR_WS_CLASSES . $class;
 $osC_CategoryTree = new osC_CategoryTree(); 
 $showCategories .= $osC_CategoryTree->buildTree();                
 $showCategories .= '</td></tr>';

 

i changed the closing tag for <th...> from </td> to </th>, but that is just minor.

 

is there any way i can get this to work, or if not maybe i will remove the related categories on the product_info.php page.

 

thanks again,

craig

Share this post


Link to post
Share on other sites

thanks for responding! i turned off enable seo urls and it works fine. i am using Ultimate SEO URLs v2.2d. after further look the

 

is there any way i can get this to work, or if not maybe i will remove the related categories on the product_info.php page.

That version of Ultimate SEO is completely compatible with this contribution. The next version, which isn't ready for upload, has changes in it that might fix this. If you would like to PM me an email address, I'll send you the files.

Share this post


Link to post
Share on other sites

i tried to pm but it i received an error: that you can not receive any new messages.

Please try it now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×