kingeofdremes
Forum Replies Created
-
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
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.
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 properly1. yes
2. yesStep 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…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
gah! the STRONG tags! STRONG!
whoops! i added the tags only for display here. feel free to ignore them.
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?
yes,
define('S_CLASSES_DIR', S_DIR. 'classes'. DS);
is on line 14 of config.php in the pluginAlrightey.
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.
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
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 ??
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.
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?