1

Topic: Problem uploading taxa from CSV

Whilst I can upload a csv to the warehouse when logged into localhost, the import fails when logged on to the same system on its 'real' web address.  I get through the allocating-columns-to-fields part then all I see is 'Preparing to upload.'  Nothing more happens.  File size  is 717K  so should be OK.

Indicia Version 0.8.1
Running on IIS server.

2

Re: Problem uploading taxa from CSV

Hi Mike

So am I right in understanding that, in the same browser, running on the warehouse server itself, if you upload via http://localhost/index.php/taxa_taxon_list/importer/listid all works but if you change to http://yourdomain.org.uk/index.php/taxa … ter/listid there is a problem?

Is this perhaps your Windows server having protective browser settings that differ when accessing localhost?

Jim Bacon.

3

Re: Problem uploading taxa from CSV

Hi Jim.

Yes that's the behaviour I see.  As for "protective browser settings" I have no idea.  Accessing from both Firefox(Linux) and MSE fail when when  accessing http://yourdomain.org.uk/indicia_warehouse/

All other types of interaction work as they should no matter where from<->to.

4

Re: Problem uploading taxa from CSV

Hi Mike

I'm still trying to get my head around what you have tried. From the previous post do I understand that you have a Linux box on your network, with Firefox, with which you can browse your warehouse which is on a Windows server. You can use the Linux box to browse throughout the entire warehouse website using the 'real' web address but you cannot complete an upload. Is that correct?

Jim Bacon.

5

Re: Problem uploading taxa from CSV

Yep, I think that about sums it up.  The only way to upload any Taxa is to remote login to the web server.  Or sit at its terminal but that's a bit uncomfortable and cold.

Also cannot upload via any of the networked Windows boxes on the network.  Or on the internet.

6

Re: Problem uploading taxa from CSV

Thanks, it is becoming clearer!
I wonder what you have configured in client_helpers/helper_config.php for your base_url?
Is it set to something like localhost or the 'real' url?

Jim Bacon.

7

Re: Problem uploading taxa from CSV

<quote>client_helpers/helper_config.php for your base_url</guote>
Ah.  Never looked in there.  Will try that.  I changed $config['site_domain'] = 'localhost/warehouse/'; in application/config/config.php.

Why have two places to store config settings? Crazy.

8

Re: Problem uploading taxa from CSV

Hi Mike

I'll have a guess at why there are two placees to store config settings.

When you build a client website that sends records to your warehouse you will probably use the client_helpers library to do so and you will need to configure the client_helpers, not least by telling them where to find the warehouse.

When the warehouse was built on the Kohnana framework that came with an established system for configuration.

When the warehouse needed to be able to do just the same sort of things that a client site might need to do - e.g. upload a file - rather than duplicate code, the client_helpers were taken advantage of. Combine the two and you get two places where configuration is required.

Let us know if you have fixed your problem.

Jim Bacon.

9

Re: Problem uploading taxa from CSV

Thanks for your help Jim.  Your explanation makes sense.

I finished the data upload yesterday sitting at "localhost" before I read your reply.  It looks to be the correct answer but I'm not able to test it right now.

Just a thought, is this documented anywhere?  I don't recall ever seeing this informatinon anywhere in any of the install guides.

Ah, just found somthing  in the developer docs.  This needs to be in the install docs too.

Many thanks.
Mike Evans

10

Re: Problem uploading taxa from CSV

Hi Mike

You are doing something a little unusual in changing the url of your warehouse so that is why it is undocumented. Probably no one else has done this! There could be more documentation about configuration options but the setup process endeavours to protect you from editing the various files by hand.

What I observed from inspecting the code is that, on first run, application/config/config.php is created and $config[site_domain] is set based upon the url by which you have invoked the warehouse. Subsequently, during the configuration, when you do the Demo set up, that copies the value of $config[site_domain] to $base_url in client_helpers/helper_config.php

Jim Bacon.

11

Re: Problem uploading taxa from CSV

Probably no one else has done this!

I get told that a lot. :)

Ok that make sense.

I conclude then that,  because I setup using 'localhost', because I was sat at the webserver, the config files were created using that URL.  If had had been setting up from the 'real' URL then the files would have been written correctly.  I guess most people would never encounter this probem as very few would have admin access to the server, but at least now it's documented here.

Thanks again.

12

Re: Problem uploading taxa from CSV

Jim.

Changing  the path in client_helpers/helper_config.php fixed the problem.

Regards and thanks again.
Mike