Hi.
I've try to import a spip intranet onto a drupal website.
Look working but at the end, got only that message :

0 sections imported.
6 news imported.

and nothing appears in my content (althought the Spip intranet is something like 300 articles heavy) :(

Somebody seeing what's going on ?
Thanks
best
D.

Comments

anarchic teapot’s picture

I got this error

An error occurred. /?q=batch&id=8&op=do <br /> <b>Fatal error</b>: Call to undefined function json_decode() in <b>/mnt/151/sdb/d/6/zongoland/sites/all/modules/spip2drupal-6.x-2.x-dev/spip2drupal/operations/base.batch.inc</b> on line <b>133</b><br />

SPIP version: SPIP 2.1.10 [17657] json plugin is intalled and enabled.

Drupal version 6.22

Hosting service: Free.fr (yes I know they suck, I'm trying to merge my databases and get the hell out of there to a decent provider)

psykotik’s picture

Hi anarchic,

Try to unactivate your plugins. In my experience, even though I have never been able to import "news", I could import pages unactivating a couple plugins preventing the json module to do its job.

anarchic teapot’s picture

Nope, the only plugin I have is json, and it's still not happening. Interestingly, I got this error when I logged into my Drupal site today:
warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /mnt/151/sdb/d/6/zongoland/sites/all/modules/spip2drupal-6.x-2.x-dev/spip2drupal/spipauth.module on line 148.

I'll deactivate all my other Drupal modules to see if that helps.

gaëlg’s picture

When import fails, it seems like you need to manually empty the spip_cache table before you try to import again.

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)

dbourrion: without an error message it is almost imposible to help you.

anarchic teapot: it seems your hosting's php version doesn't have json_decode() function.

GaëlG: spip_cache is populated of good data (or it is intended to) and it's used to alleviate the heavy load of importing sites with a lot of articles (26k the last I work on). Generally I do full imports several times while I do shape drupal or the module to fit the needs of the project while source data doesn't change.

To all: please open separete issues for separate problems. It is free ;)