Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] magento integration, fix proposal

  • Hi, I tried to use this plugin in the context of a magento web-store and after having it enabled it broke the site. After some digging the class_exists(…) function checked for magento classes and not those from wordpress.
    In order to move on I introduced the following patch in load.php, providing it here in case someone else needs it or the author is willing to integrate it?

    PATCH
    8c8,15
    < if ( !class_exists(‘scbLoad3’) ) :

    > $scbLoad3Exists = false;
    > try {
    > $scbLoad3Exists = class_exists(‘scbLoad3’);
    > } catch (Exception $exp) { //Assumes from magento exception that class does not exits so custom is used
    > $scbLoad3Exists = false;
    > }
    >
    > if ( !$scbLoad3Exists ) :
    52,53c59,66
    < if ( class_exists($class_name) )
    < continue;

    > try {
    > if ( class_exists($class_name) ) {
    > continue;
    > }
    > } catch (Exception $exp) {
    > //continue execution
    > }
    >

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    (@scribu)

    Hi,

    I’m having a hard time understanding what you are doing.

    Do you have both Magento and WordPress running on each page load?

    Yes. Magento can be configured to integrate some other “packages” one of them is wordpress. So they are running together on each page load.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-PageNavi] magento integration, fix proposal’ is closed to new replies.