• I’m using a block to display the cart qty on WordPress.
    Wordpress is installed at the root (jovial.localhost) and Magento in a subfolder (jovial.localhost/shop/).
    I set cookie_path to /
    I set cookie_domain to .localhost
    I have correctly set the mage.php path on the plugin config.
    I have cleared var/session and var/cache
    I have cleared the cookies.

    I go to jovial.localhost (WP) and it loads ok, shows 0 as qty.
    I go to jovial.localhost/shop/ (Mage) when I try to add a product to the cart, I get the no-cookies page (prompting me to enable cookies). But they ARE enabled.

    Please advise.

    https://wordpress.org/plugins/magento-wordpress-integration/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter diegoferreyra

    (@diegoferreyra)

    Note that if I set the cookie_domain to .jovial.localhost I get this error (In WP not in Mage)

    Fatal error: Uncaught exception ‘Zend_Controller_Response_Exception’ with message ‘Cannot send headers; headers already sent in /Applications/MAMP/htdocs/Jovial Main 2/shop/app/Mage.php, line 27’ in /Applications/MAMP/htdocs/Jovial Main 2/shop/lib/Zend/Controller/Response/Abstract.php:321 Stack trace: #0 /Applications/MAMP/htdocs/Jovial Main 2/shop/lib/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true) #1 /Applications/MAMP/htdocs/Jovial Main 2/shop/app/code/core/Mage/Core/Model/App.php(1246): Zend_Controller_Response_Abstract->setHeader(‘Content-Type’, ‘text/html; char…’) #2 /Applications/MAMP/htdocs/Jovial Main 2/shop/app/code/core/Mage/Core/Model/Cookie.php(93): Mage_Core_Model_App->getResponse() #3 /Applications/MAMP/htdocs/Jovial Main 2/shop/app/code/core/Mage/Core/Model/Cookie.php(209): Mage_Core_Model_Cookie->_getResponse() #4 /Applications/MAMP/htdocs/Jovial Main 2/shop/app/code/core/Mage/Core/Model/Cookie.php(260): Mage_Core_Model_Cookie->set(‘frontend’, ’43eccaf in /Applications/MAMP/htdocs/Jovial Main 2/shop/lib/Zend/Controller/Response/Abstract.php on line 321

    Please, please help.

    pompi

    (@pompejanska)

    I go to jovial.localhost/shop/ (Mage) when I try to add a product to the cart, I get the no-cookies page (prompting me to enable cookies). But they ARE enabled.

    I have the same problem. When I add to cart again (wordpress), the basket (Magento) is still empty … Magento does not process the data.

    Unfortunately, here’s no support………

    Plugin Author jamesckemp

    (@jamesckemp)

    I’m not sure how well it’ll work on localhost with regards to cookie domains. Have you tried on a live server?

    The second version (.jovial.localhost) would make the most sense. Did you try clearing cache/cookies and magento session and cache?

    Great plugin. plz guide how to set cookie path and domain at LOCALHOST.
    So far i use this plugin and it works great. But now i am stuck because of cookie settings. What should be cookie settings at LOCALHOST.

    Top link etc are working. but unable to get session type things like cart contents.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal Error related to cookies / session’ is closed to new replies.