Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
Posted:
Thu Nov 26, 2009 6:29 am
If you get this Error:
Installed on a ravennuke 2.40 but get the following error in the admin section. Unable to locate the RavenNukeTM configuration file - INCLUDE_PATHrnconfig.php
It could be missing or not readable. Please verify that the file exists and is readable in the root folder.
Fix:
Open Your config.php in Your Ravennuke root with a Editor and go to Line 94.
Change this lines ( 96-98 )
to:
Code:
//echo 'Unable to locate the RavenNuke™ configuration file - ' . INCLUDE_PATH . 'rnconfig.php' . "\n<br><br>";
//echo 'It could be missing or not readable. Please verify that the file exists and is readable in the root folder.';
//die();
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Thu Nov 26, 2009 8:13 am
Just be aware that it is possible other functions with RavenNuke(tm) now will not work per the settings in rnconfig.php. The better fix would be to make sure INCLUDE_PATH is set properly within the OSC code.
Do an:
If (!defined('INCLUDE_PATH')) {
define('INCLUDE_PATH', 'put the correct path here');
}
Joined: Dec 05, 2007 Posts: 201 Location: Tampa, Florida
Posted:
Thu Nov 26, 2009 5:28 pm
Montego, you are right. After making that change and attempting to fix the security hole in the osc admin I can no longer sign it on my nuke admin page.
Peter where would that change go? I am working with a non-production setup so I can make any type of changes for testing purposes.
Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
Posted:
Thu Nov 26, 2009 5:48 pm
bobbyg wrote:
Montego, you are right. After making that change and attempting to fix the security hole in the osc admin I can no longer sign it on my nuke admin page.
Peter where would that change go? I am working with a non-production setup so I can make any type of changes for testing purposes.
The Security fix is only a changing of the osc admin Loginpage.
The osc admin login page of the osc modules has nothing to with the intervention Nukelogin. You should also can log in with the fix in Nuke.
I use it on Nuke Platinum and on Ravennuke 2.4 without login problems.
Try it with the original osc admin Loginpage Code.
The Security Fix redirect only Guests nto the Index page, if the will go on the osc adminlogin Page directly.
The Reason:
If you dont have a osc Admin in the osc database someone can make a admin and manipulate your shop.
If you have osc Admins, too you dont need the security fix.
You need it only if you dont have osc Admins (Only Nuke Admin).
The osc-Cart4nuke Modules dont need the security patch, because the patch are in the Modules installed
The End of the config.php must look so:
config.php:
Code:
if (defined('INCLUDE_PATH') && file_exists(INCLUDE_PATH . 'rnconfig.php')) require_once INCLUDE_PATH . 'rnconfig.php';
else {
//echo 'Unable to locate the RavenNuke™ configuration file - ' . INCLUDE_PATH . 'rnconfig.php' . "\n<br><br>";
//echo 'It could be missing or not readable. Please verify that the file exists and is readable in the root folder.';
//die();
require_once 'rnconfig.php';
}
Only the echos are comments out.
Edit: go to line 59 in the Mainfile and change the Code to:
@require_once('./../../../config.php');
if (file_exists('./../../../rnconfig.php')) {
include('./../../../rnconfig.php');
}
require('includes/configure.php');
You can set now the lines in the config.php on Line 94 - 100 back to:
Code:
if (defined('INCLUDE_PATH') && file_exists(INCLUDE_PATH . 'rnconfig.php')) require_once INCLUDE_PATH . 'rnconfig.php';
else {
echo 'Unable to locate the RavenNuke™ configuration file - ' . INCLUDE_PATH . 'rnconfig.php' . "\n<br><br>";
echo 'It could be missing or not readable. Please verify that the file exists and is readable in the root folder.';
die();
require_once 'rnconfig.php';
}
Now you can login without the error in the Osc Admin Panel.
This new Fix is Tested only with the osc-Cart4nuke Modules
//Edit
Open in modules/catalog/admin/includes the configure.php and change the completly Code to this Code:
Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
Posted:
Fri Nov 27, 2009 2:09 pm
montego wrote:
bdmdesign, good job.
BTW, you added the additional line:
require_once 'rnconfig.php';
after the die(); that is not in the main distribution. It shouldn't affect your processing, but it is unnecessary.
Yes you are rigth.
Please use this Code for the config.php:
Code:
if (defined('INCLUDE_PATH') && file_exists(INCLUDE_PATH . 'rnconfig.php')) require_once INCLUDE_PATH . 'rnconfig.php';
else {
echo 'Unable to locate the RavenNuke™ configuration file - ' . INCLUDE_PATH . 'rnconfig.php' . "\n<br /><br />";
echo 'It could be missing or not readable. Please verify that the file exists and is readable in the root folder.';
die();
}
Joined: Dec 05, 2007 Posts: 201 Location: Tampa, Florida
Posted:
Fri Nov 27, 2009 6:44 pm
Applied those changes and was able to get to the catalog administration. However, somehow during the original install of osc and the login to the admin did not work because it would not recognize the captcha code. I got to the admin by setting the status $gfx_chk = 0;
Also, new registration would not work at all. I cleared the cache numerous times in as many different attempts. I am wondering if deleting and doing a complete new install followed by the addon would make a difference or have the same result.
I can't determine how the captcha and registration module for Ravennuke got affected.
Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
Posted:
Sat Nov 28, 2009 6:40 am
wHiTeHaT wrote:
the captcha bug is a session issue.
Yes, but in RN 2.4.x your Fix dont works:
Quote:
To avoid problem with security code and sessions of oscommerce, you have to
change on top of your phpnuke mainfile.php the zlib compression
find the following code
that fix has nothing to do with the captcha, it is a server enviroment fix.
The problem with the captcha is couse of the session is already created by oscommerce.
To fix this you need to recode either RN session (suggested is to completely take it out),or oscommerces sessions(not recommended).
The choice is simple ,you either try to fix a complete store based on sessions, or a 1 time only used captcha code.
Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
Posted:
Sun Nov 29, 2009 5:00 am
When developing third party code and using PHP sessions you should be able to use a named session
session_name('cart');
session_start(cart);
If you use just the defaulet
session_start() it appends that session to the previous one.
Joined: May 11, 2009 Posts: 151 Location: Winsen/Luhe; Germany
Posted:
Mon Aug 01, 2011 11:12 am
Moin Moin Brothers and Sisters
I worked now on the new osc4pragmamx 2.3.1 Modules and I work my way into the Se4ssions on the Store and the PragmaMx CMS. If the Modules works without a bridge without Erros, so i can port it easier to Ravennuke
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum