Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Unwanted code/text on my pages

    Hi, I have unwanted code showing up on my website as well and I'm not sure what files to edit to fix it. Would someone point me in the right direction? I've found it in 2 instances. You can see it here:

    http://www.avaadorn.com/index.php?ma...roducts_id=409

    To the left of the image, there is a text link with the model number of the product and it shouldn't be there.

    The other instance is on the home page under the main banner image. It says, "Home Ava Adorn". I don't know why that is there. I'm sure it happened during one of my many changes to the site.

    I appreciate any help. Thanks.

  2. #2
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Unwanted "code" showing on shopping cart pages - Advanced Shipper

    I fixed it on the home page. That was a bread crumb issue and also define_main_page.php. Still trying to fix the first problem.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by AvaAdorn View Post
    Hi, I have unwanted code showing up on my website

    To the left of the image, there is a text link with the model number of the product and it shouldn't be there.
    Somehow your site is adding
    Code:
    <br />
    <span ...>[modelno]</span>
    ... onto the end of your product name.
    And, since the product name is also used as title-and-alt-text for images, the extra HTML you've got in there is what's making the display go funny.

    Need to determine why you've got the model number added like that in the first place, and take action from there.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by DrByte View Post
    Somehow your site is adding
    Code:
    <br />
    <span ...>[modelno]</span>
    ... onto the end of your product name.
    And, since the product name is also used as title-and-alt-text for images, the extra HTML you've got in there is what's making the display go funny.

    Need to determine why you've got the model number added like that in the first place, and take action from there.
    I'm not even sure where to begin. Would this be a stylesheet issue?

  5. #5
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by AvaAdorn View Post
    I'm not even sure where to begin. Would this be a stylesheet issue?
    The additional information (<span...> etc) is more likely added in the php code.

    If you enter your admin panel then go to tools->developers toolkit.

    You can search for the text (probably good to search either for something unique in the text described, or one aspect at a time like [modelno]

    Using the lower left corner box, enter the text to be searched, select the area(s) to be searched and then select the search button. The results will identify everywhere the text is found in the filetype that was chosen. The lines can be chased down based on in which file(s) they are. If you like you could post the resulting filenames (obscure the admin folder name if it is to be included, such as admin) and perhaps the "trouble" file(s) can be narrowed down. More than likely if that statement is in a folder that is named the same as your template and it is not in an equivalent file without a template folder name (or if the template folder name is template_default) then that file(s) probably should be looked at for how the statement is used and added to the code.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Unwanted code/text on my pages

    I know this may sound basic, but is it perhaps called something other than [modelno]? I did a search for that and it came up with nothing.

  7. #7
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by AvaAdorn View Post
    I know this may sound basic, but is it perhaps called something other than [modelno]? I did a search for that and it came up with nothing.
    Legitimate question. Of course I based my explanation off of what seemed to be straight suggestion and that the entire line was being searched brfore. So [modelno] was a representation of the data presented, not the actual variable. That said though, do you currently or did you have TPP installed? Tabbed products pro I think it is called?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Feb 2012
    Posts
    106
    Plugin Contributions
    0

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by mc12345678 View Post
    Legitimate question. Of course I based my explanation off of what seemed to be straight suggestion and that the entire line was being searched brfore. So [modelno] was a representation of the data presented, not the actual variable. That said though, do you currently or did you have TPP installed? Tabbed products pro I think it is called?
    No, I've never installed that.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Unwanted code/text on my pages

    When I don't know what files are affecting something, I use this approach: http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Unwanted code/text on my pages

    Quote Originally Posted by AvaAdorn View Post
    No, I've never installed that.
    What plugins do you have installed to your site? Might have been something that either is not up-to-date or is causing this and needs a minor correction added that may be published in the particular thread.

    It had been found before that some addins that use jquery do not properly account for something when the photos are displayed and thus adds the model number for some reason to the image... Ie. Similar result as is being seen now on your site.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Unwanted text on some admin pages after installing the block IP mod
    By itcetera in forum Basic Configuration
    Replies: 2
    Last Post: 6 Mar 2012, 12:27 AM
  2. Unwanted "code" showing on shopping cart pages - Advanced Shipper
    By art room in forum Addon Shipping Modules
    Replies: 16
    Last Post: 22 Jun 2011, 02:44 AM
  3. Unwanted Text on Checkout Pages
    By shankworks in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Mar 2011, 03:39 AM
  4. Fedex Shipping appears to be adding unwanted text to a couple of pages.
    By Inudat1966 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 20 Jul 2010, 07:11 PM
  5. extraneous code/text on Admin pages: (GZIP_LEVEL); } } ?>
    By CCarter in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 15 Dec 2007, 05:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg