Importing from b2evolution with 0.9-beta2
Posted: Sat Oct 15, 2005 3:17 am
I tried b2evo, but its development community didn't live up to my standards as I tried to port my static site to their blog. Serendipitously, I found this one, and the community seems extremely active and interested.
I'm trying to import my b2evo work. I get:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /www/j/judebert/htdocs/wasted_youth/include/admin/import.inc.php on line 106
Strangely, it worked for me when I installed 0.8.5 as a test; now that I've moved to 0.9 and a new directory, it's failing.
I did some digging, and found that importers/b2evolution.inc.php is calling importCategory() without passing the database resource. If I add the resource to the call and method declaration (lines 129, 261, and 287), everything imports properly.
However, it looks like the same code was used in 0.8.5. Hmmm. The only differences in the installs (besides the versions) is that I installed 0.9 in a different directory, but in the same database with b2evo -- they use different table prefixes, so they should coexist peacefully.
Anyway, it's fixed for me. I thought you might like to know and fix it for others.
I'm trying to import my b2evo work. I get:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /www/j/judebert/htdocs/wasted_youth/include/admin/import.inc.php on line 106
Strangely, it worked for me when I installed 0.8.5 as a test; now that I've moved to 0.9 and a new directory, it's failing.
I did some digging, and found that importers/b2evolution.inc.php is calling importCategory() without passing the database resource. If I add the resource to the call and method declaration (lines 129, 261, and 287), everything imports properly.
However, it looks like the same code was used in 0.8.5. Hmmm. The only differences in the installs (besides the versions) is that I installed 0.9 in a different directory, but in the same database with b2evo -- they use different table prefixes, so they should coexist peacefully.
Anyway, it's fixed for me. I thought you might like to know and fix it for others.