Jump to content
Jack_mcs

Header Tags SEO

Recommended Posts

HI!
I have trouble with HeaderTags_SEO_V_3.3.2_1\Use_if_version_lessthan_2.3\catalog_only_new_files\includes\modules\header_tags_opengraph.php :
 
The initial request is

select groupname as storename, data as creator from " . TABLE_HEADERTAGS_SOCIAL . " where section = 'twitter'

 

 

and i read into HeaderTags_SEO_V_3.3.2_1\Database_Files\headertags_seo_update.php :

 

 

('10', 'socialicons', 'twitter', 'http://twitter.com/home?status=URL&TITLE' '16x16')

 

so section is 'socialicons' and never 'twitter' ==> the request result is : nothing !

 

Have I not anything understanded ??

 

Thanks to explain me !

 

bebe cash 59

Edited by bebe cash 59

Share this post


Link to post
Share on other sites

@@bebe cash 59 I'm not sure I understand what you are saying but if you are referring to the Twitter Card, you have to set that up in the social section of Header Tags SEO in admin. Have you done that?

Share this post


Link to post
Share on other sites

Hi Jack,

 

despite the fact that I not using manufacturers, I've noticed that time to time there is MySQL error becouse of Unknown column 'mi.manufacturers_htc_breadcrumb_text' in 'field list'. I've not been able to find complete modification of the manufacturers table in the previous releases, would you be so kind as to post me the SQL code for that table (and manufacturers_info if applicable) please?

Edited by mr_absinthe

Absinthe Original Liquor Store

Share this post


Link to post
Share on other sites

@mr_absinthe If you run the included update file it will add that in. The url is http://domain name/headertags_seo_update.php?reset_options=true

Share this post


Link to post
Share on other sites

Hi ,

Can you help troubleshoot?  Getting a blank page on any attempt of search on my site - quick search or from Advance Search page.  Hosting showing the error is a PHP Fatal error: Call to undefined function gethtstagcloudlink() in  /xxx/xxx/public_html/includes/modules/header_tags_keywords.php on line 18

This is the line:

$found = (GetHTSTagCloudLink($keyword, $languages_id) == false ? 0 : 1); //keyword is in products, categories or manufacturers tables

Installed:

Header Tags SEO 3.3.0

OS Commerce v2.3.3.2

 

Thanks in advance

Share this post


Link to post
Share on other sites

The error is saying it can't find a function that this addon provides. That function is in the includes/functions/header_tags.php file. Please check to make sure it has been uploaded?

Share this post


Link to post
Share on other sites

The error is saying it can't find a function that this addon provides. That function is in the includes/functions/header_tags.php file. Please check to make sure it has been uploaded?

 

I re-uploaded the file and now when search this appears instead of blank page

1146 - Table 'xxxx_database.TABLE_HEADERTAGS_KEYWORDS' doesn't exist

select 1 FROM TABLE_HEADERTAGS_KEYWORDS where keyword = 'skull' and language_id = 1

[TEP STOP]

Share this post


Link to post
Share on other sites

That error is saying you didn't make one of the required changes. Since this is the second mistake, I wouldn't trust the rest of the installation and suggest you start over.

Share this post


Link to post
Share on other sites

Hi Jack, I have a shop with Header Tags SEO installed. V 3.3..2.

 

When updating to 2.3.4 and getting to the part that forces SSL in Admin,  CKEditor will not load if I enable that in admin/includes/configure.php.   If I disable, ckEditor will work.

 

In HT SEO 3.3.2 I have CKEditor enabled for products descriptions and Header Tags Category Description only.  So when I try to edit those parts, the HTML editor does not appear.

 

I am presuming that some SSL coding needs added to get this to work but I am not sure.   Looking through the install instructions for 3.3.2 I see some code with SSL includes is replaced by code that does not have SSL.

 

What do you think?

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Steve - I am not familiar with any change that puts any control of CKEditor in the configure file so I don't understand the comment about enabling it there. I just recently installed Header Tags SEO into a 2.3.4 shop that has the CKEditor and it is working fine. The only condition to have the editor work was to enable it in the Header Tags settings. In this shop, the template_top file in admin has the code for Header Tags. Does your template file have that?

Share this post


Link to post
Share on other sites

Hi Jack, I was referring to activating https in admin via the configure file as per this line of code in admin/includes/configure.php:

  define('ENABLE_SSL', false);

Where if set to false CKEditor will load for product and category descriptions.  That's all I have enabled.

 

If set to true, CKEditor does not load.  Nothing shows in the space where it should be.

 

Here is the code I have in admin/includes/template_top.php

/*** Begin Header Tags SEO ***/
switch (HEADER_TAGS_ENABLE_HTML_EDITOR) {
   case 'CKEditor':
     echo '<script type="text/javascript" src=".ext/ckeditor/ckeditor.js"></script>';
	 echo '<script type="text/javascript" src=".ext/ckeditor/adapters/jquery.js"></script>';
   break;

   case 'FCKEditor':
   break;

   case 'TinyMCE':
     if (HEADER_TAGS_ENABLE_EDITOR_CATEGORIES == 'true'   ||
         HEADER_TAGS_ENABLE_EDITOR_PRODUCTS == 'true'     ||
         HEADER_TAGS_ENABLE_EDITOR_LISTING_TEXT == 'true' ||
         HEADER_TAGS_ENABLE_EDITOR_SUB_TEXT == 'true'
        )
     {
       if ($action == 'new_product' || $action == 'new_category' || $action == 'edit_category') { // No need to put JS on all pages.
         $languages = tep_get_languages(); // Get all languages
       // Build list of textareas to convert
         $str = '';
         for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
           if (HEADER_TAGS_ENABLE_EDITOR_CATEGORIES == 'true') $str .= "categories_htc_description[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_PRODUCTS == 'true') $str .= "products_description[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_LISTING_TEXT == 'true') $str .= "products_head_listing_text[".$languages[$i]['id']."],";
           if (HEADER_TAGS_ENABLE_EDITOR_SUB_TEXT == 'true') $str .= "products_head_sub_text[".$languages[$i]['id']."],";
         }  //end for each language
         $mce_str = rtrim ($str,","); // Removed the last comma from the string.
       // You can add more textareas to convert in the $str, be careful that they are all separated by a comma.
         echo '<script language="javascript" type="text/javascript" src="includes/javascript/tiny_mce/tiny_mce.js"></script>';
         include "includes/javascript/tiny_mce/general.php";
       }
     }
   break;

   default: break;
}
/*** End Header Tags SEO ***/

Note that these two lines 

 

echo '<script type="text/javascript" src=".ext/ckeditor/ckeditor.js"></script>';
     echo '<script type="text/javascript" src=".ext/ckeditor/adapters/jquery.js"></script>';

 

Differ from the instructions because the version of CKEditor I am using calls for that file path.

 

Thanks


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

The Header Tags code definitely doesn't care if ssl is enabled or not and I don't think CKEditor does. Maybe the problem is that the etc directory is being accessed is causing the problem. I would try moving it to the admin directory and see if that makes a difference.  If you remove the Header Tags code from the template_top file, does the editor work in other parts of admin with or without ssl?

Share this post


Link to post
Share on other sites

Jack, I may have this now.

 

I followed the steps you suggested but that didn't affect anything.   So after putting the HT SEO code back in admin/includes/tempate_top.php I noticed there was residual coding there from when I first installed CKEditor (before I installed HT SEO).  So I removed that, and tested again and with SSL enabled in admin the editor is now appearing.  

 

That residual code has been there for a long time but only after forcing SSL in admin apparently did it become a problem.  Or so I am presuming at this point.

 

Tomorrow I am going to revisit this with Firebug and watch what happens when I test around a bit.

 

Thanks for your time.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Great - good catch. Thanks for posting the fix since others may run into it.

Share this post


Link to post
Share on other sites

Dupe Item description in categories/sub categories.

 

Osc V 2.3.4

 

I’m probably late in the game, but I’m stumped.

In my categories and sub categories, the item name is showing up twice.  Once on the side of the picture and once under the picture, centered, as it is supposed to be.  I believe it started after I upgraded the Header Tags SEO to V 3.3.2.  But not real sure.  I have been trying to find the problem on my own for some time. 

 

I have removed the product_info.php that was modified with the pure version (unmodified) of 2.3.4 and still get the same dupe in item names.

 

The name on the left of the picture is coming from product_info.php?cPath=XX_XX&products_id=XXX&.

The name under the picture is coming from product_info.php?products_id=XXX&

 

Please visit my web site “lbgdecor.com”  and click on a category and them a sub category to see the dupe’s in item descriptions.

 

Any ideas on how to remove the [product_info.php?cPath=XX_XX&products_id=XXX&] that is giving the dupe item name off to the left side of the picture?

Share this post


Link to post
Share on other sites

@@dculley A lot of templates I see leave the original code in the includes/modules/product_listing.php file and then add their own farther down in it. So the output of the Header Tags changes is probably getting added twice that way. You can try replacing that file with your original to make sure the problem goes away to determine where it is coming from.

Share this post


Link to post
Share on other sites
@ Jack_mcs

Out of all my searches I did not come across the product_list in include/modules.  I block out:

            /*** Begin Header Tags SEO ***/

          //  $lc_add = '</td>';

          //  $hts_listing_query = tep_db_query("select products_head_listing_text, products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = " . (int)$listing['products_id'] . " and language_id = " . (int)$languages_id);

          //  if (tep_db_num_rows($hts_listing_query) > 0) {             

          //      $hts_listing = tep_db_fetch_array($hts_listing_query);

          //      if (tep_not_null($hts_listing['products_head_listing_text'])) {

          //          $lc_add = '<div class="hts_listing_text">' . $hts_listing['products_head_listing_text'] . '...<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . (int)$listing['products_id']) . '"><span style="color:red;">' . sprintf(TEXT_SEE_MORE, $listing['products_name']) . '</span></a></div></td>';

          //      } else if (HEADER_TAGS_ENABLE_AUTOFILL_LISTING_TEXT == 'true') {

          //          $text = sprintf("%s...%s", substr(stripslashes(strip_tags($hts_listing['products_description'])), 0, 100), '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . (int)$listing['products_id']) . '"><span style="color:red;">' . sprintf(TEXT_SEE_MORE, $listing['products_name']) . '</span></a>');

          //          $lc_add = '<div class="hts_listing_text">' . $text . '</div></td>';

          //      }

          //  }      

 

          //  if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {

          //    $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

          //    $prod_list_contents .= $lc_add;

          //  } else {

          //    $prod_list_contents .= '        <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';

          //    $prod_list_contents .= $lc_add;

          //  }

            /*** End Header Tags SEO ***/

 

And that took care of it.

Now is the question is do I need to replace the above and if so with what?

 

Thank you so much getting back to me so quickly.  I guess I should have posted for help earlier.

Share this post


Link to post
Share on other sites

That's the code for the product listing descriptions. It adds a part of the description for each product on that page. The option that enables it is named "Enable AutoFill - Listing Text" and there is a listing box in the product edit page that can also do it  If you don't want to use that option, then you can leave the code out. If you want it, then you would have to figure out what it is showing up twice. That's not something I can help with here.

 

.

Share this post


Link to post
Share on other sites

Alright guys I am very confused and I can't understand what I am doing wrong.

Everytime I try to change something (in this module of cource) in the Admin panel I get this message:

Parse error: syntax error, unexpected $end in ...../includes/header_tags.php on line .....

 

When I download the file and look what's going on everytime I find that the "switch (true)" does not have a closing "}" sometimes some of the cases are not closed.

What am I doing wrong? Please help.

Edited by sapabg

Share this post


Link to post
Share on other sites

Try replacing that file with the one from the package. Then, without going into admin, click around the shop to see if the problem is still there. If it isn't, then go into Page Control in admin and then back to the shop and see if the problem has returned. If it has, it means the code that writes to the file is causing the problem. That is almost caused by some invalid file in the root. If you have any warnings at the top of Page Control about invalid files, be sure to handle those.

Share this post


Link to post
Share on other sites

Try replacing that file with the one from the package. Then, without going into admin, click around the shop to see if the problem is still there. If it isn't, then go into Page Control in admin and then back to the shop and see if the problem has returned. If it has, it means the code that writes to the file is causing the problem. That is almost caused by some invalid file in the root. If you have any warnings at the top of Page Control about invalid files, be sure to handle those.

 

I did replace the file several times and it works with it but as soon as I do anything that updates the file it brakes.  Then when I go in it and put the missing "}" it works as it should.

There were some "invalid filename" warnings but I excluded them with the link at the end of the line.

 

CRE or oscMax Error:  explain CRE or oscMax is running and the head code in the header_tags_seo_silo.php file has Header Tags code installed, which is a mistake. CRE or oscMax is running and the head code in the header_tags_seo_keywords.php file has Header Tags code installed, which is a mistake. CRE or oscMax is running and the head code in the header_tags_test.php file has Header Tags code installed, which is a mistake. CRE or oscMax is running and the head code in the header_tags_seo.php file has Header Tags code installed, which is a mistake.  

pixel_black.gif   Database/File Mismatch Error:  explain The number of file entries in the database (26) does not match the number in the includes/header_tags.php file (24).  Files not in the database:

  article_info.php

 

 

 

These are the errors I get when I run the test but this is with a fixed header_tags.php (added "}"). Aside from some duplicate meta descriptions (I think don't matter right?) that's it.

I am pretty good with php but I don't have time to read all the code. If you can point me at something too look for. Thanks.

Share this post


Link to post
Share on other sites

The problem is that something in your shop is confusing the Header Tags code. Then you go into Page Control, it checks the files and adds whichever ones are missing. For some reason, one of those is causing a failure. In the admin settings, turn off "Automatically Add New Pages" and turn on "ByPass New Pages Check."  Be sure to replace the file again and see if that helps.

Share this post


Link to post
Share on other sites

Here goes the daft non programmer again.....lol

 

Have installed this contribution on OSC 2.3.4. Catalog side of things seems fine and admin loads ok but as soon as I click on Admin > Catalog, all I get is a blank page.

 

Now this is probably completely wrong but read in the support thread with regards blank page and changing some code in includes>application_top.php. Any way I made the changes with the error reporting function and cleared up the errors that were then beng reported. The only one I couldn't work out was

 

 

Notice: Undefined variable: SID in /home/*****/public_html/shop/admin/includes/functions/html_output.php on line 48

 

I am not sure if this would be causing the blank page problem but that line of code is the third line down in the below (just included the entire function for show)

// Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined
    if ( ($add_session_id == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) {
      if (tep_not_null($SID)) {
        $_sid = $SID;
      } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) {
        if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) {
          $_sid = tep_session_name() . '=' . tep_session_id();
        }
      }
    }

Cheers in advance

 

Ricardo


Complete Newbie On The Learn - Not A Programmer

But Learning As I Go

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

×