Just to confirm, this would currently be phpBB 2/3 -> SMF 2.0 -> Elkarte 1.0? Has anyone tried it?
Oops. Totally forgot about your open importer. My bad.
BTW, why is that not in the Elk Tools site?
Speaking of, OpenImporter gives me this lovely error:
Warning: require_once(__DIR__/OpenImporter/SplClassLoader.php) [function.require-once]: failed to open stream: No such file or directory in /path/to/public_html/forum3/import.php on line 12
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/OpenImporter/SplClassLoader.php' (include_path='.:/usr/share/pear:/usr/share/php') in /path/to/public_html/forum3/import.php on line 12
/me is innocent. Unless proven guilty of course. xD
Just to know what you are using, did you download the github version? If so the master branch?
Or maybe the version I posted here somewhere?
Github, master branch, check.
I'll note that this shared host is on PHP 5.2.17. Hence the struggle with magic_quotes in another thread, but Elkarte was able to successfully install once I turned those off via a php.ini. I can't imagine why OpenImporter would run at a higher version than Elkarte, but it's possible that's the problem.
I'm not certain why Elkarte tools would need to be officially maintained by the Elkarte team. The addons and themes are mostly not, and you happily link to them from those sites. I don't see that this is much different. However, if this is really a sticking point, then it seems to me that the OI creator should be asked if their tool can be officially linked. If development ever stops, it is BSD 3-clause, so you could simply fork it and make your Elkarte OpenImporter if necessary.
I think I didn't (yet) introduce anything that is 5.3+.
The development branch instead I guess 5.3 may already be the minimum version, not sure.
No, there it's not really a sticky point.
And at the moment the two main developers of OpenImporter (i.e. those with merge permission on the "main" repo), are TE and me, so... :P
Yep, the whole shebang was uploaded.
Then it should really be added to the utils site. ;)
I'll check as soon as I have the mind to read code and fix my messes. xD
Ohhh...
Apparently
DIR was introduced in 5.3, I missed that.
If you want to use it
now you can change add at the beginning of import.php:
if (!defined('__DIR__'))
define('__DIR__', dirname(__FILE__));
or otherwise simply replace
__DIR__
with
dirname(__FILE__)
I think it's used only once.
ETA: just as memo, Elk 1.0 is php 5.2 compatible in the sense there should be nothing that breaks on 5.2, but the suggested is 5.3 and compatibility with 5.2 will be dropped already in Elk 1.1. ;)
Yeah, I thought it might be something like this. It should probably be added to OpenImporter until Elk 1.1 is released, or at least for the version for Elk 1.0.
And yes, I realize this site will probably be stuck on 1.0 for a while. Or at least until I can convince the admin to switch hosts or the host to upgrade.
Did you try the "fix"?
I don't have 5.2 handy, so I cannot be sure it's the only thing that breaks the compatibility...
Oh, no, I didn't. I actually used a different server to do the conversion, and then just put the database on the right site. I'll test it out at some point.
Of course, it was after all this that I noticed this guy's host had a switch to change from php 5.2 to 5.4.
/me sighs.
LOL
I know the feeling. :P