WordPress.org

Ready to get started?Download WordPress

Forums

Ready! Ecommerce Shopping Cart
[resolved] class "dispatcher" missing (36 posts)

  1. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Your C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\config.php file with this change must look like:
    <?php
    global $wpdb;
    if (WPLANG == '') {
    define('S_WPLANG', 'en_GB');
    } else {
    define('S_WPLANG', WPLANG);
    }
    define('DS', DIRECTORY_SEPARATOR);

    define('S_PLUG_NAME', basename(dirname(__FILE__)));
    define('S_DIR', WP_PLUGIN_DIR. DS. S_PLUG_NAME. DS);
    define('S_TPL_DIR', S_DIR. 'tpl'. DS);
    define('S_CONTROLLERS_DIR', S_DIR. 'controllers'. DS);
    define('S_CLASSES_DIR', S_DIR. 'classes'. DS);
    define('S_TABLES_DIR', S_CLASSES_DIR. 'tables'. DS);
    define('S_LANG_DIR', S_DIR. 'lang'. DS);
    define('S_IMG_DIR', S_DIR. 'img'. DS);
    define('S_TEMPLATES_DIR', S_DIR. 'templates'. DS);
    define('S_IMG_POSTS_DIR', S_IMG_DIR. 'posts'. DS);
    define('S_MODULES_DIR', S_DIR. 'modules'. DS);
    define('S_ADMIN_DIR', ABSPATH. 'wp-admin'. DS);

    define('S_SITE_URL', get_bloginfo('wpurl'). '/');
    define('S_JS_PATH', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/js/');
    define('S_CSS_PATH', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/css/');
    define('S_IMG_PATH', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/img/');
    define('S_MODULES_PATH', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/modules/');
    define('S_TEMPLATES_PATH', WP_PLUGIN_URL.'/'.basename(dirname(__FILE__)).'/templates/');
    define('S_IMG_POSTS_PATH', S_IMG_PATH. 'posts/');
    define('S_JS_DIR', S_DIR. 'js/');
    /*if (!empty($_SERVER['HTTPS'])) {
    define('S_URL', 'https://'. $_SERVER['HTTP_HOST']. $_SERVER['SCRIPT_NAME']);
    } else {
    define('S_URL', 'http://'. $_SERVER['HTTP_HOST']. $_SERVER['SCRIPT_NAME']);
    }*/
    define('S_URL', S_SITE_URL);

    define('S_LOADER_IMG', S_SITE_URL. 'wp-admin/images/wpspin_light.gif');
    define('S_DATE_DL', '/');
    define('S_DATE_FORMAT', 'd/m/Y');
    define('S_DATE_FORMAT_HIS', 'd/m/Y (H:i:s)');
    define('S_DATE_FORMAT_JS', 'dd/mm/yy');
    define('S_DATE_FORMAT_CONVERT', '%d/%m/%Y');
    define('S_WPDB_PREF', $wpdb->prefix);
    define('S_DB_PREF', 'toe_'); /*TheOneEcommerce*/
    define('S_MAIN_FILE', 'ecommerce.php');

    define('S_DEFAULT', 'default');
    define('S_CURRENT', 'current');
    define('S_PRODUCT', 'product');
    define('S_CURRENCY', 'currency');
    define('S_PLUGIN_INSTALLED', true);
    define('S_VERSION', '0.2.8');

    define('S_TIM_PATH', plugin_dir_url(__FILE__).'modules/timthumb.php?src=');
    define('S_CLASS_PREFIX', 'toec');
    define('S_FREE_VERSION', false);

    define('S_API_UPDATE_URL', 'http://somereadyapiupdatedomain.com');
    die("Config was included properly");
    ?>

    Regards,
    Alexey.

  2. kingeofdremes
    Member
    Posted 1 year ago #

    OK.
    I've updated XAMPP to the latest version, which includes a PHP update. This did not resolve the issue with class "installer" not being found, but it was time to update anyhow :)

    I again went through the list of steps you've provided thus far, and nothing else stands out. However, in the last step I originally entered the die command in the ecommerce.php file, not config.php. Now that I have tested it in the correct file, it does NOT print out "Config was included properly", regardless of which end of config.php I place it in.

    I've done a visual comparison between the code you provided above, and it looks identical to what I have in config.php.

  3. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Good. Now please try replace line 12 in ecommerce.php file:
    require_once('config.php');
    to:
    1. require('config.php');
    2. include('config.php');
    3. require 'config.php';
    4. include 'config.php';
    and try to run it after each replacement.

    Regards,
    Alexey.

  4. kingeofdremes
    Member
    Posted 1 year ago #

    Update to 0.2.9
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 44

    1. require('config.php');
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 44

    2. include('config.php');
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 44

    3. require 'config.php';
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 44

    4. include 'config.php';
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 44

    5. add some nonsense code, just to see if it's even looking at the file... and it does break properly...

    Regards

  5. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Ok.
    Please try replace same line 12:

    require_once('config.php');

    in same file (ecommerce.php) to next:

    require_once(dirname(__FILE__). DIRECTORY_SEPARATOR. 'config.php');

    Regards,
    Alexey.

  6. readyshoppingcart.com
    Member
    Plugin Author

    Posted 1 year ago #

    Hi!

    Is it everythong ok, with the last solution?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic