[Xerte-dev] Importing a template

Pat Lockley patrick.lockley at googlemail.com
Thu Jul 19 17:47:22 BST 2012


After about a week of digging round, I've now fixed Simon Wood (from
Cardiff) import problem.

Brings up some weird issues

1) In the present zip website_code/php/import/import.php doesn't
include database library.php - so it can't access the database - ergo
it could never import
2) Even with the database_library added, the session was never
generated (config.php) was included so the insert function always had
creator_id as zero, as the session toolkits id would never be found

This seems to be tied to this commit

which removed session and database_library includes.

I am guessing Simon updated part of his install, or, import doesn't
currently work - this sort of brings up how we advise people to

The Third point is in workspaceproperties.php

line 55

<iframe id="upload_iframe" name="upload_iframe" src="#"
style="width:0px;height:0px; display:none"></iframe>

on a Mac, Using Safari - src="#" causes a problem, whereas src=""
works as expected.

I don't have a mac to test this on, so I can't confirm whether it is
the case or not.

I asked the list but didn't get any responses.


More information about the Xerte-dev mailing list