Configuration can't be read with impex/help.php Issue Tools
issueid=26428 Wed 24th Sep '08 2:51pm
Senior Member
Configuration can't be read with impex/help.php

I have this message when I would like to clean my importation :

Code:
ImpEx can not read the target database details from impex/ImpExConfig.php OR ../includes/config.php.
 Please enter the target database details in ImpExConfig, or run ImpEx installed opposed to standalone.
In code (help.php), I can see this:
PHP Code:
define('IDIR', (($getcwd getcwd()) ? $getcwd '.'));
...
else if (
file_exists(IDIR 'includes/config.php') AND !$impex_config
This is the reason why I have this message. It tries to check config.php from impex directory and not from forum root.
Issue Details
Project ImpEx
Category Blank page, PHP warning/error, crash
Status Awaiting Feedback
Priority 5 - Medium
Affected Version 1.90
Fixed Version (none)
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)

Tue 30th Sep '08 4:13pm
ImpEx Developer
 
Are the target details in your ImpExConfig.php ? Or you're just using cleaner for a clean up and the rest of ImpEx isn't there ?
Reply
Tue 30th Sep '08 5:12pm
Senior Member
 
ImpExConfig.php have default target values, so it uses vBulletin values in config.php.

IDIR defines the absolute path to the impex directory. And as I have written above, ImpEx ins installed in vBulletin (using the Import menu in Admin Control Panel).

The help.php exists, modifying
PHP Code:
else if (file_exists(IDIR 'includes/config.php') AND !$impex_config
by
PHP Code:
else if (file_exists(IDIR '../includes/config.php') AND !$impex_config
Fix this bug (but isn't a good fix).

I suggest to use a new IDIR with a chdir('./../'); before when ImpEx uses the values in config.php file.
Reply
Reply