WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kingeofdremes
    Member
    Posted 1 year ago #

    I've only just started working with WordPress, and run everything on my local host (XAMPP). I installed the newest edition of the Ready Ecommerce (0.2.7) and it returns the error:

    Fatal error: Class 'dispatcher' not found in [My WordPress directory]\wp-content\plugins\ready-ecommerce\ecommerce.php on line 42

    The plugin was not activated.

    http://wordpress.org/extend/plugins/ready-ecommerce/

  2. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Hello.
    Please check if there is such file in plugin directory classes/dispatcher.php . If no - please add it from plugin package.

    Regards,
    Alexey.

  3. avennela
    Member
    Posted 1 year ago #

    I am having the same problem. File exists in plugin directory classes/dispatcher.php. Let me know how to resolve this.

  4. kingeofdremes
    Member
    Posted 1 year ago #

    Yes, the file is in the plugin directory.

  5. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Please check:
    1. Permissions to folder classes and file dispatcher.php
    2. Content of file dispatcher.php - is there lines:
    class dispatcher {
    ...

    Regards,
    Alexey.

  6. kingeofdremes
    Member
    Posted 1 year ago #

    To date, I've been running everything through XAMPP htdocs on my Windows 7 computer.

    While trying to resolve this issue, I have added the BulletProof Security plugin, which lists permissions for a few of the files and folders used in WordPress. As part of the installation, htaccess was added to my root WordPress directory, among other files throughout the system. BulletProof claims that my system is working correctly, and lists a number of files and folders along with their permission settings in the standard 3-digit format. None are currently set according to BPS recommendations. The classes folder and dispatcher.php are NOT included in the BPS table.

    Most of the info I've seen suggests that file permissions is best handled through FileZilla, an FTP server program. I've since installed FileZilla, and have created an ftp site on my local computer. I receive a 504 error when trying to set permissions on files I copy to the ftp folder; apparently, my version of Windows does not change permissions in this way even with FileZilla. I am doing everything from my home computer; I have administrator priviledges for all files and folders, and so far as I can tell, after reading about others' experiences with FileZilla on Windows computers, permissions are actually supposed to be set by right clicking on a file or folder -> Properties, and unchecking the Attributes:Read-Only checkbox without any need for FileZilla. This action DOES NOT work. Advice on changing permissions is needed.

    The dispatcher.php file DOES include code that seems OK.

    Still stuck on this... thank you for your help so far, Alexey!

  7. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Good, but can you tell me exact permissions - 3 digits - to classes dir and dispatcher.php file?

  8. kingeofdremes
    Member
    Posted 1 year ago #

    I wish I could, but no. The BPS table gives the following information:

    DSO File and Folder Permissions / Recommendations
    File Name
    Folder Name	File Path
    Folder Path	Recommended
    Permissions	Current
    Permissions
    .htaccess	../.htaccess	644	666.
    wp-config.php	../wp-config.php	644	666.
    index.php	../index.php	644	666.
    wp-blog-header.php	../wp-blog-header.php	644	666.
    root folder	../	755	777.
    wp-admin/	../wp-admin	755	777.
    wp-includes/	../wp-includes	755	777.
    wp-content/	../wp-content	755	777.
    wp-content/bps-backup/	../wp-content/bps-backup	755	777.

    Going through Windows' folder properties gives only the Attributes:Read-Only checkbox I mentioned. Nothing else I've done or seen today gives a 3 digit code for permissions for files or folders.

    Only after uploading my root htaccess file [randomly selected to test this out] to the ftp site did I finally see the right-click option of "file permissions...". A dialog box opens with nine checkboxes total for Owner/Group/Public permissions. All are set to solid blue boxes, and the code provided is "xxx". I get the same information when I load the classes folder. When I try to set the permissions to anything else, I get the 504 error mentioned in my last message. So how do I get and set these permissions?

  9. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    In your table 644, 666, 755, 777 is this digits. If you can setup permissions using filezilla (for example) - set permissions for all directory with our plugin to 755 (now you have there "xxx", use checkboxes to set it to 755).

    Regards,
    Alexey.

  10. kingeofdremes
    Member
    Posted 1 year ago #

    The table provided by BPS does not have a method for changing file permissions. It only provides details, and does not include the classes folder or Dispatcher.php.

    Back to FileZilla. I right click on a file uploaded to the ftp folder, and select "File Permissions...". The "xxx" code is displayed in the dialog box mentioned earlier. When I try to change the "xxx" to "755", FileZilla reports as follows:

    Status:	Set permissions of '/PrivateLink/test/.htaccess' to '755'
    Command:	CWD /PrivateLink/test
    Response:	250 CWD successful. "/PrivateLink/test" is current directory.
    Command:	SITE CHMOD 755 .htaccess
    Response:	504 Command not implemented for that parameter

    and

    Status:	Set permissions of '/PrivateLink/test/classes' to '755'
    Command:	CWD /PrivateLink/test
    Response:	250 CWD successful. "/PrivateLink/test" is current directory.
    Command:	SITE CHMOD 755 classes
    Response:	504 Command not implemented for that parameter

    When I then check .htaccess and the classes folder permissions, both have stayed "xxx". This is what I mean by a 504 error.

  11. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    /PrivateLink/test/ - is this directory where our plugin is stored?

    Regards,
    Alexey.

  12. kingeofdremes
    Member
    Posted 1 year ago #

    Does your plugin need to be installed on an ftp-accessible folder?

    My only concern at this time is in getting and setting permissions. So far, the closest I've come to accessing these permissions is through FileZilla, and only if they are located in an ftp-accessible folder. And, as noted, setting them here does not currently work.

    For testing purposes in getting and setting permissions, I have copied only the classes folder from your plugin, and the .htaccess file to my ftp folder. Nothing else currently resides anywhere on my ftp folder. My WordPress site is currently only local, and runs via XAMPP htdocs. Everything is saved there.

    Regards... and I'm off until tomorrow :)

  13. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Folder must be at least redable and all files (.php) must be executable, plugin must be in plugins wordpress directory.

    Regards,
    Alexey.

  14. kingeofdremes
    Member
    Posted 1 year ago #

    All I did was download and install the plugin the same way I do any other. I never set any permissions, or moved the plugin from the WordPress plugin directory. I have no reason to think that the files are unreadable or can't be executed, as I've done nothing to them.

    I've only been looking into permissions because that was the first thing you mentioned in resolving this issue. Do you have any other suggestions?

    Regards

  15. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Yes. Go to file functions.php in plugin directory, and after line 60 (before 61) insert next code:
    var_dump($path);
    Put here all output from your site for now.

    Regards,
    Alexey.

  16. kingeofdremes
    Member
    Posted 1 year ago #

    Alrightey.
    Right after I did that, I tried to enable the plugin again. Now it reports:

    string(19) "S_CLASSES_DIRdb.php" string(26) "S_CLASSES_DIRinstaller.php" string(23) "S_CLASSES_DIRmodule.php" string(22) "S_CLASSES_DIRmodel.php" string(21) "S_CLASSES_DIRview.php" string(27) "S_CLASSES_DIRcontroller.php" string(23) "S_CLASSES_DIRhelper.php" string(20) "S_CLASSES_DIRtab.php" string(27) "S_CLASSES_DIRdispatcher.php" string(22) "S_CLASSES_DIRfield.php" string(22) "S_CLASSES_DIRtable.php" string(22) "S_CLASSES_DIRframe.php" string(24) "S_CLASSES_DIRmvcHelp.php" string(21) "S_CLASSES_DIRlang.php" string(20) "S_CLASSES_DIRreq.php" string(20) "S_CLASSES_DIRuri.php" string(21) "S_CLASSES_DIRhtml.php" string(25) "S_CLASSES_DIRresponse.php" string(29) "S_CLASSES_DIRfieldAdapter.php" string(31) "S_CLASSES_DIRshippingModule.php" string(30) "S_CLASSES_DIRpaymentModule.php" string(26) "S_CLASSES_DIRvalidator.php" string(23) "S_CLASSES_DIRerrors.php" string(22) "S_CLASSES_DIRutils.php" string(29) "S_CLASSES_DIRmodInstaller.php" string(30) "S_CLASSES_DIRfilegenerator.php" string(26) "S_CLASSES_DIRwpUpdater.php"
    Fatal error: Class 'dispatcher' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 42

    Let me know if there is anything further I can do with this. Again, thank you for your help thus far.

  17. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Ok.
    Now let's check file config.php in our plugin directory, because S_CLASSES_DIR must be defined there.
    Is there file config.php in your plugin directory?
    Is in shit file next string:
    define('S_CLASSES_DIR', S_DIR. 'classes'. DS);

    Regards,
    Alexey.

  18. kingeofdremes
    Member
    Posted 1 year ago #

    yes,
    define('S_CLASSES_DIR', S_DIR. 'classes'. DS);
    is on line 14 of config.php in the plugin

  19. kingeofdremes
    Member
    Posted 1 year ago #

    I just upgraded to the Ecommerce 0.2.8 and dispatcher is no longer listed as the problem. After again following your var_dump($path) suggestion, it now shows

    string(19) "S_CLASSES_DIRdb.php" string(26) "S_CLASSES_DIRinstaller.php" string(23) "S_CLASSES_DIRmodule.php" string(22) "S_CLASSES_DIRmodel.php" string(21) "S_CLASSES_DIRview.php" string(27) "S_CLASSES_DIRcontroller.php" string(23) "S_CLASSES_DIRhelper.php" string(20) "S_CLASSES_DIRtab.php" string(27) "S_CLASSES_DIRdispatcher.php" string(22) "S_CLASSES_DIRfield.php" string(22) "S_CLASSES_DIRtable.php" string(22) "S_CLASSES_DIRframe.php" string(24) "S_CLASSES_DIRmvcHelp.php" string(21) "S_CLASSES_DIRlang.php" string(20) "S_CLASSES_DIRreq.php" string(20) "S_CLASSES_DIRuri.php" string(21) "S_CLASSES_DIRhtml.php" string(25) "S_CLASSES_DIRresponse.php" string(29) "S_CLASSES_DIRfieldAdapter.php" string(31) "S_CLASSES_DIRshippingModule.php" string(30) "S_CLASSES_DIRpaymentModule.php" string(26) "S_CLASSES_DIRvalidator.php" string(23) "S_CLASSES_DIRerrors.php" string(22) "S_CLASSES_DIRutils.php" string(29) "S_CLASSES_DIRmodInstaller.php" string(30) "S_CLASSES_DIRfilegenerator.php" string(26) "S_CLASSES_DIRwpUpdater.php"
    Fatal error: Class '<strong>installer</strong>' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 42

    Same line again... huh.

    Do you prefer email messaging going forward, or is it better to discuss here?

  20. kingeofdremes
    Member
    Posted 1 year ago #

    whoops! i added the tags only for display here. feel free to ignore them.

  21. kingeofdremes
    Member
    Posted 1 year ago #

    gah! the STRONG tags! STRONG!

  22. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Ok.
    Now you can remove var_dump($path); code.
    Seems to me that somehow define() method did not work. Let's solve this problem.
    Step 1. Go to main plugin file ("ecommerce.php") and insert next code between lines 12 and 13:
    var_dump(S_CLASSES_DIR);
    Copy output here.
    Step 2. Remove code that you inserted in Step 1. Then go to config.php file in plugin directory and insert the same code between lines 59-60 (right before "?>"), code:
    var_dump(S_CLASSES_DIR);

    Please provide me with output for both steps.

    Regards,
    Alexey.

  23. kingeofdremes
    Member
    Posted 1 year ago #

    Results for step 1:

    string(13) "S_CLASSES_DIR" string(19) "S_CLASSES_DIRdb.php" string(26) "S_CLASSES_DIRinstaller.php" string(23) "S_CLASSES_DIRmodule.php" string(22) "S_CLASSES_DIRmodel.php" string(21) "S_CLASSES_DIRview.php" string(27) "S_CLASSES_DIRcontroller.php" string(23) "S_CLASSES_DIRhelper.php" string(20) "S_CLASSES_DIRtab.php" string(27) "S_CLASSES_DIRdispatcher.php" string(22) "S_CLASSES_DIRfield.php" string(22) "S_CLASSES_DIRtable.php" string(22) "S_CLASSES_DIRframe.php" string(24) "S_CLASSES_DIRmvcHelp.php" string(21) "S_CLASSES_DIRlang.php" string(20) "S_CLASSES_DIRreq.php" string(20) "S_CLASSES_DIRuri.php" string(21) "S_CLASSES_DIRhtml.php" string(25) "S_CLASSES_DIRresponse.php" string(29) "S_CLASSES_DIRfieldAdapter.php" string(31) "S_CLASSES_DIRshippingModule.php" string(30) "S_CLASSES_DIRpaymentModule.php" string(26) "S_CLASSES_DIRvalidator.php" string(23) "S_CLASSES_DIRerrors.php" string(22) "S_CLASSES_DIRutils.php" string(29) "S_CLASSES_DIRmodInstaller.php" string(30) "S_CLASSES_DIRfilegenerator.php" string(26) "S_CLASSES_DIRwpUpdater.php"
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 43

    Step 2:

    string(19) "S_CLASSES_DIRdb.php" string(26) "S_CLASSES_DIRinstaller.php" string(23) "S_CLASSES_DIRmodule.php" string(22) "S_CLASSES_DIRmodel.php" string(21) "S_CLASSES_DIRview.php" string(27) "S_CLASSES_DIRcontroller.php" string(23) "S_CLASSES_DIRhelper.php" string(20) "S_CLASSES_DIRtab.php" string(27) "S_CLASSES_DIRdispatcher.php" string(22) "S_CLASSES_DIRfield.php" string(22) "S_CLASSES_DIRtable.php" string(22) "S_CLASSES_DIRframe.php" string(24) "S_CLASSES_DIRmvcHelp.php" string(21) "S_CLASSES_DIRlang.php" string(20) "S_CLASSES_DIRreq.php" string(20) "S_CLASSES_DIRuri.php" string(21) "S_CLASSES_DIRhtml.php" string(25) "S_CLASSES_DIRresponse.php" string(29) "S_CLASSES_DIRfieldAdapter.php" string(31) "S_CLASSES_DIRshippingModule.php" string(30) "S_CLASSES_DIRpaymentModule.php" string(26) "S_CLASSES_DIRvalidator.php" string(23) "S_CLASSES_DIRerrors.php" string(22) "S_CLASSES_DIRutils.php" string(29) "S_CLASSES_DIRmodInstaller.php" string(30) "S_CLASSES_DIRfilegenerator.php" string(26) "S_CLASSES_DIRwpUpdater.php"
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 42
  24. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    No, you did not insert what I say).
    In both steps there should be only one string with output. This output is for my prev message (Posted 2 days ago), that should be deleted for now.
    You now should edit:

    for Step 1 - C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php
    for Step 2 - C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\config.php

    Regards,
    Alexey.

  25. kingeofdremes
    Member
    Posted 1 year ago #

    Step 1:

    string(13) "S_CLASSES_DIR"
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 43

    Step 2:
    Fatal error: Class 'installer' not found in C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php on line 42

    I think I simply forgot to save the functions.php file after deleting the var_dump code the first time. Gone now.
    I realize there is nothing shown here before the "fatal error" line in step 2, but that's what I got. Hope that tells you something...

  26. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Ok.
    So, let's now check file-by-file. Please answer on questions below:

    1. C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\ecommerce.php - on line 12 in this file there should be:
    require_once('config.php');

    2. You have readable and executable file, located exactly here C:\xampp\htdocs\AnWordpress\wp-content\plugins\ready-ecommerce\config.php

    Regards,
    Alexey.

  27. kingeofdremes
    Member
    Posted 1 year ago #

    1. yes
    2. yes

  28. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    1. What is php version?
    2. What server do you use?
    3. Also, let's check again if config.php file was included. Insert in this file at the begining (right after <?php tag):
    die("Config was included properly");
    And tell me output now.

    Regards,
    Alexey.

  29. kingeofdremes
    Member
    Posted 1 year ago #

    PHP version 5.3.4

    Everything is running locally on my laptop using XAMPP, which I installed in january 2011... The newest edition includes PHP 5.4.4. Will upgrade this morning. :) I don't have a "server", exactly; nothing is available online, though I've heard that XAMPP can be set up to perform that function.

    Result from including die("Config was included properly"); right after the <?php tag in ecommerce.php was:
    Config was included properly

  30. Ready! Developer
    Member
    Plugin Author

    Posted 1 year ago #

    Ok.
    Now please remove die("Config was included properly"); after <?php tag in config.php and insert it right before tag ?> in same file.

    Regards,
    Alexey

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic