• Resolved osseonews

    (@osseonews)


    Hi there,
    We installed this plugin and we are able to call static blocks without a problem (see below). However, whenever we try to use any of the default blocks (see below), our server will not show anything and we get an error: “client denied by server configuration: /html/app/etc/local.xml” – since we are able to use the static blocks, I assume this is installed correctly, but if so, why are default blocks not working?

    Examples:
    This works fine:
    $staticblock = get_static_block(“block_header_top_right”);
    echo $staticblock;

    This does not work:
    // Top menu
    the_block(‘top.menu’);

    This also does not work
    // Get specific elements from the head
    $head = get_block(‘head’, false);
    echo $head->getCssJsHtml(); // All CSS and JS files defined in your Magento head
    echo $head->getChildHtml();
    echo $head->helper(‘core/js’)->getTranslatorScript();
    echo $head->getIncludes();

    This also does not work

    http://wordpress.org/extend/plugins/magento-wordpress-integration/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Thread Starter osseonews

    (@osseonews)

    I should also add that if we clear our browser cache, and reopen the browser, the default blocks will work on a page reload, but only once. When you go the next page or post on WordPress or you reload the page, the blocks stop working again and we get the error above.

    Plugin Author jamesckemp

    (@jamesckemp)

    Very strange, I’ve not seen that one before.

    Are you using a custom theme?

    Thread Starter osseonews

    (@osseonews)

    Hi James,
    Thanks for the response. On the WordPress side, we are using the twentytwelve theme with the latest version of wordpress. On the Magento side, we are using a custom theme, with Magento ver. 1.7.0.2. But, should it matter what our theme on the Magento side is, as this is a WordPress plugin? I’m baffled as to why the static blocks work, but the default blocks don’t.

    Plugin Author jamesckemp

    (@jamesckemp)

    Sounds like there must be some setting in /html/app/etc/local.xml that’s disallowing access from external sources?

    Thread Starter osseonews

    (@osseonews)

    Thanks. Do you have an example of what the setting should look like? I took a look at our local.xml and didn’t find anything about external sources. I’ll ask our host also.

    Plugin Author jamesckemp

    (@jamesckemp)

    If you email the file to me I may be able to spot it: http://www.jckemp.com

    Plugin Author jamesckemp

    (@jamesckemp)

    As a note: is this on localhost?

    Thread Starter osseonews

    (@osseonews)

    OK, just emailed you. This is running on a server, so not locally. Only thing is that this is a development site and not live yet, so maybe that’s causing the problem?

    Plugin Author jamesckemp

    (@jamesckemp)

    Can’t see anything there… it could be worth setting the cookie domain and cookie path in the admin under configuration -> web

    Path should be “/”
    domain should be “.yourdomian.com”

    Then empty your var/cache and var/session folders via ftp

    Thread Starter osseonews

    (@osseonews)

    Thanks. When you mean empty var/cache, you mean empty all the subfolders in var/cache? I have folders in there, like mag–0, mag–1 etc.

    Plugin Author jamesckemp

    (@jamesckemp)

    Yeah, as long as the cache and session folders are there but empty, it’ll be fine. note that this needs to be done after setting the cookie info.

    Thread Starter osseonews

    (@osseonews)

    Thanks. Unfortunately, that didn’t work either. This is really mystifying to me.

    Thread Starter osseonews

    (@osseonews)

    Hi James,
    I got my host to reset all the cache files, disabled all my other plugins, and the plugin started working. Thanks for your help.

    Thread Starter osseonews

    (@osseonews)

    By the way, the only weird thing now is that when I echo the menu for Magento with a default block in WordPress, the menu appends a session variable to each link, so for example:
    surgery.html becomese
    surgery.html?SID=pcogj0vjgn1bl9d2sfdv82efh7

    Any ideas?

    Plugin Author jamesckemp

    (@jamesckemp)

    Hey, glad you got it working. I’ve seen a couple of people mention your latter issue, I’ll have a look at fixing it asap.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Can't Use Default Blocks’ is closed to new replies.