Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41
  1. #21
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Loosing secure connection when adding items to cart

    Quote Originally Posted by dbltoe View Post
    Whether a src for an image, a script, and iframe or simply a source -- a double slash following the src=" violates the whole src attribute syntax and will cause many hours of hair-pulling searches for the problem. The browser would assume it is relative but would be looking for yourSite.com//someFile. Can you say, "Fill the log file?"
    The same applies to the new <source> tag in html5.

    Thus, the NEVER.
    No, it would not look for Your-site dot com//something, it would look for http: // Your-site dot com or https: // Your-site dot com if the information that followed // was Your-site dot com. Ie.

    Src="// Chosen-site dot com/foldername/file.jpg

    If the current uri were: http :// Mysite dot com/index.php?main_page=product_info&cPath=5&products_id=47

    Then the image would be pulled as http :// Chosen-site dot com/foldername/file.jpg

    But if the current uri were: https : // Mysite dot com/index.php?min_page=login

    Then the image would be pulled as https :// Chosen-site dot com/foldername/file.jpg

    Again the http: or https: applicable to the served page would be prepended with the content that includes and follows the //.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #22
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Loosing secure connection when adding items to cart

    My site is working BUT the admin login page doesn't look right nor does the ADMIN page, it's lost all styling.

    My error log states the following but (once again) I haven't a clue as to what it means

    [26-Aug-2014 09:45:39] PHP Warning: include_once(includes/languages/english.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in .../public_html/bookstore/includes/init_includes/init_templates.php on line 72

    [26-Aug-2014 09:45:39] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english.php' for inclusion (include_path='.:/usr/lib64/php:/usr/share/pear') in .../public_html/bookstore/includes/init_includes/init_templates.php on line 72


    Did I accidentally delete something?

    Beth

  3. #23
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Loosing secure connection when adding items to cart

    Yep. Do you have the includes/languages/english.php file? It's saying it can't find it.

  4. #24
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,106
    Plugin Contributions
    11

    Default Re: Loosing secure connection when adding items to cart

    Quote Originally Posted by mc12345678 View Post
    No, it would not look for Your-site dot com//something, it would look for http: // Your-site dot com or https: // Your-site dot com if the information that followed // was Your-site dot com. Ie.

    Src="// Chosen-site dot com/foldername/file.jpg

    If the current uri were: http :// Mysite dot com/index.php?main_page=product_info&cPath=5&products_id=47

    Then the image would be pulled as http :// Chosen-site dot com/foldername/file.jpg

    But if the current uri were: https : // Mysite dot com/index.php?min_page=login

    Then the image would be pulled as https :// Chosen-site dot com/foldername/file.jpg

    Again the http: or https: applicable to the served page would be prepended with the content that includes and follows the //.
    Did you notice that EVERY time you mention //, it's with http or htps? Yes, http: or htps: must be followed by // BUT // can never be by itself in a src call.

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

    Default Re: Loosing secure connection when adding items to cart

    Quote Originally Posted by dbltoe View Post
    Did you notice that EVERY time you mention //, it's with http or htps? Yes, http: or htps: must be followed by // BUT // can never be by itself in a src call.
    Again, wrong. Review this web page, then either follow the links to the rfc requirements or independently search for them and you will see that the examples I provided above where src="// servername dot com/filepath/file.extension" will resolve to the same uri with the applicable http: or https: prepended which 1) mitigates the need to hard code one or the other and 2) resolves the issue of mixed (secure/unsecure) content. Html5 is built with the same requirement and will/does work the same way.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #26
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Loosing secure connection when adding items to cart

    Inconsistencies in the config files, which is right or are both correct?

    In the admin/includes/config file it states:

    << * WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
    * To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:>>

    Then in the includes file it states:

    <<// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com>>

    Which is correct? Don't they both have to read the same or are they different?

  7. #27
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Loosing secure connection when adding items to cart

    Ok I changed things to where they match the above statements which are there for a reason, right?

    Now my problem is that I have lost the styling of the login page as well as for the ADMIN page, which file controls those?

    (I know ya'll designed ZC to thwart the hackers but seriously don't they know more than us poor users?)

  8. #28
    Join Date
    Jul 2012
    Posts
    16,718
    Plugin Contributions
    17

    Default Re: Loosing secure connection when adding items to cart

    Quote Originally Posted by motherwestwind View Post
    Ok I changed things to where they match the above statements which are there for a reason, right?

    Now my problem is that I have lost the styling of the login page as well as for the ADMIN page, which file controls those?

    (I know ya'll designed ZC to thwart the hackers but seriously don't they know more than us poor users?)
    There's potentially more than one reason to lose the formatting, one is to validate that you have css template stylesheet files in includes/templates/YOUR_TEMPLATE/css and if not in the YOUR_TEMPLATE directory at least in the template_defaults directory. Also may want to check the error logs again, just to be sure no new ones have appeared.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #29
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Loosing secure connection when adding items to cart

    Well I just gave up on finding WHY I lost the styling of my admin pages and continued adding products, but the problem I am having now is that when I place an order from the category page I loose connection to the database and yet when I order from the individual pages everything is ok. Any idea why those two are different?

  10. #30
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Loosing secure connection when adding items to cart

    I just tried to edit my post but no go, must be my computer.

    What I was trying to ask is this: why when I try to add in multiple products from the main page of a category I get an error message stating that we've lost the secure connection to the database while on the individual pages there isn't a problem and everything is ok. What makes these two ordering processes different?

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 16 Mar 2011, 12:12 AM
  2. blank page when adding items to cart
    By kitcorsa in forum General Questions
    Replies: 7
    Last Post: 3 Jun 2009, 01:33 PM
  3. Blank Pages when adding items or going to cart?
    By Nordy in forum General Questions
    Replies: 12
    Last Post: 13 Apr 2009, 08:02 PM
  4. Blank pages when adding items to cart?
    By uberwench in forum General Questions
    Replies: 2
    Last Post: 13 Sep 2008, 03:08 PM
  5. Access Denied when adding items to cart!
    By AmyBryant in forum General Questions
    Replies: 0
    Last Post: 6 Jul 2006, 04:52 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR