• hi James

    I’m trying to call <?php the_block(‘top.links’); ?> in the header of my page – i’ve tried both using a PHP shortcode plugin and manually adding it in the header.php file – as soon as I add the code in any elements below the code do not get rendered e.g. if I add it above the navigation the navigation and anything below doesn’t show and adding it after the navigation renders the nav but nothing after.

    I was able to call the header block via php shortcode (not your shortcode addon) earlier today and it worked then i tried to test different static block and it all stopped working… I did not make any other changes to the site whatsoever.. simply change the shortcode php call.

    Any clues?

    Many thanks
    Mary

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author jamesckemp

    (@jamesckemp)

    It sounds as though a PHP error is occurring. Can you enable wp_debug and see if any errors are given?

    Thread Starter steldust

    (@steldust)

    hi James,

    here is the error:

    Fatal error: Mage_Core_Model_Session_Abstract::getMessages(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Yireo_MageBridge_Model_Rewrite_Message_Collection" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in ../public_html/app/code/core/Mage/Core/Model/Session/Abstract.php on line 215

    i’m not sure what it means though?

    thanks,
    Mary

    Plugin Author jamesckemp

    (@jamesckemp)

    This seems like a plugin conflict. If you have any other plugins in WordPress that run a session, you will receive that error.

    I’d suggest disabling all other plugins, enable one-by-one to find the culprit.

    Thread Starter steldust

    (@steldust)

    you were right of course.. it’s the Quform plugin, however I sort of need both plugins =/

    Plugin Author jamesckemp

    (@jamesckemp)

    Unfortunately, if Quform runs a session, you’ll have a hard time integrating Magento into WordPress!

    What do you use MWI for?

    Thread Starter steldust

    (@steldust)

    the client requested his Magento store to be integrated into WP. Someone told him it’s perfectly possible but in the end didn’t take on the job. I’ve got fair amount of experience with both systems but never heard of integration between the two. your plugin is one of the 2 i came across. it’s really good for bringing products via widgets into WP but he basically want both WP and Magento to integrate seamlessly and the user to not see any difference when navigation between the two.

    I’ve purchased a set of your addons to feature products and styled both to look pretty much the same except I need to bring the top link block from magento into the WP header.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘calling static blocks issue’ is closed to new replies.