Forums

Quick Shop
'Quick_Shop_Cart' not found bug (2 posts)

  1. jtkt
    Member
    Posted 6 months ago #

    Dear all,

    there seems to be a bug in the quickshop.php version 2.3, line 40:

    require_once('widget.php'); should be replaced by

    require_once(dirname(__FILE__) . '/widget.php');

    This occured when another pluggin (Newsletter) was running. I discussed with the developper of "Newsletter" and we concluded the hack above would work:

    link page : http://www.k-team.com/wp-content/plugins/newsletter/do.php?a=c&ni=4379&nt=cf0e62043583cf606055c5ee80c141e2

    Fatal error: Class 'Quick_Shop_Cart' not found in /home/www/cf1a8ebed8d4644615f7d6a3efde90c9/web/wp-includes/widgets.php on line 324

    Best regards,
    JT

    http://wordpress.org/extend/plugins/quick-shop/

  2. Stefano Lissa
    Member
    Posted 6 months ago #

    It's a best practice to include .php file with an absolute path, at least to avoid problem with double inclusions (main->second->third) and the safe_mode of PHP.

    I had this problem many times in the past with different PHP installations, the dirname(...) trick should always solce it.

    Stefano Lissa.
    (ps: the Newsletter plugin author)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags